Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Big Data Hadoop & Spark by (45.3k points)
Access denied on my Hive, can anyone help?

1 Answer

0 votes
by (16.8k points)

You must run the below command on terminal to fix it.

# sudo -u hdfs hadoop fs -mkdir /user/hive/warehouse

# sudo -u hdfs hadoop fs -chmod g+w /tmp

# sudo -u hdfs hadoop fs -chmod g+w /user/hive/warehouse

# sudo -u hdfs hadoop fs -chown -R training /user/hive/warehouse

# sudo chmod 777 /var/lib/hive/metastore

# cd /var/lib/hive/metastore/metastore_db/

# sudo rm *.lck

# cd

# hive

Browse Categories

...