Back
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
# 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
31k questions
32.8k answers
501 comments
693 users