AnsweredAssumed Answered

Hive client not working

Question asked by ashish on Jun 26, 2013
Latest reply on Jun 27, 2013 by gera
I tried to use hive from my local machine at my cluster nodes, but getting the following error

> 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 3eefc21


When i tried to do the same on cluster nodes its working fine I have been able to use 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_657fab2b-4a77-43e2-86bd-a9ed376b1a56_307608455.txt
> hive>




**hadoop verson at my machine gives the following output ::**

ade:[ ashsshar_bda200olh ] [ashsshar@slc01nwj work]$ hadoop version

Hadoop 2.0.0-cdh4.2.0



Outcomes