You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Mix Nin <pi...@gmail.com> on 2013/03/05 23:49:11 UTC

Error during parsing

Hi,

I executed below PIG commands.

 X= LOAD '/user/lnindrakrishna/input/ExpTag.txt'  AS (line:chararray);
 Y=foreach data  { generate STRSPLIT(line,',') ;};


And I get below error. What is wrong in my script. I tried removing flower
braces. giving extra spaces. But nothing worked

2013-03-05 15:38:57,124 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1000: Error during parsing. Encountered " <PATH> "Y=foreach "" at
line 2, column 1.
Was expecting one of:
    <EOF>
    "cat" ...
    "fs" ...
    "cd" ...
    "cp" ...
    "copyFromLocal" ...
    "copyToLocal" ...
    "dump" ...
    "describe" ...
    "aliases" ...
    "explain" ...
    "help" ...
    "kill" ...
    "ls" ...
    "mv" ...
    "mkdir" ...
    "pwd" ...
    "quit" ...
    "register" ...
    "rm" ...
    "rmf" ...
    "set" ...
    "illustrate" ...
    "run" ...
    "exec" ...
    "scriptDone" ...
    "" ...
    <EOL> ...
    ";" ...

Re: Error during parsing

Posted by inelu nagamallikarjuna <ma...@gmail.com>.
Hi,

I think it is better to download the latest stable version or otherwise
write your own udf for split functionality.

Thanks
Nagamallikarjuna

On Wed, Mar 6, 2013 at 5:04 AM, Mix Nin <pi...@gmail.com> wrote:

> Below is my PIG version
>
> Apache Pig version 0.7.1-wilma-3
>
> How do I use higher version of script.
>
>
> On Tue, Mar 5, 2013 at 3:32 PM, inelu nagamallikarjuna
> <ma...@gmail.com>wrote:
>
> > Hi,
> >
> >
> > The function STRSPLIT is not there in the list of in built fuction of
> > hive-0.7.0. Please use any version from 0.8.0 on words. There are lots of
> > improvements from 0.7.0 to 0.10.0.
> >
> >
> > Thanks
> > Nagamallikarjuna
> >
> > On Wed, Mar 6, 2013 at 4:58 AM, inelu nagamallikarjuna
> > <ma...@gmail.com>wrote:
> >
> > > Hi,
> > >
> > > This is the command *pig -version* in Linux shell.
> > >
> > > Thanks
> > > Nagamallikarjuna
> > >
> > >
> > > On Wed, Mar 6, 2013 at 4:56 AM, Mix Nin <pi...@gmail.com> wrote:
> > >
> > >> I checked by removing REGISTER command, but still I get the error. How
> > do
> > >> I
> > >> check the PIG version?
> > >>
> > >>
> > >> On Tue, Mar 5, 2013 at 3:22 PM, inelu nagamallikarjuna
> > >> <ma...@gmail.com>wrote:
> > >>
> > >> > Hi,
> > >> >
> > >> > strspit is a builtin function, so the register command is not
> > required.
> > >> > use same script by removing the first line. I already tested the
> > script
> > >> > against pig-0.10.0 version it is working fine.
> > >> >
> > >> > Thanks
> > >> > Nagamallikarjuna
> > >> >
> > >> > On Wed, Mar 6, 2013 at 4:46 AM, Mix Nin <pi...@gmail.com>
> wrote:
> > >> >
> > >> > > Below is my script
> > >> > >
> > >> > >
> > >> > > REGISTER '/home/hadoop/lib/piggybank-0.7.0.jar';
> > >> > >
> > >> > > X= LOAD '/user/lnindrakrishna/input/ExpTag.txt'  AS
> > (line:chararray);
> > >> > > Y =foreach X  generate STRSPLIT(line,',') ;
> > >> > >
> > >> > > Thanks
> > >> > >
> > >> > >
> > >> > > On Tue, Mar 5, 2013 at 3:14 PM, Harsha <ha...@defun.org> wrote:
> > >> > >
> > >> > > > Hi Mix,
> > >> > > >        there is a additional ";"
> > >> > > > Y=foreach data { generate STRSPLIT(line,',') ;};
> > >> > > > Just before closing }
> > >> > > >
> > >> > > > --
> > >> > > > Harsha
> > >> > > >
> > >> > > >
> > >> > > > On Tuesday, March 5, 2013 at 2:49 PM, Mix Nin wrote:
> > >> > > >
> > >> > > > > Hi,
> > >> > > > >
> > >> > > > > I executed below PIG commands.
> > >> > > > >
> > >> > > > > X= LOAD '/user/lnindrakrishna/input/ExpTag.txt' AS
> > >> (line:chararray);
> > >> > > > > Y=foreach data { generate STRSPLIT(line,',') ;};
> > >> > > > >
> > >> > > > >
> > >> > > > > And I get below error. What is wrong in my script. I tried
> > >> removing
> > >> > > > flower
> > >> > > > > braces. giving extra spaces. But nothing worked
> > >> > > > >
> > >> > > > > 2013-03-05 15:38:57,124 [main] ERROR
> > >> > org.apache.pig.tools.grunt.Grunt -
> > >> > > > > ERROR 1000: Error during parsing. Encountered " <PATH>
> > "Y=foreach
> > >> ""
> > >> > at
> > >> > > > > line 2, column 1.
> > >> > > > > Was expecting one of:
> > >> > > > > <EOF>
> > >> > > > > "cat" ...
> > >> > > > > "fs" ...
> > >> > > > > "cd" ...
> > >> > > > > "cp" ...
> > >> > > > > "copyFromLocal" ...
> > >> > > > > "copyToLocal" ...
> > >> > > > > "dump" ...
> > >> > > > > "describe" ...
> > >> > > > > "aliases" ...
> > >> > > > > "explain" ...
> > >> > > > > "help" ...
> > >> > > > > "kill" ...
> > >> > > > > "ls" ...
> > >> > > > > "mv" ...
> > >> > > > > "mkdir" ...
> > >> > > > > "pwd" ...
> > >> > > > > "quit" ...
> > >> > > > > "register" ...
> > >> > > > > "rm" ...
> > >> > > > > "rmf" ...
> > >> > > > > "set" ...
> > >> > > > > "illustrate" ...
> > >> > > > > "run" ...
> > >> > > > > "exec" ...
> > >> > > > > "scriptDone" ...
> > >> > > > > "" ...
> > >> > > > > <EOL> ...
> > >> > > > > ";" ...
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > >
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > Thanks and Regards
> > >> > Nagamallikarjuna
> > >> >
> > >>
> > >
> > >
> > >
> > > --
> > > Thanks and Regards
> > > Nagamallikarjuna
> > >
> >
> >
> >
> > --
> > Thanks and Regards
> > Nagamallikarjuna
> >
>



-- 
Thanks and Regards
Nagamallikarjuna

Re: Error during parsing

Posted by Mix Nin <pi...@gmail.com>.
Below is my PIG version

Apache Pig version 0.7.1-wilma-3

How do I use higher version of script.


On Tue, Mar 5, 2013 at 3:32 PM, inelu nagamallikarjuna
<ma...@gmail.com>wrote:

> Hi,
>
>
> The function STRSPLIT is not there in the list of in built fuction of
> hive-0.7.0. Please use any version from 0.8.0 on words. There are lots of
> improvements from 0.7.0 to 0.10.0.
>
>
> Thanks
> Nagamallikarjuna
>
> On Wed, Mar 6, 2013 at 4:58 AM, inelu nagamallikarjuna
> <ma...@gmail.com>wrote:
>
> > Hi,
> >
> > This is the command *pig -version* in Linux shell.
> >
> > Thanks
> > Nagamallikarjuna
> >
> >
> > On Wed, Mar 6, 2013 at 4:56 AM, Mix Nin <pi...@gmail.com> wrote:
> >
> >> I checked by removing REGISTER command, but still I get the error. How
> do
> >> I
> >> check the PIG version?
> >>
> >>
> >> On Tue, Mar 5, 2013 at 3:22 PM, inelu nagamallikarjuna
> >> <ma...@gmail.com>wrote:
> >>
> >> > Hi,
> >> >
> >> > strspit is a builtin function, so the register command is not
> required.
> >> > use same script by removing the first line. I already tested the
> script
> >> > against pig-0.10.0 version it is working fine.
> >> >
> >> > Thanks
> >> > Nagamallikarjuna
> >> >
> >> > On Wed, Mar 6, 2013 at 4:46 AM, Mix Nin <pi...@gmail.com> wrote:
> >> >
> >> > > Below is my script
> >> > >
> >> > >
> >> > > REGISTER '/home/hadoop/lib/piggybank-0.7.0.jar';
> >> > >
> >> > > X= LOAD '/user/lnindrakrishna/input/ExpTag.txt'  AS
> (line:chararray);
> >> > > Y =foreach X  generate STRSPLIT(line,',') ;
> >> > >
> >> > > Thanks
> >> > >
> >> > >
> >> > > On Tue, Mar 5, 2013 at 3:14 PM, Harsha <ha...@defun.org> wrote:
> >> > >
> >> > > > Hi Mix,
> >> > > >        there is a additional ";"
> >> > > > Y=foreach data { generate STRSPLIT(line,',') ;};
> >> > > > Just before closing }
> >> > > >
> >> > > > --
> >> > > > Harsha
> >> > > >
> >> > > >
> >> > > > On Tuesday, March 5, 2013 at 2:49 PM, Mix Nin wrote:
> >> > > >
> >> > > > > Hi,
> >> > > > >
> >> > > > > I executed below PIG commands.
> >> > > > >
> >> > > > > X= LOAD '/user/lnindrakrishna/input/ExpTag.txt' AS
> >> (line:chararray);
> >> > > > > Y=foreach data { generate STRSPLIT(line,',') ;};
> >> > > > >
> >> > > > >
> >> > > > > And I get below error. What is wrong in my script. I tried
> >> removing
> >> > > > flower
> >> > > > > braces. giving extra spaces. But nothing worked
> >> > > > >
> >> > > > > 2013-03-05 15:38:57,124 [main] ERROR
> >> > org.apache.pig.tools.grunt.Grunt -
> >> > > > > ERROR 1000: Error during parsing. Encountered " <PATH>
> "Y=foreach
> >> ""
> >> > at
> >> > > > > line 2, column 1.
> >> > > > > Was expecting one of:
> >> > > > > <EOF>
> >> > > > > "cat" ...
> >> > > > > "fs" ...
> >> > > > > "cd" ...
> >> > > > > "cp" ...
> >> > > > > "copyFromLocal" ...
> >> > > > > "copyToLocal" ...
> >> > > > > "dump" ...
> >> > > > > "describe" ...
> >> > > > > "aliases" ...
> >> > > > > "explain" ...
> >> > > > > "help" ...
> >> > > > > "kill" ...
> >> > > > > "ls" ...
> >> > > > > "mv" ...
> >> > > > > "mkdir" ...
> >> > > > > "pwd" ...
> >> > > > > "quit" ...
> >> > > > > "register" ...
> >> > > > > "rm" ...
> >> > > > > "rmf" ...
> >> > > > > "set" ...
> >> > > > > "illustrate" ...
> >> > > > > "run" ...
> >> > > > > "exec" ...
> >> > > > > "scriptDone" ...
> >> > > > > "" ...
> >> > > > > <EOL> ...
> >> > > > > ";" ...
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > > >
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > Thanks and Regards
> >> > Nagamallikarjuna
> >> >
> >>
> >
> >
> >
> > --
> > Thanks and Regards
> > Nagamallikarjuna
> >
>
>
>
> --
> Thanks and Regards
> Nagamallikarjuna
>

Re: Error during parsing

Posted by inelu nagamallikarjuna <ma...@gmail.com>.
Hi,


The function STRSPLIT is not there in the list of in built fuction of
hive-0.7.0. Please use any version from 0.8.0 on words. There are lots of
improvements from 0.7.0 to 0.10.0.


Thanks
Nagamallikarjuna

On Wed, Mar 6, 2013 at 4:58 AM, inelu nagamallikarjuna
<ma...@gmail.com>wrote:

> Hi,
>
> This is the command *pig -version* in Linux shell.
>
> Thanks
> Nagamallikarjuna
>
>
> On Wed, Mar 6, 2013 at 4:56 AM, Mix Nin <pi...@gmail.com> wrote:
>
>> I checked by removing REGISTER command, but still I get the error. How do
>> I
>> check the PIG version?
>>
>>
>> On Tue, Mar 5, 2013 at 3:22 PM, inelu nagamallikarjuna
>> <ma...@gmail.com>wrote:
>>
>> > Hi,
>> >
>> > strspit is a builtin function, so the register command is not required.
>> > use same script by removing the first line. I already tested the script
>> > against pig-0.10.0 version it is working fine.
>> >
>> > Thanks
>> > Nagamallikarjuna
>> >
>> > On Wed, Mar 6, 2013 at 4:46 AM, Mix Nin <pi...@gmail.com> wrote:
>> >
>> > > Below is my script
>> > >
>> > >
>> > > REGISTER '/home/hadoop/lib/piggybank-0.7.0.jar';
>> > >
>> > > X= LOAD '/user/lnindrakrishna/input/ExpTag.txt'  AS (line:chararray);
>> > > Y =foreach X  generate STRSPLIT(line,',') ;
>> > >
>> > > Thanks
>> > >
>> > >
>> > > On Tue, Mar 5, 2013 at 3:14 PM, Harsha <ha...@defun.org> wrote:
>> > >
>> > > > Hi Mix,
>> > > >        there is a additional ";"
>> > > > Y=foreach data { generate STRSPLIT(line,',') ;};
>> > > > Just before closing }
>> > > >
>> > > > --
>> > > > Harsha
>> > > >
>> > > >
>> > > > On Tuesday, March 5, 2013 at 2:49 PM, Mix Nin wrote:
>> > > >
>> > > > > Hi,
>> > > > >
>> > > > > I executed below PIG commands.
>> > > > >
>> > > > > X= LOAD '/user/lnindrakrishna/input/ExpTag.txt' AS
>> (line:chararray);
>> > > > > Y=foreach data { generate STRSPLIT(line,',') ;};
>> > > > >
>> > > > >
>> > > > > And I get below error. What is wrong in my script. I tried
>> removing
>> > > > flower
>> > > > > braces. giving extra spaces. But nothing worked
>> > > > >
>> > > > > 2013-03-05 15:38:57,124 [main] ERROR
>> > org.apache.pig.tools.grunt.Grunt -
>> > > > > ERROR 1000: Error during parsing. Encountered " <PATH> "Y=foreach
>> ""
>> > at
>> > > > > line 2, column 1.
>> > > > > Was expecting one of:
>> > > > > <EOF>
>> > > > > "cat" ...
>> > > > > "fs" ...
>> > > > > "cd" ...
>> > > > > "cp" ...
>> > > > > "copyFromLocal" ...
>> > > > > "copyToLocal" ...
>> > > > > "dump" ...
>> > > > > "describe" ...
>> > > > > "aliases" ...
>> > > > > "explain" ...
>> > > > > "help" ...
>> > > > > "kill" ...
>> > > > > "ls" ...
>> > > > > "mv" ...
>> > > > > "mkdir" ...
>> > > > > "pwd" ...
>> > > > > "quit" ...
>> > > > > "register" ...
>> > > > > "rm" ...
>> > > > > "rmf" ...
>> > > > > "set" ...
>> > > > > "illustrate" ...
>> > > > > "run" ...
>> > > > > "exec" ...
>> > > > > "scriptDone" ...
>> > > > > "" ...
>> > > > > <EOL> ...
>> > > > > ";" ...
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > > >
>> > >
>> >
>> >
>> >
>> > --
>> > Thanks and Regards
>> > Nagamallikarjuna
>> >
>>
>
>
>
> --
> Thanks and Regards
> Nagamallikarjuna
>



-- 
Thanks and Regards
Nagamallikarjuna

Re: Error during parsing

Posted by inelu nagamallikarjuna <ma...@gmail.com>.
Hi,

This is the command *pig -version* in Linux shell.

Thanks
Nagamallikarjuna

On Wed, Mar 6, 2013 at 4:56 AM, Mix Nin <pi...@gmail.com> wrote:

> I checked by removing REGISTER command, but still I get the error. How do I
> check the PIG version?
>
>
> On Tue, Mar 5, 2013 at 3:22 PM, inelu nagamallikarjuna
> <ma...@gmail.com>wrote:
>
> > Hi,
> >
> > strspit is a builtin function, so the register command is not required.
> > use same script by removing the first line. I already tested the script
> > against pig-0.10.0 version it is working fine.
> >
> > Thanks
> > Nagamallikarjuna
> >
> > On Wed, Mar 6, 2013 at 4:46 AM, Mix Nin <pi...@gmail.com> wrote:
> >
> > > Below is my script
> > >
> > >
> > > REGISTER '/home/hadoop/lib/piggybank-0.7.0.jar';
> > >
> > > X= LOAD '/user/lnindrakrishna/input/ExpTag.txt'  AS (line:chararray);
> > > Y =foreach X  generate STRSPLIT(line,',') ;
> > >
> > > Thanks
> > >
> > >
> > > On Tue, Mar 5, 2013 at 3:14 PM, Harsha <ha...@defun.org> wrote:
> > >
> > > > Hi Mix,
> > > >        there is a additional ";"
> > > > Y=foreach data { generate STRSPLIT(line,',') ;};
> > > > Just before closing }
> > > >
> > > > --
> > > > Harsha
> > > >
> > > >
> > > > On Tuesday, March 5, 2013 at 2:49 PM, Mix Nin wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I executed below PIG commands.
> > > > >
> > > > > X= LOAD '/user/lnindrakrishna/input/ExpTag.txt' AS
> (line:chararray);
> > > > > Y=foreach data { generate STRSPLIT(line,',') ;};
> > > > >
> > > > >
> > > > > And I get below error. What is wrong in my script. I tried removing
> > > > flower
> > > > > braces. giving extra spaces. But nothing worked
> > > > >
> > > > > 2013-03-05 15:38:57,124 [main] ERROR
> > org.apache.pig.tools.grunt.Grunt -
> > > > > ERROR 1000: Error during parsing. Encountered " <PATH> "Y=foreach
> ""
> > at
> > > > > line 2, column 1.
> > > > > Was expecting one of:
> > > > > <EOF>
> > > > > "cat" ...
> > > > > "fs" ...
> > > > > "cd" ...
> > > > > "cp" ...
> > > > > "copyFromLocal" ...
> > > > > "copyToLocal" ...
> > > > > "dump" ...
> > > > > "describe" ...
> > > > > "aliases" ...
> > > > > "explain" ...
> > > > > "help" ...
> > > > > "kill" ...
> > > > > "ls" ...
> > > > > "mv" ...
> > > > > "mkdir" ...
> > > > > "pwd" ...
> > > > > "quit" ...
> > > > > "register" ...
> > > > > "rm" ...
> > > > > "rmf" ...
> > > > > "set" ...
> > > > > "illustrate" ...
> > > > > "run" ...
> > > > > "exec" ...
> > > > > "scriptDone" ...
> > > > > "" ...
> > > > > <EOL> ...
> > > > > ";" ...
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > Thanks and Regards
> > Nagamallikarjuna
> >
>



-- 
Thanks and Regards
Nagamallikarjuna

Re: Error during parsing

Posted by Mix Nin <pi...@gmail.com>.
I checked by removing REGISTER command, but still I get the error. How do I
check the PIG version?


On Tue, Mar 5, 2013 at 3:22 PM, inelu nagamallikarjuna
<ma...@gmail.com>wrote:

> Hi,
>
> strspit is a builtin function, so the register command is not required.
> use same script by removing the first line. I already tested the script
> against pig-0.10.0 version it is working fine.
>
> Thanks
> Nagamallikarjuna
>
> On Wed, Mar 6, 2013 at 4:46 AM, Mix Nin <pi...@gmail.com> wrote:
>
> > Below is my script
> >
> >
> > REGISTER '/home/hadoop/lib/piggybank-0.7.0.jar';
> >
> > X= LOAD '/user/lnindrakrishna/input/ExpTag.txt'  AS (line:chararray);
> > Y =foreach X  generate STRSPLIT(line,',') ;
> >
> > Thanks
> >
> >
> > On Tue, Mar 5, 2013 at 3:14 PM, Harsha <ha...@defun.org> wrote:
> >
> > > Hi Mix,
> > >        there is a additional ";"
> > > Y=foreach data { generate STRSPLIT(line,',') ;};
> > > Just before closing }
> > >
> > > --
> > > Harsha
> > >
> > >
> > > On Tuesday, March 5, 2013 at 2:49 PM, Mix Nin wrote:
> > >
> > > > Hi,
> > > >
> > > > I executed below PIG commands.
> > > >
> > > > X= LOAD '/user/lnindrakrishna/input/ExpTag.txt' AS (line:chararray);
> > > > Y=foreach data { generate STRSPLIT(line,',') ;};
> > > >
> > > >
> > > > And I get below error. What is wrong in my script. I tried removing
> > > flower
> > > > braces. giving extra spaces. But nothing worked
> > > >
> > > > 2013-03-05 15:38:57,124 [main] ERROR
> org.apache.pig.tools.grunt.Grunt -
> > > > ERROR 1000: Error during parsing. Encountered " <PATH> "Y=foreach ""
> at
> > > > line 2, column 1.
> > > > Was expecting one of:
> > > > <EOF>
> > > > "cat" ...
> > > > "fs" ...
> > > > "cd" ...
> > > > "cp" ...
> > > > "copyFromLocal" ...
> > > > "copyToLocal" ...
> > > > "dump" ...
> > > > "describe" ...
> > > > "aliases" ...
> > > > "explain" ...
> > > > "help" ...
> > > > "kill" ...
> > > > "ls" ...
> > > > "mv" ...
> > > > "mkdir" ...
> > > > "pwd" ...
> > > > "quit" ...
> > > > "register" ...
> > > > "rm" ...
> > > > "rmf" ...
> > > > "set" ...
> > > > "illustrate" ...
> > > > "run" ...
> > > > "exec" ...
> > > > "scriptDone" ...
> > > > "" ...
> > > > <EOL> ...
> > > > ";" ...
> > > >
> > > >
> > >
> > >
> > >
> >
>
>
>
> --
> Thanks and Regards
> Nagamallikarjuna
>

Re: Error during parsing

Posted by inelu nagamallikarjuna <ma...@gmail.com>.
Hi,

strspit is a builtin function, so the register command is not required.
use same script by removing the first line. I already tested the script
against pig-0.10.0 version it is working fine.

Thanks
Nagamallikarjuna

On Wed, Mar 6, 2013 at 4:46 AM, Mix Nin <pi...@gmail.com> wrote:

> Below is my script
>
>
> REGISTER '/home/hadoop/lib/piggybank-0.7.0.jar';
>
> X= LOAD '/user/lnindrakrishna/input/ExpTag.txt'  AS (line:chararray);
> Y =foreach X  generate STRSPLIT(line,',') ;
>
> Thanks
>
>
> On Tue, Mar 5, 2013 at 3:14 PM, Harsha <ha...@defun.org> wrote:
>
> > Hi Mix,
> >        there is a additional ";"
> > Y=foreach data { generate STRSPLIT(line,',') ;};
> > Just before closing }
> >
> > --
> > Harsha
> >
> >
> > On Tuesday, March 5, 2013 at 2:49 PM, Mix Nin wrote:
> >
> > > Hi,
> > >
> > > I executed below PIG commands.
> > >
> > > X= LOAD '/user/lnindrakrishna/input/ExpTag.txt' AS (line:chararray);
> > > Y=foreach data { generate STRSPLIT(line,',') ;};
> > >
> > >
> > > And I get below error. What is wrong in my script. I tried removing
> > flower
> > > braces. giving extra spaces. But nothing worked
> > >
> > > 2013-03-05 15:38:57,124 [main] ERROR org.apache.pig.tools.grunt.Grunt -
> > > ERROR 1000: Error during parsing. Encountered " <PATH> "Y=foreach "" at
> > > line 2, column 1.
> > > Was expecting one of:
> > > <EOF>
> > > "cat" ...
> > > "fs" ...
> > > "cd" ...
> > > "cp" ...
> > > "copyFromLocal" ...
> > > "copyToLocal" ...
> > > "dump" ...
> > > "describe" ...
> > > "aliases" ...
> > > "explain" ...
> > > "help" ...
> > > "kill" ...
> > > "ls" ...
> > > "mv" ...
> > > "mkdir" ...
> > > "pwd" ...
> > > "quit" ...
> > > "register" ...
> > > "rm" ...
> > > "rmf" ...
> > > "set" ...
> > > "illustrate" ...
> > > "run" ...
> > > "exec" ...
> > > "scriptDone" ...
> > > "" ...
> > > <EOL> ...
> > > ";" ...
> > >
> > >
> >
> >
> >
>



-- 
Thanks and Regards
Nagamallikarjuna

Re: Error during parsing

Posted by Mix Nin <pi...@gmail.com>.
Below is my script


REGISTER '/home/hadoop/lib/piggybank-0.7.0.jar';

X= LOAD '/user/lnindrakrishna/input/ExpTag.txt'  AS (line:chararray);
Y =foreach X  generate STRSPLIT(line,',') ;

Thanks


On Tue, Mar 5, 2013 at 3:14 PM, Harsha <ha...@defun.org> wrote:

> Hi Mix,
>        there is a additional ";"
> Y=foreach data { generate STRSPLIT(line,',') ;};
> Just before closing }
>
> --
> Harsha
>
>
> On Tuesday, March 5, 2013 at 2:49 PM, Mix Nin wrote:
>
> > Hi,
> >
> > I executed below PIG commands.
> >
> > X= LOAD '/user/lnindrakrishna/input/ExpTag.txt' AS (line:chararray);
> > Y=foreach data { generate STRSPLIT(line,',') ;};
> >
> >
> > And I get below error. What is wrong in my script. I tried removing
> flower
> > braces. giving extra spaces. But nothing worked
> >
> > 2013-03-05 15:38:57,124 [main] ERROR org.apache.pig.tools.grunt.Grunt -
> > ERROR 1000: Error during parsing. Encountered " <PATH> "Y=foreach "" at
> > line 2, column 1.
> > Was expecting one of:
> > <EOF>
> > "cat" ...
> > "fs" ...
> > "cd" ...
> > "cp" ...
> > "copyFromLocal" ...
> > "copyToLocal" ...
> > "dump" ...
> > "describe" ...
> > "aliases" ...
> > "explain" ...
> > "help" ...
> > "kill" ...
> > "ls" ...
> > "mv" ...
> > "mkdir" ...
> > "pwd" ...
> > "quit" ...
> > "register" ...
> > "rm" ...
> > "rmf" ...
> > "set" ...
> > "illustrate" ...
> > "run" ...
> > "exec" ...
> > "scriptDone" ...
> > "" ...
> > <EOL> ...
> > ";" ...
> >
> >
>
>
>

Re: Error during parsing

Posted by Harsha <ha...@defun.org>.
Hi Mix, 
       there is a additional ";" 
Y=foreach data { generate STRSPLIT(line,',') ;};
Just before closing }

-- 
Harsha


On Tuesday, March 5, 2013 at 2:49 PM, Mix Nin wrote:

> Hi,
> 
> I executed below PIG commands.
> 
> X= LOAD '/user/lnindrakrishna/input/ExpTag.txt' AS (line:chararray);
> Y=foreach data { generate STRSPLIT(line,',') ;};
> 
> 
> And I get below error. What is wrong in my script. I tried removing flower
> braces. giving extra spaces. But nothing worked
> 
> 2013-03-05 15:38:57,124 [main] ERROR org.apache.pig.tools.grunt.Grunt -
> ERROR 1000: Error during parsing. Encountered " <PATH> "Y=foreach "" at
> line 2, column 1.
> Was expecting one of:
> <EOF>
> "cat" ...
> "fs" ...
> "cd" ...
> "cp" ...
> "copyFromLocal" ...
> "copyToLocal" ...
> "dump" ...
> "describe" ...
> "aliases" ...
> "explain" ...
> "help" ...
> "kill" ...
> "ls" ...
> "mv" ...
> "mkdir" ...
> "pwd" ...
> "quit" ...
> "register" ...
> "rm" ...
> "rmf" ...
> "set" ...
> "illustrate" ...
> "run" ...
> "exec" ...
> "scriptDone" ...
> "" ...
> <EOL> ...
> ";" ...
> 
> 



Re: Error during parsing

Posted by inelu nagamallikarjuna <ma...@gmail.com>.
Hi,

Please paste your pig script here..

Thanks
Nagamallikarjuna

On Wed, Mar 6, 2013 at 4:39 AM, Mix Nin <pi...@gmail.com> wrote:

> Thanks for the reply. Now I get below error:
>
>  ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1070: Could not resolve
> STRSPLIT using imports: [, org.apache.pig.builtin.,
> org.apache.pig.impl.builtin.
>
>
> On Tue, Mar 5, 2013 at 3:07 PM, inelu nagamallikarjuna
> <ma...@gmail.com>wrote:
>
> > Hi,
> >
> > There is a small mistake in your script. You used relation name called
> data
> > in second line use X instead of data.
> >
> > *Sample script:
> >
> > X= LOAD '/streamming/read' AS (line : chararray);
> > Y = foreach X generate STRSPLIT(line,' ');
> > dump Y;*
> >
> > Thanks
> > Nagamallikarjuna
> >
> > On Wed, Mar 6, 2013 at 4:19 AM, Mix Nin <pi...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > I executed below PIG commands.
> > >
> > >  X= LOAD '/user/lnindrakrishna/input/ExpTag.txt'  AS (line:chararray);
> > >  Y=foreach data  { generate STRSPLIT(line,',') ;};
> > >
> > >
> > > And I get below error. What is wrong in my script. I tried removing
> > flower
> > > braces. giving extra spaces. But nothing worked
> > >
> > > 2013-03-05 15:38:57,124 [main] ERROR org.apache.pig.tools.grunt.Grunt -
> > > ERROR 1000: Error during parsing. Encountered " <PATH> "Y=foreach "" at
> > > line 2, column 1.
> > > Was expecting one of:
> > >     <EOF>
> > >     "cat" ...
> > >     "fs" ...
> > >     "cd" ...
> > >     "cp" ...
> > >     "copyFromLocal" ...
> > >     "copyToLocal" ...
> > >     "dump" ...
> > >     "describe" ...
> > >     "aliases" ...
> > >     "explain" ...
> > >     "help" ...
> > >     "kill" ...
> > >     "ls" ...
> > >     "mv" ...
> > >     "mkdir" ...
> > >     "pwd" ...
> > >     "quit" ...
> > >     "register" ...
> > >     "rm" ...
> > >     "rmf" ...
> > >     "set" ...
> > >     "illustrate" ...
> > >     "run" ...
> > >     "exec" ...
> > >     "scriptDone" ...
> > >     "" ...
> > >     <EOL> ...
> > >     ";" ...
> > >
> >
> >
> >
> > --
> > Thanks and Regards
> > Nagamallikarjuna
> >
>



-- 
Thanks and Regards
Nagamallikarjuna

Re: Error during parsing

Posted by Mix Nin <pi...@gmail.com>.
Thanks for the reply. Now I get below error:

 ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1070: Could not resolve
STRSPLIT using imports: [, org.apache.pig.builtin.,
org.apache.pig.impl.builtin.


On Tue, Mar 5, 2013 at 3:07 PM, inelu nagamallikarjuna
<ma...@gmail.com>wrote:

> Hi,
>
> There is a small mistake in your script. You used relation name called data
> in second line use X instead of data.
>
> *Sample script:
>
> X= LOAD '/streamming/read' AS (line : chararray);
> Y = foreach X generate STRSPLIT(line,' ');
> dump Y;*
>
> Thanks
> Nagamallikarjuna
>
> On Wed, Mar 6, 2013 at 4:19 AM, Mix Nin <pi...@gmail.com> wrote:
>
> > Hi,
> >
> > I executed below PIG commands.
> >
> >  X= LOAD '/user/lnindrakrishna/input/ExpTag.txt'  AS (line:chararray);
> >  Y=foreach data  { generate STRSPLIT(line,',') ;};
> >
> >
> > And I get below error. What is wrong in my script. I tried removing
> flower
> > braces. giving extra spaces. But nothing worked
> >
> > 2013-03-05 15:38:57,124 [main] ERROR org.apache.pig.tools.grunt.Grunt -
> > ERROR 1000: Error during parsing. Encountered " <PATH> "Y=foreach "" at
> > line 2, column 1.
> > Was expecting one of:
> >     <EOF>
> >     "cat" ...
> >     "fs" ...
> >     "cd" ...
> >     "cp" ...
> >     "copyFromLocal" ...
> >     "copyToLocal" ...
> >     "dump" ...
> >     "describe" ...
> >     "aliases" ...
> >     "explain" ...
> >     "help" ...
> >     "kill" ...
> >     "ls" ...
> >     "mv" ...
> >     "mkdir" ...
> >     "pwd" ...
> >     "quit" ...
> >     "register" ...
> >     "rm" ...
> >     "rmf" ...
> >     "set" ...
> >     "illustrate" ...
> >     "run" ...
> >     "exec" ...
> >     "scriptDone" ...
> >     "" ...
> >     <EOL> ...
> >     ";" ...
> >
>
>
>
> --
> Thanks and Regards
> Nagamallikarjuna
>

Re: Error during parsing

Posted by inelu nagamallikarjuna <ma...@gmail.com>.
Hi,

There is a small mistake in your script. You used relation name called data
in second line use X instead of data.

*Sample script:

X= LOAD '/streamming/read' AS (line : chararray);
Y = foreach X generate STRSPLIT(line,' ');
dump Y;*

Thanks
Nagamallikarjuna

On Wed, Mar 6, 2013 at 4:19 AM, Mix Nin <pi...@gmail.com> wrote:

> Hi,
>
> I executed below PIG commands.
>
>  X= LOAD '/user/lnindrakrishna/input/ExpTag.txt'  AS (line:chararray);
>  Y=foreach data  { generate STRSPLIT(line,',') ;};
>
>
> And I get below error. What is wrong in my script. I tried removing flower
> braces. giving extra spaces. But nothing worked
>
> 2013-03-05 15:38:57,124 [main] ERROR org.apache.pig.tools.grunt.Grunt -
> ERROR 1000: Error during parsing. Encountered " <PATH> "Y=foreach "" at
> line 2, column 1.
> Was expecting one of:
>     <EOF>
>     "cat" ...
>     "fs" ...
>     "cd" ...
>     "cp" ...
>     "copyFromLocal" ...
>     "copyToLocal" ...
>     "dump" ...
>     "describe" ...
>     "aliases" ...
>     "explain" ...
>     "help" ...
>     "kill" ...
>     "ls" ...
>     "mv" ...
>     "mkdir" ...
>     "pwd" ...
>     "quit" ...
>     "register" ...
>     "rm" ...
>     "rmf" ...
>     "set" ...
>     "illustrate" ...
>     "run" ...
>     "exec" ...
>     "scriptDone" ...
>     "" ...
>     <EOL> ...
>     ";" ...
>



-- 
Thanks and Regards
Nagamallikarjuna