Reply
New Contributor
Posts: 1
Registered: ‎09-30-2014

Hive Shell Error

I am using Cloudera CDH5 and the HUE browser for HIVE queries works great. But when I try the command line version of the same in CDH, i get the below error. I got to understand that the HADOOP_CLASSPATH variable needs to be set and i tried the same after that too. But i got the same error.

 

 

[cloudera@quickstart bin]$ hive
Error: Could not find or load main class org.apache.hadoop.util.PlatformName
Error: Could not find or load main class org.apache.hadoop.util.RunJar
[cloudera@quickstart bin]$ env | grep HA
HADOOP_HOME=/usr/lib/hadoop-0.20-mapreduce
HADOOP_VERSION=2.3.0-cdh5.1.0
HADOOP_CLASSPATH=/usr/lib/hadoop/client-0.20
[cloudera@quickstart bin]$

 

 

Any ideas as what is wrong?

Thanks, Manish