Dockerfiles icon indicating copy to clipboard operation
Dockerfiles copied to clipboard

Hive does not have sufficient permissions to access HDFS

Open ktpktr0 opened this issue 3 years ago • 2 comments

When I tried to enter hive, I got the following error

hive/warehouse on HDFS should be writable. Current permissions are: rwxrwxr-x

I try HDFS DFS - Chmod 777 / user / hive / warehouse to solve this problem, but it is not safe. Do you have the minimum permissions to access HDFS

ktpktr0 avatar Sep 25 '20 08:09 ktpktr0

Hi,

Whats your environment?

Have you tried use hive?

newnius avatar Sep 28 '20 13:09 newnius

I have executed the following commands:

$HADOOP_ HOME/bin/hdfs dfs -mkdir /tmp $HADOOP_ HOME/bin/hdfs dfs -mkdir -p /user/hive/warehouse $HADOOP_ HOME/bin/hdfs dfs -chmod g+w /tmp $HADOOP_ HOME/bin/hdfs dfs -chmod g+w /user/hive/warehouse

But when I entered the hive interactive interface, I got the following error report hive/warehouse on HDFS should be writable. Current permissions are: rwxrwxr-x

ktpktr0 avatar Sep 29 '20 08:09 ktpktr0