Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.RuntimeException:Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient

I have configured my Hive as given on link: http://www.youtube.com/watch?v=Dqo1ahdBK_A, but I am getting the following error while creating a table in Hive. I am using hadoop-1.2.1 and hive-0.12.0.

hive> create table employee(emp_id int,name string,salary double); FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient 
like image 242
Raju Sharma Avatar asked Mar 28 '14 11:03

Raju Sharma


People also ask

What is Metastore DB in hive?

What is Hive Metastore? Metastore is the central repository of Apache Hive metadata. It stores metadata for Hive tables (like their schema and location) and partitions in a relational database. It provides client access to this information by using metastore service API.

How do I get hive Metastore URI?

While in the Hive service, click Service Actions > Add Hive Metastore. Select a host and then confirm. Start the Hive service. Metastore clients find the URI of the metastore from the configuration parameter hive.

Where is hive-site XML?

You can find hive-site. xml in /etc/hive/conf/, but if you're using Ambari to manage your cluster then do the modification in Ambari so it can deploy it to every host. You can find hive-site.


1 Answers

Looks like problem with your metastore. If you are using the default hive metastore embedded derby. Lock file would be there in case of abnormal exit. if you remove that lock file this issue would be solved

rm   metastore_db/*.lck 
like image 156
SachinJ Avatar answered Sep 25 '22 05:09

SachinJ