hello I am running with PIG 0.15 on hadoop 1.×. I am working with batting.csv file and executing following pig commands
1) batting = load '/Batting.csv' using PigStorage (',');
2) all_runs = FOREACH batting Generate $0 as (playerid:chararray), $1 as (year:int), $8 as (runs:int);
3) grp_runs = Group all_runs by year;
4) dump grp_runs;
by the way if I do step as 2 as
all_runs = FOREACH batting Generate $0 as playerid, $1 as year, $8 as runs;
The rest of step works fine.
For step 2 with...
Error in executing pig on batting.csv
1) batting = load '/Batting.csv' using PigStorage (',');
2) all_runs = FOREACH batting Generate $0 as (playerid:chararray), $1 as (year:int), $8 as (runs:int);
3) grp_runs = Group all_runs by year;
4) dump grp_runs;
by the way if I do step as 2 as
all_runs = FOREACH batting Generate $0 as playerid, $1 as year, $8 as runs;
The rest of step works fine.
For step 2 with...
Error in executing pig on batting.csv