Many Thanks Guys, you guys r really helpful. Really appreciate it.
Thanks
Sai
From: "bejoy...@yahoo.com"
To: user@hive.apache.org; Sai Sai
Sent: Sunday, 10 March 2013 12:06 PM
Subject: Re: java.lang.NoClassDefFoundError: com/jayway/jsonpath/Path
, Please excuse typos
-Original Message-
From: Ramki Palle
Date: Sun, 10 Mar 2013 06:58:57
To: ; Sai Sai
Reply-To: user@hive.apache.org
Subject: Re: java.lang.NoClassDefFoundError: com/jayway/jsonpath/PathUtil
Well, you get the results faster.
Please check this:
https://cwiki.apache.org
ClassLoader.loadClass(ClassLoader.java:266)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:264)
> at
> org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:820)
> at
> org.apache.hadoop.hive.ql.exec.MapOp
Palle
To: user@hive.apache.org; Sai Sai
Sent: Sunday, 10 March 2013 4:22 AM
Subject: Re: java.lang.NoClassDefFoundError: com/jayway/jsonpath/PathUtil
When you execute the following query,
hive> select * from twitter limit 5;
Hive runs it in local mode and not use MapReduce.
For the qu
me(Configuration.java:820)
> at
> org.apache.hadoop.hive.ql.exec.MapOperator.initObjectInspector(MapOperator.java:243)
> at
> org.apache.hadoop.hive.ql.exec.MapOperator.setChildren(MapOperator.java:380)
> ... 23 more
>
>
> FAILED: Execution Error, return code 2 from
&
adoop.hive.ql.exec.MapOperator.initObjectInspector(MapOperator.java:243)
> at
> org.apache.hadoop.hive.ql.exec.MapOperator.setChildren(MapOperator.java:380)
> ... 23 more
>
>
> FAILED: Execution Error, return code 2 from
> org.apache.hadoop.hive.ql.exec.MapRedTask
> M
uce CPU Time Spent: 0 msec
Thanks
Sai
From: Dean Wampler
To: user@hive.apache.org; Sai Sai
Sent: Friday, 8 March 2013 5:22 AM
Subject: Re: java.lang.NoClassDefFoundError: com/jayway/jsonpath/PathUtil
Unfortunately, you have to also add the json jars to Hi
Unfortunately, you have to also add the json jars to Hive's class path
before it starts, e.g.,
env HADOOP_CLASSPATH=/path/to/lib/*.jar hive
Use the appropriate path to your lib directory.
On Fri, Mar 8, 2013 at 4:53 AM, Sai Sai wrote:
> I have added the jar files successfully like this:
>
>
>
I have added the jar files successfully like this:
hive (testdb)> ADD JAR lib/hive-json-serde-0.3.jar;
Added lib/hive-json-serde-0.3.jar to class path
Added resource: lib/hive-json-serde-0.3.jar
hive (testdb)> ADD JAR lib/json-path-0.5.4.jar;
Added