我试图在我的Ubuntu机器上启动Hive(Cloudera安装Hadoop),我收到此错误:
hdp@DevBox:/$ hive
Hive history file=/tmp/hdp/hive_job_log_hdp_201304271931_185450475.txt
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.security.UserGroupInformation.login(Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/hadoop/security/UserGroupInformation;
at org.apache.hadoop.hive.shims.Hadoop20Shims.getUGIForConf(Hadoop20Shims.java:448)
at org.apache.hadoop.hive.ql.security.HadoopDefaultAuthenticator.setConf(HadoopDefaultAuthenticator.java:51)
at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:62)
at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
at org.apache.hadoop.hive.ql.metadata.HiveUtils.getAuthenticator(HiveUtils.java:222)
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:241)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:466)
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:197)
但我很困惑这意味着什么?我的机器上除了20.2 Hadoop jar 之外找不到任何东西 .
这是我的类路径:
hdp@DevBox:/$ hadoop classpath
/usr/lib/hadoop-0.20/conf:/usr/lib/jvm/java-7-oracle/jre/lib/tools.jar:/usr/lib/hadoop-0.20:/usr/lib/hadoop-0.20/ Hadoop的核心0.20.2-cdh3u5.jar:/usr/lib/hadoop-0.20/lib/ant-contrib-1.0b3.jar:/usr/lib/hadoop-0.20/lib/asm-3.2.jar:/ usr / lib中/ Hadoop的0.20 / LIB / aspectjrt-1.6.5.jar:/usr/lib/hadoop-0.20/lib/aspectjtools-1.6.5.jar:/usr/lib/hadoop-0.20/lib/avro- 1.5.4.jar:/usr/lib/hadoop-0.20/lib/avro-ipc-1.5.4.jar:/usr/lib/hadoop-0.20/lib/avro-mapred-1.5.4.jar:在/ usr /lib/hadoop-0.20/lib/avro-tools-1.5.4.jar:/usr/lib/hadoop-0.20/lib/commons-cli-1.2.jar:/usr/lib/hadoop-0.20/lib/commons -codec-1.4.jar:/usr/lib/hadoop-0.20/lib/commons-daemon-1.0.1.jar:/usr/lib/hadoop-0.20/lib/commons-el-1.0.jar:在/ usr / LIB / Hadoop的0.20 / LIB /公地HttpClient的-3.1.jar:/usr/lib/hadoop-0.20/lib/commons-io-2.1.jar:/usr/lib/hadoop-0.20/lib/commons-lang- 2.4.jar:/usr/lib/hadoop-0.20/lib/commons-logging-1.0.4.jar:/usr/lib/hadoop-0.20/lib/commons-logging-api-1.0.4.jar:在/ usr /lib/hadoop-0.20/lib/commons-net-3.1.jar:/usr/lib/hadoop-0.20/lib /core-3.1.1.jar:/usr/lib/hadoop-0.20/lib/elephant-bird-2.0.5.jar:/usr/lib/hadoop-0.20/lib/guava-r09-jarjar.jar:/ usr / lib中/ Hadoop的0.20 / LIB / Hadoop的fairscheduler-0.20.2-cdh3u5.jar:/usr/lib/hadoop-0.20/lib/hadoop-lzo-0.4.15.jar:/ usr / lib中/ hadoop- 0.20 / LIB / HSQLDB-1.8.0.10.jar:/usr/lib/hadoop-0.20/lib/jackson-core-asl-1.5.2.jar:/usr/lib/hadoop-0.20/lib/jackson-mapper- ASL-1.5.2.jar:/usr/lib/hadoop-0.20/lib/jasper-compiler-5.5.12.jar:/usr/lib/hadoop-0.20/lib/jasper-runtime-5.5.12.jar: /usr/lib/hadoop-0.20/lib/jersey-core-1.8.jar:/usr/lib/hadoop-0.20/lib/jersey-json-1.8.jar:/usr/lib/hadoop-0.20/lib/jersey -server-1.8.jar:/usr/lib/hadoop-0.20/lib/jets3t-0.6.1.jar:/usr/lib/hadoop-0.20/lib/jetty-6.1.26.cloudera.1.jar:/ usr / lib中/ Hadoop的0.20 / LIB /码头-servlet的测试仪6.1.26.cloudera.1.jar:/usr/lib/hadoop-0.20/lib/jetty-util-6.1.26.cloudera.1.jar :/usr/lib/hadoop-0.20/lib/jsch-0.1.42.jar:/usr/lib/hadoop-0.20/lib/junit-4.5.jar:/usr/lib/hadoop-0.20/lib/kfs- 0.2.2.jar:/usr/lib/hadoop-0.20/lib/libthrift.jar:/ usr / lib目录/hadoop-0.20/lib/log4j-1.2.15.jar:/usr/lib/hadoop-0.20/lib/mockito-all-1.8.2.jar:/usr/lib/hadoop-0.20/lib/oro-2.0 .8.jar:/usr/lib/hadoop-0.20/lib/servlet-api-2.5-20081211.jar:/usr/lib/hadoop-0.20/lib/servlet-api-2.5-6.1.14.jar:/ usr / lib中/ Hadoop的0.20 / LIB / SLF4J-API-1.4.3.jar:/usr/lib/hadoop-0.20/lib/slf4j-log4j12-1.4.3.jar:/usr/lib/hadoop-0.20/ LIB / xmlenc-0.52.jar:/usr/lib/hadoop-0.20/lib/jsp-2.1/jsp-2.1.jar:/usr/lib/hadoop-0.20/lib/jsp-2.1/jsp-api-2.1 . jar
我很困惑,不知道如何解决这个问题 .
任何人都可以建议吗?