Hi,

A command like bellow should work:
pig -x local -e "a = load
'/user/pig/tests/data/singlefile/studenttab10k'; dump a;"

I guess that you need to add "dump" or "store" command to your in-line script.

It looks that you want to process data from HDFS
("/user/pig/tests/data/singlefile/studenttab10k"), so you probably
want to skip "-x local" or explicitly specify "-x mapred".

Best,
Adam

2012/8/7 lulynn_2008 <[email protected]>:
> Hi All,
> I can not run pig command with "-e" parameter, could you please help to 
> figure out what the problem is? Thanks.
>
>  ./pig -x local -e "a = load 
> '/user/pig/tests/data/singlefile/studenttab10k';" failed with error:
> ERROR [main]      org.apache.pig.tools.grunt.Grunt     - ERROR 1000: Error 
> during parsing. Lexical error at line 1, column 58.  Encountered: <EOF> after 
> : ""

Reply via email to