启动Hive会给我一个SessioniveMetaStoreClietnt运行时异常

时间:2015-07-15 15:01:14

标签: ubuntu hadoop hive derby

只需按照Tutorials教程指导安装Hive,我正在运行Ubuntu 15.04,使用Hadoop 2.6.0并尝试使用Derby 10.11.1.1安装Hive 1.2.1执行时出现完整错误:

hive

    Exception in thread "main" java.lang.RuntimeException:
    java.lang.RuntimeException: unable to instantiate
    org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient at
    org.apache.hadoop.hive.ql.Session.SessionState.start(SessionState.java:522)

对此的任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

May be it could be due to more than one metastore_db. 

1. Remove "metastore_db".It should be under $HIVE_HOME/bin/metastore_db.

   You can locate it using "locate metastore_db"

   $ rm metastore_db/*.lck

2. Then restart hadoop cluster and the run hive from hive shell again. 
   See if it works or not.

修改

JDBC DriverManager无法为给定的连接URL找到任何合适的驱动程序。在连接数据库之前根本没有加载JDBC驱动程序,或者连接URL错误。检查ur hive / lib路径中的derby.jar。是derbyclient.jar还是derby.jar。还要检查$ HIVE_HOME / conf / hive-site.xml文件以获取匹配的驱动程序/连接URL路径