cygwin窗口的hive安装错误

时间:2016-07-23 00:35:46

标签: windows hive cygwin

我按照以下说明安装hive时出现以下错误 Hive 1.2.1和hadoop 1.2.1

定义HADOOP_HOME和java_home

已执行:

bin/hive -hiveconf java.io.tmpdir=/tmp

错误:

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:637)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
Caused by: java.lang.IllegalArgumentException: Unrecognized Hadoop major version number: 0.20.2
        at org.apache.hadoop.hive.shims.ShimLoader.getMajorVersion(ShimLoader.java:174)
        at org.apache.hadoop.hive.shims.ShimLoader.loadShims(ShimLoader.java:139)
        at   org.apache.hadoop.hive.shims.ShimLoader.getHadoopShims(ShimLoader.java:100)
        at org.apache.hadoop.hive.conf.HiveConf$ConfVars.<clinit>(HiveConf.j`enter code here`ava:368)

任何帮助解决或理解这个问题都将不胜感激。

0 个答案:

没有答案