Foreach ... generate FAILURE

Hi guys,

I'm very new to BigData and I'm trying some things today.
I wanted to assing names to the data, but it doesn't work.
Do you have any tips or suggestion for me?

Just have a look at my skript:

-------------
batting = LOAD 'project1/Batting.csv' using PigStorage(',');
runs = FOREACH batting GENERATE $0 as playerID, $1 as year, $8 as runs;
-------------

failure code:
-------------
<line 3, column 70>  Unexpected character ''
2015-07-15 11:34:44,007 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 3, column 70>  Unexpected character ''
Details at logfile: C:\Syncfusion\BigDataSDK\2.1.0.71\SDK\Hadoop\logs\pig_1436947135996.log
--------------

I'm waiting for your answer!

Greetings David

2 Replies

DP David Prinz July 15, 2015 10:59 AM UTC

hey guys,

just solved the problem..
reason was the copy and paste from the website.

C U


PP Praveena P Syncfusion Team July 16, 2015 05:23 AM UTC

Hi David,
We are glad that your problem has resolved. Please let us know if you have any queries.
Regards,
Praveena.

Loader.
Up arrow icon