pig-user  

Re: Can't run the tutorial

Alan Gates
Mon, 15 Mar 2010 11:53:53 -0700

Which version of Pig is this? If it's trunk, then you should check that check that you can run Hadoop on your machine, as it appears it is not connecting to Hadoop. (As of version 0.7 Pig uses a local instance of Hadoop in local mode.)

Alan.

On Mar 9, 2010, at 8:26 AM, Pavel Gutin wrote:

I am trying to play around with pig, but i have problems running even
the basic tutorial. Both scripts just hang. I tried it in cygwin in
vista, as well as on a RedHat box with the same results.

Here's the output if the first one:

[u...@server pigtmp]$ java -cp ./pig.jar org.apache.pig.Main -x local
script1-local.pig
2010-03-09 10:56:42,004 [main] WARN  org.apache.pig.PigServer -
Function org.apache.pig.tutorial.NonURLDetector() will be called with
following argument types: {chararray}. If you want to use different
input argument types, please use explicit casts.
2010-03-09 10:56:42,005 [main] WARN  org.apache.pig.PigServer -
bytearray is implicitly casted to chararray under LOUserFunc Operator
2010-03-09 10:56:42,005 [main] WARN  org.apache.pig.PigServer -
Function org.apache.pig.tutorial.ToLower() will be called with
following argument types: {chararray}. If you want to use different
input argument types, please use explicit casts.
2010-03-09 10:56:42,005 [main] WARN  org.apache.pig.PigServer -
bytearray is implicitly casted to chararray under LOUserFunc Operator
2010-03-09 10:56:42,005 [main] WARN  org.apache.pig.PigServer -
Function org.apache.pig.tutorial.ExtractHour() will be called with
following argument types: {chararray}. If you want to use different
input argument types, please use explicit casts.
2010-03-09 10:56:42,005 [main] WARN  org.apache.pig.PigServer -
bytearray is implicitly casted to chararray under LOUserFunc Operator
##### it hangs here

Thank you for your help