Pig Not working

Pig is not working. Please check and reply ASAP.

grunt> emp = LOAD ‘/user/maheshharuvaiah8134/bonala_pig/emp_info’ USING PigStorage(’,’) AS (id:int, name:chararray, sal:int, desig:chararray, dname:chararray);

Caused by:
<line 6, column 7> pig script failed to validate: org.apache.pig.backend.datastorage.DataStorageException: ERROR 6007: Unabl
e to check name hdfs://ip-172-31-53-48.ec2.internal:8020/user/maheshharuvaiah8134

Thanks,
Mahesh .H

Hi @maheshharuvaiah8134,

I just ran this code

emp = LOAD '/user/maheshharuvaiah8134/bonala_pig/emp_info' USING PigStorage(',') AS (id:int, name:chararray, sal:int, desig:chararray, dname:chararray);
dump emp;

And I got below output.

(101,Mahesh,10000,Developer,IT)
(102,Yash,50000,BBMP,Government)
(103,Hanumesh,35000,RTO,Government)
(104,Raghu,22000,Business,Private)
(105,Prashanth,14000,Developer,IT)
(106,rajesh,21000,BBMP,Government)
(107,sam,56000,RTO,Government)
(108,iyer,32000,Business,Private)
(109,reddy,10000,BBMP,Government)
(110,vk,50000,Developer,IT)
(111,alfaz,35000,BBMP,Government)
(112,harsha,22000,RTO,Government)
(113,thyagi,14000,Business,Private)
(114,guru,21000,BBMP,Government)
(115,vinay,56000,RTO,Government)
(116,sanjay,10000,Developer,IT)
(117,abhi,50000,BBMP,Government)
(118,arun,35000,RTO,Government)
(119,renuka,22000,Business,Private)
(120,Anuja,65000,Housewife,kids)
(121,Ashwini,40000,catering,Food)
(122,deepika,60000,speaker,Justice)
1 Like