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
Restarting the virtual machine or system should also release the lock.
make hive.metastore.schema.verification=false in hive-site.xml file this error will be removed. In my case it is working well.
Being a newbie i got the same set of errors.
It was found that one of the daemons in my case namenode was not initiated. On installing hadoop it would be wise to make it a habit to hit he following commands :
ps -ef | grep "namenode"
ps -ef | grep "datanode"
ps -ef | grep "tracker"
One needs to check the relevant log if any of the daemon is not working.
I'm surprised to see no one has pointed out the actual issue which is most often the case.
Put this line at the start of your application.
It works for me, too. It can be found in your
home/user
directory. You can use thelocate
command to find it:locate metastore_db
After removing the lock files, close the current session. Call hive shell in new session