You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Adam Kawa <ka...@gmail.com> on 2012/09/26 15:20:28 UTC

Re: [pig-0.10.0]: command ./pig -x local -e "a = load '/user/pig/tests/data/singlefile/studenttab10k';" failed

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 <lu...@163.com>:
> 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 : ""