java.lang.RuntimeException:Unable to instantiate o

2020-01-26 06:22发布

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

17条回答
手持菜刀,她持情操
2楼-- · 2020-01-26 07:13

Restarting the virtual machine or system should also release the lock.

查看更多
聊天终结者
3楼-- · 2020-01-26 07:15

make hive.metastore.schema.verification=false in hive-site.xml file this error will be removed. In my case it is working well.

查看更多
\"骚年 ilove
4楼-- · 2020-01-26 07:15

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.

查看更多
狗以群分
5楼-- · 2020-01-26 07:18

I'm surprised to see no one has pointed out the actual issue which is most often the case.

System.setSecurityManager(null)

Put this line at the start of your application.

查看更多
爷、活的狠高调
6楼-- · 2020-01-26 07:20
rm metastore_db/*.lck

It works for me, too. It can be found in your home/user directory. You can use the locate command to find it: locate metastore_db

After removing the lock files, close the current session. Call hive shell in new session

查看更多
登录 后发表回答