Reputation: 29
Hive shell is getting started but whenever i hit any command in shell, say
hive> show databases;
i am getting following error:
FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
My JPS is like this:
/apache-hive-2.3.0-bin/conf$ jps
3779 ResourceManager
3540 SecondaryNameNode
3909 NodeManager
3384 DataNode
6856 Jps
3257 NameNode
am getting this gerror?
My SQL Server is also running. Checked it using netstat -an|grep 3306, What could be wrong here?
Struggling for days now.
Upvotes: 3
Views: 1927
Reputation: 1872
I'm not sure if you figured this out or not but here are the steps I took to help me fix this error (note: I wasn't worried about losing my old schema, you may be):
stop-dfs.sh, stop-yarn.sh
.mv /home/user/metadata_db /home/user/metadata_db.tmp
.start-dfs.sh, start-yarn.sh
$HIVE_HOME/bin/schematool -initSchema -dbType derby
.$HIVE_HOME/bin/hive
.Hope this helps someone.
Upvotes: 1