Some
times we see below error while launching
Hive from command line.
Error:
Logging initialized using configuration in file:/etc/hive/2.5.0.0-1245/0/hive-log4j.properties
Exception in thread "main" java.lang.RuntimeException: org.apache.hadoop.security.AccessControlException: Permission denied: user=root, access=WRITE, inode="/user/root":hdfs:hdfs:drwxr-xr-x
Here
issue will be you are trying to launch the Hive with non HDFS users and it
might be Root account.
Below
are the steps to solve the problem:
- Create Root or the users which is using to launch the hive
sudo -u hdfs hdfs dfs -mkdir /user/<<root>>
- Do the HDFS ownership change from HDFS to the required user
sudo -u hdfs hdfs dfs -chown -R root:hdfs /user/root
0 comments:
Post a Comment