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:
We can invoke the ls command of HDFS from grunt shell using fs command. It list the files in the HDFS root directory.