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

Switch to Threaded View
Pig, mail # user - Error during parsing


Copy link to this message
-
Re: Error during parsing
inelu nagamallikarjuna 2013-03-05, 23:12
Hi,

Please paste your pig script here..

Thanks
Nagamallikarjuna

On Wed, Mar 6, 2013 at 4:39 AM, Mix Nin <[EMAIL PROTECTED]> 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
> <[EMAIL PROTECTED]>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 <[EMAIL PROTECTED]> 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