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
4,873 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,910 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,440 points
502 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
471 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
1,851 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,204 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,910 points
500 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,440 points
861 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
5,690 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,599 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,910 points
547 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,910 points
857 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