Hi
So I followed the instructions.
Echo $PIG_CLASSPATH
Points to hadoop conf
On pig -f time.pig
I still get same error? ?
Problem resolving class version number
So this is what I did
1 write a program in Java as my udf and export it as udf.jar
Wrote a simple pig script and register that udf
Do you see a "conf" dir within /path/Hadoop? If yes, point your
PIG_CLASSPATH to it.
export PIG_CLASSPATH=/path/hadoop/conf.
Sent from my iPhone
On Oct 26, 2012, at 10:35 AM, jamal sasha wrote:
> Hi
> Great catch
> Now I get an error
> Cannot find hadoop configuration in class path ( neither h
Hi
Great catch
Now I get an error
Cannot find hadoop configuration in class path ( neither hadoop site XML
etc)
So I am running the file on a cluster which had say hadoop set up as
/path/hadoop
/path/pig
And I have account in it
So I cannot change the hadoop conf files as other users are also us
Hi
In this case I get an error
Problem resolving class version numbers for class myudfs.time??
On Thursday, October 25, 2012, pablomar
wrote:
> to run your script you have to do
> pig -f time.pig
>
>
>
> On Thu, Oct 25, 2012 at 5:46 PM, jamal sasha
wrote:
>
>> Hi,
>>
>> I am trying to wr
Somewhere you have a typo, probably in the execution of your program:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/pache/pig/Main
Caused by: java.lang.ClassNotFoundException: org.pache.pig.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
Note
to run your script you have to do
pig -f time.pig
On Thu, Oct 25, 2012 at 5:46 PM, jamal sasha wrote:
> Hi,
>
> I am trying to write a pig udf function.. Basically the data is of
> format*
> ***
>
> ** **
>
> Id,time
>
> What I am trying to do is … parse the time and then see whethe
Hi,
I am trying to write a pig udf function.. Basically the data is of format*
***
** **
Id,time
What I am trying to do is … parse the time and then see whether its
breakfast, lunch or dinner.. based on the time stamp. Some entries wil be
null as well..
** **
So here is the udf