BTW, You can use the following command to get the classpath

pig -printCmdDebug


Best Regard,
Jeff Zhang





On 7/14/15, 10:17 PM, "Jianfeng (Jeff) Zhang" <jzh...@hortonworks.com>
wrote:

>It should be classpath issue. Did you set the PIG_HOME ? Maybe you still
>point PIG_HOME to pig version 0.13
>
> 
>
>Best Regard,
>Jeff Zhang
>
>
>
>
>
>On 7/14/15, 12:00 PM, "Antoine Lafleur" <antoine.lafl...@gmx.fr> wrote:
>
>>Evening,
>>
>>     Sorry to bother, in case of anyone do have the same issue, it seems
>>that the problem doesn't occur on version 0.13. I was able to run some
>>grunt command and check the link with my hdfs cluster.
>>
>>Have a nice evening.
>>Regards
>>
>>Le 14/07/2015 20:15, Antoine Lafleur a écrit :
>>> Hi Debabrata,
>>>
>>>     Unfortunately the java -cp command give me back the following
>>> "Error: Could not find or load main class org.python.util.jython"
>>>
>>>     I've checked the jar files and they do are the same :
>>>
>>>     md5sum /usr/local/hadoop/share/hadoop/tools/lib/joda-time-2.5.jar
>>>     c18e34f88c183cb21bbb693b3505e7d2
>>> /usr/local/hadoop/share/hadoop/tools/lib/joda-time-2.5.jar
>>>
>>>     md5sum /usr/local/pig/pig-0.15.0/lib/joda-time-2.5.jar
>>>     c18e34f88c183cb21bbb693b3505e7d2
>>> /usr/local/pig/pig-0.15.0/lib/joda-time-2.5.jar
>>>
>>> Thanks for your help.
>>>
>>> Le 14/07/2015 19:36, Debabrata Pani a écrit :
>>>> Hi Antoine,
>>>>
>>>> I don't completely know the answer to your questions.
>>>>
>>>> But does this following command give a jython prompt to you ?
>>>>
>>>> java -cp `hadoop classpath` org.python.util.jython
>>>>
>>>> If it does, can you type the following and see what is the output ?
>>>>
>>>>>>> from org.joda.time import DateTime
>>>>>>> x = DateTime()
>>>>>>> x.getClass().getProtectionDomain()
>>>> The above is important to know where is the joda jar coming in your
>>>> classpath.
>>>> If the above does not work, may be we can study the output of the
>>>> following:
>>>>
>>>>>>> from java.lang import System
>>>>>>> System.getProperties()
>>>> Regards,
>>>> Debabrata Pani
>>>>
>>
>

Reply via email to