Permission denied: user=root, access=WRITE, inode="/user/root":hdfs:hdfs:drwxr-xr-x

If you are running the hive command as root and still recieve the same error, do the following

root@hadoop_server:~# sudo -u hdfs hadoop fs -mkdir /user/root
root@hadoop_server:~# sudo -u hdfs hadoop fs -chown root:root /user/root

this should fix the problem and you will be able to run the hive command line.

Comments

Popular posts from this blog

CDbConnection failed to open the DB connection mysql 8

/bin/sh^M: bad interpreter: No such file or directory Linux