Support Questions
Find answers, ask questions, and share your expertise

Pig in local mode execution

Explorer

HI This is Prasanna, I'm using CDH-6.2.1 when I use pig -x local and load the data from the local path I'm getting errors. I gave the 777 permissions to my page.csv file
filename: page.csv

12334456,WE

21885938,RE

12234354,TR

98686472,UY

67458473,YUMM

pig -x local

grunt> pageCSV = LOAD '/home/vicky1983o73edu/page.csv' using PigStorage(',') AS (id:chararray, code:chararray);

[main] INFO  org.apache.hadoop.conf.Configuration.deprecation - io.bytes.per.checksum is deprecated. Instead, use dfs.bytes-per-checksum

grunt> dump pageCSV;

[JobControl] INFO  org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob - PigLatin:DefaultJobName got an error while submitting

ENOENT: No such file or directory

Failed!

 

Failed Jobs:

JobId Alias Feature Message Outputs

job_local1874672660_0001 pageCSV MAP_ONLY Message: ENOENT: No such file or directory


Input(s):

Failed to read data from "/home/vicky1983o73edu/page.csv"

 

Output(s):

Failed to produce result in "file:/tmp/temp2068524907/tmp-731471366"

 

 

[main] INFO  org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher - Failed!

2021-10-04 11:03:35,206 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1066: Unable to open iterator for alias pageCSV. Backend error : java.lang.IllegalStateException: Job in state DEFINE instead of RUNNING

 


please help me to solve the error.
@
aervits

 
Thanks
Prasanna

0 REPLIES 0