I have a hadoop running on my localhost. I tried to set up hive and install hive on my localhost. When i gave hive on terminal, following error is coming
/ ade:[ ashsshar_bda_latest_2 ] [ashsshar@slc01nwj tmp2]$ hive
/usr/lib/hive/bin/hive: line 179: conditional binary operator expected
/usr/lib/hive/bin/hive: line 179: syntax error near unexpected token `=~'
/usr/lib/hive/bin/hive: line 179: `if [[ "$HADOOP_VERSION" =~ $hadoop_version_re ]]; then'
To know the hive version i gave hive-version and got following.
ade:[ ashsshar_bda_latest_2 ] [ashsshar@slc01nwj hive]$ hive -version
/usr/lib/hive/bin/hive: line 179: conditional binary operator expected
/usr/lib/hive/bin/hive: line 179: syntax error near unexpected token
=~' /usr/lib/hive/bin/hive: line 179:if [[ "$HADOOP_VERSION" =~$hadoop_version_re ]]; then'
My hadoop is working fine and show appropriate directorires hadoop fs -ls / Found 2 items
drwxrwxrwt - hdfs supergroup 0 2013-04-05 11:57 /tmp
drwxrwxr-x - hdfs hadoop 0 2013-04-04 10:49 /user