java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

后端 未结 12 1400
无人共我
无人共我 2020-11-27 14:38

I have Hadoop 2.7.1 and apache-hive-1.2.1 versions installed on ubuntu 14.0.

  1. Why this error is occurring ?
  2. Is any metastore installation required?
12条回答
  •  感动是毒
    2020-11-27 14:53

    I have used MySQL DB for Hive MetaStore. Please follow the below steps:

    • in hive-site.xml the metastore should be proper
    
     javax.jdo.option.ConnectionURL 
     jdbc:mysql://localhost/metastorecreateDatabaseIfNotExist=true&useSSL=false
    
    
    • go to the mysql: mysql -u hduser -p
    • then run drop database metastore
    • then come out from MySQL and execute schematool -initSchema dbType mysql

    Now error will go.

提交回复
热议问题