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 15, 2019 in Big Data Hadoop by Suri
589 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 15, 2019 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
• 26,740 points
12,989 views
0 votes
1 answer

Unable to execute HDFS commands on the terminal

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

answered Feb 7, 2019 in Big Data Hadoop by Omkar
• 69,210 points
1,651 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, 2019 in Big Data Hadoop by Gitika
• 65,910 points
863 views
0 votes
1 answer
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
1,609 views
+1 vote
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
• 11,380 points
10,556 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
• 11,380 points
2,184 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
104,202 views
–1 vote
1 answer

Unable to execute the jar file wordcount.

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

answered Jan 21, 2019 in Big Data Hadoop by Omkar
• 69,210 points
2,563 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 13, 2019 in Big Data Hadoop by Bhavish
• 370 points

edited Mar 13, 2019 by Omkar 3,608 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP