1-844-696-6465 (US)        +91 77600 44484        help@dezyre.com

Not able to run first PIG command



0
Hi

Could anyone please help me out with the following? I am trying to run this command
grunt>lines=LOAD 'home/cloudera/wordcount/wcinput' USING PigStorage('\n') AS (line:CharArray);
And I am getting the following error:
2015-06-15 19:08:55,009 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Encountered " "lines=LOAD "" at line 1, column 1.
I have attached the log file here in this question

3 Answer(s)


0

Put space on both side of = operator and try it out .....

lines = LOAD

0

Thanks Karuna

@Alpana,
Add a space between "=" operator.

0

Thanks Karuna. It worked

Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password