HI Cao,

No, but my $HADOOP_HOME/lib has thriftfs.jar. But I hope that is fine.

Regards,
Kannu Mehta


On Sun, Jun 23, 2013 at 10:35 PM, FangKun Cao <caofang...@gmail.com> wrote:

> This should be a JAR files conflict issue .
> Please check if $HADOOP_HOME/lib and $HIVE_HOME/lib both have
>  thilibthrift-*.jar ,
> if do have, remove one of them and retry.
>
>
> 2013/6/24 Kannu Mehta <kannume...@gmail.com>
>
>> Hi All,
>>
>> I'm trying to run Hadoop and Hive in a pseudo-distributed mode on my
>> local machine. I've already got hadoop running but when I try to run Hive,
>> it gives me the following error
>>
>>
>> `Exception in thread "main" java.lang.NoClassDefFoundError: 
>> org/apache/thrift/TException
>>     at java.lang.Class.forName0(Native Method)
>>     at java.lang.Class.forName(Class.java:266)
>>     at org.apache.hadoop.util.RunJar.main(RunJar.java:149)
>> Caused by: java.lang.ClassNotFoundException: org.apache.thrift.TException
>>     at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>>     at java.security.AccessController.doPrivileged(Native Method)
>>     at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>>     ... 3 more   `
>>
>> I have tried to debug the problem but couldn't find what's missing. My
>> HADOOP_HOME, HADOOP_CLASSPATH are being set properly. Also,
>> HADOOP_CLASSPATH contains libthrift-0.9.0.jar which has the class shown in
>> the error above.
>>
>> Any suggestion what am I missing here?
>>
>> --
>> Regards,
>> Kannu Mehta
>>
>
>
>
> --
> Best wishs!
> Fangkun.Cao
>



-- 
Regards,
Kannu Mehta

Reply via email to