Hello

I tried reading a text file from HDFS into pig using the statement

> student = LOAD 'hdfs://localhost:8020/tmp/student.txt' USING PigStorage(',')
>>    as (id:int, firstname:chararray, lastname:chararray, age:int, 
>> phone:chararray, city:chararray);
>>
>>
 My student.txt file is

001,Rajiv,Reddy,21,9848022337,Hyderabad
002,siddarth,Battacharya,22,9848022338,Kolkata
003,Rajesh,Khanna,22,9848022339,Delhi
004,Preethi,Agarwal,21,9848022330,Pune
005,Trupthi,Mohanthy,23,9848022336,Bhuwaneshwar
006,Archana,Mishra,23,9848022335,Chennai
007,Komal,Nayak,24,9848022334,trivendram
008,Bharathi,Nambiayar,24,9848022333,Chennai

I am trying to follow an example on this page

http://www.tutorialspoint.com/apache_pig/apache_pig_group_operator.htm

Now my DUMP student; statement works once, but when I try to use is
another time inside the grunt

shell, I get the error. I have attached the log file for error.

I am using pig inside CentOS 6.2 which sits in VMware workstation. My
main OS is windows 8.1

Please help why I get this error

Thanks

user9026

Reply via email to