What is grunt shell in pig

0 votes

Hi,

I have started learning Hadoop and pig. I am going through a blog wherein the pig architecture part there is a diagram which consist grunt shell as a part of it. Can anyone explain what grunt shell is?

May 6, 2019 in Big Data Hadoop by disha
5,564 views

1 answer to this question.

0 votes

Hey,

Grunt shell is a shell command.The Grunts shell of Apace pig is mainly used to write pig Latin scripts. Pig script can be executed with grunt shell which is native shell provided by Apache pig to execute pig queries.

We can invoke shell commands using sh and fs. 

Syntax of sh command:

grunt> sh ls

We can invoke the ls command of Linux shell from the grunt shell. It lists out the file in the /pig/bin directory

 syntax of fs command:

grunt>fs -ls

We can invoke the ls command of HDFS from grunt shell using fs command. It list the files in the HDFS root directory.

Learn more about Big Data and its applications from the Azure Data Engineer Associate.





answered May 6, 2019 by Gitika
• 65,770 points

Related Questions In Big Data Hadoop

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
799 views
0 votes
1 answer

what is pig in big data?

Pig is a high-level programming language for ...READ MORE

answered Jan 7, 2022 in Big Data Hadoop by Edureka
• 12,690 points
1,072 views
0 votes
1 answer

What Distributed Cache is actually used for in Hadoop?

Basically distributed cache allows you to cache ...READ MORE

answered Apr 3, 2018 in Big Data Hadoop by Ashish
• 2,650 points
2,184 views
0 votes
1 answer

What is the use of sequence file in Hadoop?

Sequence files are binary files containing serialized ...READ MORE

answered Apr 6, 2018 in Big Data Hadoop by Ashish
• 2,650 points
9,605 views
0 votes
1 answer

How to check the directory is present in shell script or not?

Hi, To check the directory is present in ...READ MORE

answered Jun 25, 2019 in Big Data Hadoop by Gitika
• 65,770 points
687 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,132 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,268 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
11,077 views
0 votes
1 answer

What is relation keyword in pig?

Hey, A relation is a bag of tuples. ...READ MORE

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

What is the use of parser in Apache pig?

Hey, It is correct that it comes under ...READ MORE

answered May 8, 2019 in Big Data Hadoop by Gitika
• 65,770 points
1,186 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