Failing to execute the script pig file on HDFS

0 votes

When I am using the command pig -x mapreduce path/script.pig it is throwing an error stating file does not exist however I am able to cat the file using the same path.

Feb 14 in Big Data Hadoop by Suri
62 views

1 answer to this question.

0 votes
By convention, the pig script that you are using should be placed in the local file system and not in the hdfs path. By default, the system searches for the pig script in the local path.

So, try to execute the script file from the local and not from hdfs.

Also,If you still want to run the script from hdfs, you need to give the absolute path to script in hdfs
answered Feb 14 by John

Related Questions In Big Data Hadoop

0 votes
1 answer

How to execute python script in hadoop file system (hdfs)?

If you are simply looking to distribute ...READ MORE

answered Sep 19, 2018 in Big Data Hadoop by digger
• 27,620 points
1,298 views
0 votes
1 answer

Unable to execute HDFS commands on the terminal

Maybe because you have not started hadoop ...READ MORE

answered Feb 6 in Big Data Hadoop by Omkar
• 67,140 points
14 views
0 votes
1 answer

How to execute Pig script from HDFS?

Hey, You can do something like executes a Pig ...READ MORE

answered Jun 26 in Big Data Hadoop by Gitika
• 19,880 points
14 views
0 votes
1 answer

Copy file from HDFS to the local file system

There are two possible ways to copy ...READ MORE

answered Mar 27, 2018 in Big Data Hadoop by nitinrawat895
• 10,130 points
3,613 views
0 votes
1 answer

What do we exactly mean by “Hadoop” – the definition of Hadoop?

The official definition of Apache Hadoop given ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by Shubham
153 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,130 points
2,059 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,130 points
198 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,541 views
0 votes
1 answer

Unable to execute the jar file wordcount.

I see that the command that you ...READ MORE

answered Jan 21 in Big Data Hadoop by Omkar
• 67,140 points
76 views
0 votes
2 answers

Using PHP to get all file names in a folder stored in HDFS

So i found a workaround for the ...READ MORE

answered Mar 12 in Big Data Hadoop by Bhavish
• 370 points

edited Mar 13 by Omkar 145 views