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
396 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.





answered May 6, 2019 by Gitika
• 31,430 points

Related Questions In Big Data Hadoop

0 votes
1 answer

What Distributed Cache is actually used for in Hadoop?

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

answered Apr 2, 2018 in Big Data Hadoop by Ashish
• 2,630 points
457 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 5, 2018 in Big Data Hadoop by Ashish
• 2,630 points
3,718 views
0 votes
2 answers

What is a container in YARN?

Yarn container are a process space where ...READ MORE

answered May 1 in Big Data Hadoop by anonymous
1,373 views
0 votes
5 answers
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 24, 2019 in Big Data Hadoop by Gitika
• 31,430 points
53 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
1,672 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
• 10,920 points
5,299 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyF ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
32,326 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
• 31,430 points
116 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 7, 2019 in Big Data Hadoop by Gitika
• 31,430 points
118 views