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

IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified [ISQL]ERROR: Could not SQLConnect

Linux Command to delete files older than x days in a directroy

CDbConnection failed to open the DB connection mysql 8