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 in Big Data Hadoop by disha
40 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 by Gitika
• 25,340 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
155 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
1,230 views
0 votes
1 answer

What is a container in YARN?

A container basically represents a resource on ...READ MORE

answered Apr 9, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
793 views
0 votes
5 answers
0 votes
1 answer
+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
775 views
0 votes
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,670 points
2,766 views
0 votes
10 answers

hadoop fs -put command?

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

answered Dec 7, 2018 in Big Data Hadoop by Aditya
13,693 views
0 votes
1 answer

What is relation keyword in pig?

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

answered May 6 in Big Data Hadoop by Gitika
• 25,340 points
21 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 in Big Data Hadoop by Gitika
• 25,340 points
40 views