RuntimeException:无法在类null中加载填充程序

时间:2013-06-09 21:25:08

标签: hadoop hive bigdata

我安装了Hive 0.9.0,运行时出错:

./hive

Logging initialized using configuration in jar:file:/usr/lib/hive-0.10.0/lib/hive-common-0.10.0.jar!/hive-log4j.properties
Hive history file=/tmp/ec2-user/hive_job_log_ec2-user_201306091708_899006677.txt
Exception in thread "main" java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: java.lang.RuntimeException: Could not load shims in class null
    at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:293)
    at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:669)
    at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:613)
    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:616)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:192)
Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: java.lang.RuntimeException: Could not load shims in class null
    at org.apache.hadoop.hive.ql.metadata.HiveUtils.getAuthenticator(HiveUtils.java:368)
    at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:285)
    ... 7 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Could not load shims in class null
    at org.apache.hadoop.hive.ql.security.HadoopDefaultAuthenticator.setConf(HadoopDefaultAuthenticator.java:53)
    at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:70)
    at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:125)
    at org.apache.hadoop.hive.ql.metadata.HiveUtils.getAuthenticator(HiveUtils.java:365)
    ... 8 more
Caused by: java.lang.RuntimeException: Could not load shims in class null
    at org.apache.hadoop.hive.shims.ShimLoader.createShim(ShimLoader.java:102)
    at org.apache.hadoop.hive.shims.ShimLoader.loadShims(ShimLoader.java:94)
    at org.apache.hadoop.hive.shims.ShimLoader.getHadoopShims(ShimLoader.java:66)
    at org.apache.hadoop.hive.ql.security.HadoopDefaultAuthenticator.setConf(HadoopDefaultAuthenticator.java:51)
    ... 11 more
Caused by: java.lang.NullPointerException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:188)
    at org.apache.hadoop.hive.shims.ShimLoader.createShim(ShimLoader.java:99)
    ... 14 more

可能出现什么问题?

1 个答案:

答案 0 :(得分:1)

您确定版本吗?我可以在跟踪中看到hive-0.10.0。如果它是Hive-0.9.0,那么请确保您使用的是hadoop-0.20.x和/或hadoop-1.x。