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
48 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
33 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
17 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
565 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
• 16,410 points
22 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
• 16,410 points
15 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
8,132 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,640 points
334 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,240 points
1,353 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,240 points
14 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.