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
27 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
• 19,720 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
112 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
654 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
688 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
618 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,110 points
2,046 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,465 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
• 19,720 points
9 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
• 19,720 points
23 views