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
79 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,610 points

Related Questions In Data Analytics

0 votes
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,610 points
56 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,610 points
32 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
958 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 in Big Data Hadoop by Gitika
• 25,360 points
69 views
0 votes
1 answer

How to invoke grunt shell?

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

answered May 7 in Big Data Hadoop by Gitika
• 25,360 points
115 views
+2 votes
10 answers

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

Yes, there's a difference between hadoop fs and ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Kunal
11,080 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
• 6,890 points
1,696 views
+1 vote
2 answers

Hadoop 3 compatibility with older versions of Hive, Pig, Sqoop and Spark

Hadoop 3 is not widely used in ...READ MORE

answered Apr 20, 2018 in Apache Spark by kurt_cobain
• 9,260 points
2,001 views
0 votes
1 answer

Are some Pig real time use cases available?

You can refer to this website https://acadgild.com/blog/pig-us ...READ MORE

answered Apr 20, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
34 views