Re: Unable to run Pig jar using java command

2015-12-06 Thread Shashikant K
Hi Shashi, Try the following 1. Instead of /usr/hdp/2.3.0.0-2557/hadoop/client/* use /usr/hdp/2.3.0.0-2557/hadoop/client/*.jar (See .jar at the end. Replace all * with *.jar) 2. Instead of semi-colon ( ; ) try with colon ( : ) 3. If step 1 above does not work then try putting individual JAR in th

Re: Unable to run Pig jar using java command

2015-12-05 Thread Shashi Vishwakarma
Still getting same error java -cp "/usr/hdp/2.3.0.0-2557/hadoop/client/*;/usr/hdp/2.3.0.0-2557/hadoop-hdfs/lib/*;/usr/hdp/2.3.0.0-2557/hadoop-mapreduce/lib/*;/usr/hdp/2.3.0.0-2557/hadoop-yarn/lib/*;/usr/hdp/2.3.0.0-2557/pig/lib/*;/usr/hdp/2.3.0.0-2557/hadoop/conf;/usr/hdp/2.3.0.0-2557/pig/pig-0.1

Re: Unable to run Pig jar using java command

2015-12-05 Thread Artem Ervits
Instead of adding just one pig jar usr/hdp/2.3.0.0-2557/pig/pig-0.15.0.2.3.0.0-2557-core- Add the whole directory. You're missing pig lib on classpath. On Dec 5, 2015 6:06 AM, "Shashi Vishwakarma" wrote: > Hi Mike, > > I tried running code using "" in command and i got below error. > > java -cp

Re: Unable to run Pig jar using java command

2015-12-05 Thread Shashi Vishwakarma
Hi Mike, I tried running code using "" in command and i got below error. java -cp "/usr/hdp/2.3.0.0-2557/hadoop/client/*;/usr/hdp/2.3.0.0-2557/hadoop-hdfs/lib/*;/usr/hdp/2.3.0.0-2557/hadoop-mapreduce/lib/*;/usr/hdp/2.3.0.0-2557/hadoop-yarn/lib/*;/usr/hdp/2.3.0.0-2557/pig/lib/*;/usr/hdp/2.3.0.0-2

Re: Unable to run Pig jar using java command

2015-12-04 Thread Michael Spertus
The shell is interpreting the semicolons as meaning a new command is being entered. You might need to use some quotation marks around the classpath On Dec 3, 2015 11:34 PM, "Shashi Vishwakarma" wrote: > Hi > I am trying to simple pig code but its giving me some permission. Here is > my sample pig