cygwin windows中的配置单元安装错误

j2datikz  于 2021-06-28  发布在  Hive
关注(0)|答案(0)|浏览(191)

我在安装配置单元时遇到以下错误,请按照下面的说明安装配置单元1.2.1和hadoop 1.2.1
定义了hadoop\u home和java\u 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)

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

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题