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

后端 未结 12 1374
无人共我
无人共我 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 15:05

    I solved this problem by removing --deploy-mode cluster from spark-submit code. By default , spark submit takes client mode which has following advantage :

    1. It opens up Netty HTTP server and distributes all jars to the worker nodes.
    2. Driver program runs on master node , which means dedicated resources to driver process.
    

    While in cluster mode :

     1.  It runs on worker node.
     2. All the jars need to be placed in a common folder of the cluster so that it is accessible to all the worker nodes or in folder of each worker node.
    

    Here it's not able to access hive metastore due to unavailability of hive jar to any of the nodes in cluster.

提交回复
热议问题