Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # user >> Error during parsing


+
Mix Nin 2013-03-05, 22:49
+
inelu nagamallikarjuna 2013-03-05, 23:07
+
Mix Nin 2013-03-05, 23:09
+
inelu nagamallikarjuna 2013-03-05, 23:12
+
Harsha 2013-03-05, 23:14
+
Mix Nin 2013-03-05, 23:16
Copy link to this message
-
Re: Error during parsing
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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
+
Mix Nin 2013-03-05, 23:26
+
inelu nagamallikarjuna 2013-03-05, 23:28
+
inelu nagamallikarjuna 2013-03-05, 23:32
+
Mix Nin 2013-03-05, 23:34
+
inelu nagamallikarjuna 2013-03-05, 23:50