FAILED: Error in metadata: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient

前端 未结 8 1392
庸人自扰
庸人自扰 2021-01-01 07:05

I shutdown my HDFS client while HDFS and hive instances were running. Now when I relogged into Hive, I can\'t execute any of my DDL Tasks e.g. \"show tables\" or \"describe

相关标签:
8条回答
  • 2021-01-01 07:52

    I had a similar problem with hive server and followed the below steps:
    1. Go to $HIVE_HOME/bin/metastore_db
    2. Copied the db.lck to db.lck1 and dbex.lck to dbex.lck1
    3. Deleted the lock entries from db.lck and dbex.lck
    4. Relogin from hive shell. It is working
    Thanks

    0 讨论(0)
  • 2021-01-01 07:54

    I also was facing the same problem, and figured out that I had both hive-deafult.xml and hive-site.xml(created manually by me),

    I moved my hive-site.xml to hive-site.xml-template(as I was not needed this file) then started hive, worked fine.

    Cheers, Ajmal

    0 讨论(0)
提交回复
热议问题