You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Pavel Gutin <pa...@gmail.com> on 2010/03/09 17:26:50 UTC
Can't run the tutorial
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:
[user@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
Re: Can't run the tutorial
Posted by Pavel Gutin <pa...@gmail.com>.
Thank you, but it didn't help. It still hangs in cygwin, and redhad
On Wed, Mar 10, 2010 at 12:22 AM, Ashutosh Chauhan
<as...@gmail.com> wrote:
> Try with higher memory.
>
> [user@server pigtmp]$ java -Xmx768M -cp ./pig.jar org.apache.pig.Main -x local
> script1-local.pig
>
> Hope it helps,
> Ashutosh
>
Re: Can't run the tutorial
Posted by Ashutosh Chauhan <as...@gmail.com>.
Try with higher memory.
[user@server pigtmp]$ java -Xmx768M -cp ./pig.jar org.apache.pig.Main -x local
script1-local.pig
Hope it helps,
Ashutosh
Re: Can't run the tutorial
Posted by Alan Gates <ga...@yahoo-inc.com>.
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:
>
> [user@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