环境,hadoop2.6.0+zookeeper3.4.5+hbase1.0.3, jdk1.7 以上环境已安装好,启动成功,启动hive时报错,hive 为apache-hive-1.1.1-bin.tar.gz,执行./bin/hive, 错误日志如下:
16/05/05 21:47:15 WARN conf.HiveConf:HiveConf of name hive.exec.scratdir does not exist 16/05/05 21:47:15 WARN conf.HiveConf:HiveConf of name hive.metastore.local does not exist Logging initialized using configuration infile:/application/hadoop/hive/conf/hive-log4j.properties SLF4J: Class path contains multiple SLF4Jbindings. SLF4J: Found binding in[jar:file:/application/hadoop/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in[jar:file:/application/hadoop/hive/lib/hive-jdbc-1.1.1-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Actual binding is of type[org.slf4j.impl.Log4jLoggerFactory] Exception in thread "main"java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiateorg.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient atorg.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:472) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:671) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
求解。
|