0

我尝试在集群节点的本地计算机上使用 hive,但出现以下错误

> ade:[ ashsshar_bda200olh ] [ashsshar@slc01nwj work]$ /bin/bash
> $SRCHOME/hadoop/3rdparty/cloudera/cdh3u3/hive-0.7.1-cdh3u3/bin/hive
> --config $T_WORK/hive_scratch/conf/ /ade/ashsshar_bda200olh/hadoop/3rdparty/cloudera/cdh3u3/hive-0.7.1-cdh3u3/bin/hive: line 68: [:
> /ade/ashsshar_bda200olh/bda/image/puppet/modules/.ade_path: binary
> operator expected
> /ade/ashsshar_bda200olh/hadoop/3rdparty/cloudera/cdh3u3/hive-0.7.1-cdh3u3/bin/hive: line 73: [:
> /ade/ashsshar_bda200olh/bda/image/puppet/modules/.ade_path: binary
> operator expected
> /ade/ashsshar_bda200olh/hadoop/3rdparty/cloudera/cdh3u3/hive-0.7.1-cdh3u3/bin/hive: line 79: [:
> /ade/ashsshar_bda200olh/bda/image/puppet/modules/.ade_path: binary
> operator expected Hive requires Hadoop 0.20.x (x >= 1). 'hadoop
> version' returned: Hadoop 2.0.0-cdh4.2.0 Subversion
> file:///data/1/jenkins/workspace/generic-package-centos64-5-5/topdir/BUILD/hadoop-2.0.0-cdh4.2.0/src/hadoop-common-project/hadoop-common
> -r 8bce4bd28a464e0a92950c50ba01a9deb1d85686 Compiled by jenkins on Fri Feb 15 11:13:38 PST 2013 From source with checksum
> 3eefc211a14ac7b6e764d6ded2eeeb26

当我尝试在集群节点上做同样的事情时,它工作正常我已经能够使用 hive [

root@NODE conf]# hive Logging initialized using configuration in
> jar:file:/usr/lib/hive/lib/hive-common-0.10.0-cdh4.3.0.jar!/hive-log4j.properties
> Hive history
> file=/tmp/root/hive_job_log_9e464dd7-8713-4d46-91a9-3a486920212d_1999869476.txt
> hive>

我不确定为什么会这样。

我机器上的 hadoop 版本给出以下输出::

>

    ashsshar_bda200olh ] [ashsshar@slc01nwj work]$ hadoop version
  Hadoop 2.0.0-cdh4.2.0 Subversion file:///data/1/jenkins/workspace/generic-package-centos64-5-5/topdir/BUILD/hadoop-2.0.0-cdh4.2.0/src/hadoop-common-project/hadoop-common
    > -r 8bce4bd28a464e0a92950c50ba01a9deb1d85686 Compiled by jenkins on Fri Feb 15 11:13:38 PST 2013 From source with checksum
    > 3eefc211a14ac7b6e764d6ded2eeeb26
4

1 回答 1

0

hive-0.7.1-cdh3u3 和 Hadoop 2.0.0-cdh4.2.0 不兼容。我建议您将 hive 更新为 hive-0.10.0-cdh4.2.0。

于 2013-06-27T15:57:01.490 回答