Pig - Grunt shell

0 votes
If i want to execute pig script from grunt shell what all do I need to have ?I have copied the .pig file and source file into the hdfs. what else do i need to copy. Can you please share the execution command or statement along with step by step process how to execute the pig script in grunt shell?
Dec 18, 2017 in Data Analytics by Narayan
934 views

1 answer to this question.

0 votes

Dear Narayan,

Hope you are doing great.

You don't need to keep the script.pig file in HDFS, the script file will be in local only.

You need to use the exec command or run command for executing the script file in Grunt shell.

1. exec <location of the file in local>/script.pig

2. run <location of the file in local>/script.pig

Please refer to the below given link for details :

http://pig.apache.org/docs/r0.17.0/cmds.html#exec

Please go through it and let us know if you have any further query.

We will be waiting for your response.

answered Dec 18, 2017 by Sudhir
• 1,570 points

Related Questions In Data Analytics

+1 vote
1 answer

Executing the pig commands

Dear Narayana, Hope you are doing great. Yes you ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,570 points
584 views
0 votes
1 answer

pig script or normal pig command

Dear Narayan, Please accept our sincere apologies for ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,570 points
576 views
+1 vote
2 answers

Execute Pig Script from Grunt Shell

From your current directory run  pig -x local Then ...READ MORE

answered Oct 25, 2018 in Big Data Hadoop by Kunal
6,235 views
0 votes
1 answer

What is grunt shell in pig?

Hey, Grunt shell is a shell command.The Grunts ...READ MORE

answered May 6, 2019 in Big Data Hadoop by Gitika
• 65,770 points
5,506 views
0 votes
1 answer

How to start Grunt shell in Local mode in Pig?

Hi@akhtar, You can invoke the Grunt shell in ...READ MORE

answered Oct 14, 2020 in Big Data Hadoop by MD
• 95,460 points
1,113 views
0 votes
1 answer

How to invoke the Grunt shell in MapReduce mode in Pig?

Hi@akhtar, You can invoke the Grunt shell in ...READ MORE

answered Oct 15, 2020 in Big Data Hadoop by MD
• 95,460 points
773 views
0 votes
1 answer

How to invoke grunt shell?

Hey, You can invoke the grunt shell in ...READ MORE

answered May 8, 2019 in Big Data Hadoop by Gitika
• 65,770 points
1,605 views
+2 votes
10 answers

Is there any difference between “hdfs dfs” and “hadoop fs” shell commands?

hadoop fs <args> fs is used for generic ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by anonymous
34,051 views
0 votes
1 answer

How do I execute a shell script and then use the result in ansible

This can work out for you: - name: ...READ MORE

answered Apr 11, 2018 in Ansible by shubham
• 7,340 points
6,894 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