空指针在启动HIVE时出现异常

时间:2014-09-21 03:20:40

标签: hadoop hive bigdata

我是hive技术的新手。 我一直在尝试在我的机器中安装配置单元。每当我尝试通过在bin文件夹中执行hive shell脚本来启动配置单元时,它会执行Null指针执行,最后是ExceptionInInitializerError。

以下是堆栈跟踪

Exception in thread "main" java.lang.ExceptionInInitializerError
        at org.apache.hadoop.hive.common.LogUtils.initHiveLog4j(LogUtils.java:58)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:641)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:192)
Caused by: java.lang.RuntimeException: Could not load shims in class null
        at org.apache.hadoop.hive.shims.ShimLoader.createShim(ShimLoader.java:123)
        at org.apache.hadoop.hive.shims.ShimLoader.loadShims(ShimLoader.java:115)
        at org.apache.hadoop.hive.shims.ShimLoader.getHadoopShims(ShimLoader.java:80)
        at org.apache.hadoop.hive.conf.HiveConf$ConfVars.<clinit>(HiveConf.java:248)
        ... 8 more
Caused by: java.lang.NullPointerException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:186)
        at org.apache.hadoop.hive.shims.ShimLoader.createShim(ShimLoader.java:120)
        ... 11 more

有人知道如何解决它吗? 我正在使用apache-hive-0.13.1 和hadoop-0.22.0。

0 个答案:

没有答案