Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses

2014-04-03 Thread Patcharee Thongtra
Hi, I am trying to run pig test. When I execute mvn test, I got error org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1066: Unable to open iterator for alias data at org.apache.pig.PigServer.openIterator(PigServer.java:880) at

Embedded pig in java

2014-04-03 Thread Junior Tsire
Hi everybody, I have been following a tutorial on how to embed pig in java because I am currently learning it. I used the sample code that I found onĀ  http://pig.apache.org/docs/r0.11.0/cont.html to teach myself and here is the code that I took and paste it on netbeans package idlocal; import

Re: Embedded pig in java

2014-04-03 Thread David LaBarbera
Try running with java -cp pathpig.jar idlocal.Idlocal David On Apr 3, 2014, at 7:54 AM, Junior Tsire jajao2...@yahoo.fr wrote: Hi everybody, I have been following a tutorial on how to embed pig in java because I am currently learning it. I used the sample code that I found on

Re: Embedded pig in java

2014-04-03 Thread Jay Vyas
You can run the maven profile on bigpetstore as an example as well: (see PigCSVCleaner.java): https://github.com/jayunit100/bigpetstore/ And for a visual demo you can watch how we use maven to run local pig tasks w/ PigServer in maven (somewhere in the middle of the video) here: