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
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
Post a Comment