

{"id":13868,"date":"2018-04-26T04:09:17","date_gmt":"2018-04-26T04:09:17","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=13868"},"modified":"2018-04-26T04:09:17","modified_gmt":"2018-04-26T04:09:17","slug":"apache-pig-grunt-shell","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/","title":{"rendered":"Apache Pig Grunt Shell Commands"},"content":{"rendered":"<p><span style=\"font-weight: 400\">There are so many shell and utility commands offered by the\u00a0<strong>Apache Pig\u00a0<\/strong>Grunt Shell. So, in this article \u201cIntroduction to Apache Pig Grunt Shell\u201d, we will discuss all shell and utility commands in detail. <\/span><\/p>\n<h2><span style=\"font-weight: 400\">Introduction to Apache Pig Grunt Shell<\/span><\/h2>\n<p><span style=\"font-weight: 400\">We can run your Pig scripts in the shell after invoking the Grunt shell. Moreover, there are certain useful shell and utility commands offered by the Grunt shell. So, let\u2019s discuss all commands one by one.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Apache Pig Grunt Shell Commands<br \/>\n<\/span><\/h2>\n<p><span style=\"font-weight: 400\">In order to write Pig Latin scripts, we use the Grunt shell of Apache Pig. By using sh and fs we can invoke any shell commands, before that.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">i. sh Command<\/span><\/h3>\n<p><span style=\"font-weight: 400\">we can invoke any shell commands from the Grunt shell, using the sh command. But make sure, we cannot execute the commands that are a part of the shell environment (ex \u2212 cd), using the sh command.<\/span><br \/>\n<strong>Syntax<\/strong><br \/>\n<span style=\"font-weight: 400\">The syntax of the sh command is:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; sh shell command parameters<\/pre>\n<p><strong>Example<\/strong><br \/>\n<span style=\"font-weight: 400\">By using the sh option, we can invoke the ls command of Linux shell from the Grunt shell. Here, it lists out the files in the \/pig\/bin\/ directory.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; sh ls\npig\npig_1444799121955.log\npig.cmd\npig.py<\/pre>\n<h3><span style=\"font-weight: 400\">ii. fs Command<\/span><\/h3>\n<p><span style=\"font-weight: 400\">Moreover, we can invoke any fs Shell commands from the Grunt shell by using the fs command.<\/span><br \/>\n<strong>Syntax<\/strong><br \/>\n<span style=\"font-weight: 400\">The syntax of fs command is:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; sh File System command parameters<\/pre>\n<p><strong>Example<\/strong><br \/>\n<span style=\"font-weight: 400\">By using fs command, we can invoke the ls command of \u00a0<strong>HDFS<\/strong> from the Grunt shell. Here, it lists the files in the HDFS root directory.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; fs \u2013ls<\/pre>\n<p>Found 3 items<\/p>\n<pre class=\"EnlighterJSRAW\">drwxrwxrwx   - Hadoop supergroup          0 2015-09-08 14:13 Hbase\ndrwxr-xr-x   - Hadoop supergroup          0 2015-09-09 14:52 seqgen_data\ndrwxr-xr-x   - Hadoop supergroup          0 2015-09-08 11:30 twitter_data<\/pre>\n<p><span style=\"font-weight: 400\">Similarly, using the fs command we can invoke all the other file system shell commands from the Grunt shell.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Utility Commands<\/span><\/h2>\n<p><span style=\"font-weight: 400\">It offers a set of Pig Grunt Shell utility commands. It involves clear, help, history, quiet, and set. Also, there are some commands to control Pig from the Grunt shell, such as exec, kill, and run. Here is the description of the utility commands offered by the Grunt shell.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">i. clear Command<\/span><\/h3>\n<p><span style=\"font-weight: 400\">In order to clear the screen of the Grunt shell, we use Clear Command.<\/span><br \/>\n<strong>Syntax<\/strong><br \/>\n<span style=\"font-weight: 400\">The syntax of the clear command is:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; clear<\/pre>\n<h3><span style=\"font-weight: 400\">ii. help Command<\/span><\/h3>\n<p><span style=\"font-weight: 400\">The help command gives you a list of Pig commands or Pig properties.<\/span><br \/>\n<strong>Syntax<\/strong><br \/>\n<span style=\"font-weight: 400\">By using the help command, we can get a list of Pig commands. <\/span><\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; help<\/pre>\n<p><strong>Commands<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">&lt;pig latin statement&gt;;<\/pre>\n<p>See the Pig Latin manual for details:<\/p>\n<div class=\"f hJND5c TbwUpd\"><a href=\"http:\/\/hadoop.apache.org\/\"><cite class=\"iUh30\">hadoop.apache.org\/<\/cite><\/a><\/div>\n<div class=\"action-menu ab_ctl\"><strong>File system commands:<\/strong><\/div>\n<pre class=\"EnlighterJSRAW\">fs &lt;fs arguments&gt;<\/pre>\n<p>Equivalent to Hadoop dfs \u00a0command:<br \/>\nhttp:\/\/hadoop.apache.org\/common\/docs\/current\/hdfs_shell.html<br \/>\n<strong>Diagnostic Commands<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">describe &lt;alias&gt;[::&lt;alias]<\/pre>\n<p>Show the schema for the alias.<br \/>\nInner aliases can be described as A:: B.<\/p>\n<pre class=\"EnlighterJSRAW\">[-script &lt;pigscript&gt;] [-out &lt;path&gt;] [-brief] [-dot|-xml]\n[-param &lt;param_name&gt;=&lt;pCram_value&gt;]\n[-param_file &lt;file_name&gt;] [&lt;alias&gt;] -<\/pre>\n<p>Show the execution plan to compute the alias or for the entire script.<\/p>\n<ul>\n<li><b>\u00a0-script: <\/b>Explain the entire script.<\/li>\n<li><b>\u00a0-out: <\/b>Store the output into directory rather than print to stdout.<\/li>\n<li><b>\u00a0-brief: <\/b>Don&#8217;t expand nested plans (presenting a smaller graph for the overview).<\/li>\n<li><b>\u00a0-dot: <\/b>Generate the output in .dot format. Default is text format.<\/li>\n<li><b>\u00a0-xml: <\/b>Generate the output in .xml format. Default is text format.<\/li>\n<li><b>\u00a0-param &lt;param_name: <\/b>See parameter substitution for details.<\/li>\n<li><b>\u00a0-param_file &lt;file_name&gt;:<\/b> See parameter substitution for details.<\/li>\n<li><b>\u00a0 alias: <\/b>Alias to explain.<\/li>\n<li><b>\u00a0 dump &lt;alias&gt;: <\/b>Compute the alias and writes the results to stdout.<\/li>\n<\/ul>\n<p><b>Utility Commands <\/b><\/p>\n<pre class=\"EnlighterJSRAW\">exec [-param &lt;param_name&gt;=param_value] [-param_file &lt;file_name&gt;] &lt;script&gt; -<\/pre>\n<p>Execute the script with access to grunt environment including aliases.<\/p>\n<ul>\n<li><b>-param &lt;param_name &#8211;<\/b> See parameter substitution for details.<\/li>\n<li><b>-param_file &lt;file_name&gt; &#8211; <\/b>See parameter substitution for details.<\/li>\n<li><b>\u00a0 script &#8211; <\/b>Script to be executed.<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\">run [-param &lt;param_name&gt;=param_value] [-param_file &lt;file_name&gt;] &lt;script&gt; -<\/pre>\n<p>Execute the script with access to grunt environment.<\/p>\n<ul>\n<li><b style=\"font-family: Verdana, Geneva, sans-serif\">-param &lt;param_name: <\/b><span style=\"font-family: Verdana, Geneva, sans-serif;font-weight: inherit\">See parameter substitution for details. \u00a0\u00a0\u00a0\u00a0<\/span><b style=\"font-family: Verdana, Geneva, sans-serif\">\u00a0 \u00a0\u00a0<\/b><\/li>\n<li><b>-param_file &lt;file_name&gt;:<\/b> See parameter substitution for details.<\/li>\n<li><b>\u00a0script:<\/b> Script to be executed.<\/li>\n<li><b>\u00a0sh &lt;shell command&gt;: <\/b>Invoke a shell command.<\/li>\n<li><b>\u00a0kill &lt;job_id&gt;: <\/b>Kill the hadoop job specified by the hadoop job id.<\/li>\n<li><b>\u00a0set &lt;key&gt; &lt;value&gt;:<\/b> Provide execution parameters to Pig. Keys and values are case sensitive.<\/li>\n<\/ul>\n<p>The following keys are supported:<\/p>\n<ul>\n<li><strong>default_parallel:<\/strong> Script-level reduces parallelism. Basic input size heuristics used by default.<\/li>\n<li><b>debug:<\/b> Set debug on or off. The default is off.<\/li>\n<li><b>job.name:<\/b> A single-quoted name for jobs. Default is PigLatin:&lt;script name&gt; \u00a0\u00a0\u00a0<b>\u00a0<\/b><\/li>\n<li><b>job.priority:<\/b> Priority for jobs. Values: very_low, low, normal, high, very_high.<\/li>\n<li><b>Default is normal stream.skippath: <\/b>String that contains the path.<\/li>\n<li><b>This is used by streaming any Hadoop property.<\/b><\/li>\n<li><b>help &#8211; <\/b>Display this message.<\/li>\n<li><b>history [-n]<\/b> &#8211; Display the list statements in the cache.<\/li>\n<li><b>-n <\/b>&#8211; Hide line numbers.<\/li>\n<li><b>quit &#8211; Quit the grunt shell. <\/b><\/li>\n<\/ul>\n<h3><span style=\"font-weight: 400\">iii. history Command<\/span><\/h3>\n<p><span style=\"font-weight: 400\">It is the very useful command, it displays a list of statements executed\/used so far since the Grunt sell is invoked.<\/span><br \/>\n<strong>Syntax<\/strong><br \/>\nSince opening the Grunt shell, let\u2019s suppose we have executed three statements:<\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; customers = LOAD 'hdfs:\/\/localhost:9000\/pig_data\/customers.txt' USING PigStorage(',');\ngrunt&gt; orders = LOAD 'hdfs:\/\/localhost:9000\/pig_data\/orders.txt' USING PigStorage(',');\ngrunt&gt; Employee = LOAD 'hdfs:\/\/localhost:9000\/pig_data\/Employee.txt' USING PigStorage(',');<\/pre>\n<p>Then, using the history command will produce the following output.<\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; history\ncustomers = LOAD 'hdfs:\/\/localhost:9000\/pig_data\/customers.txt' USING PigStorage(',');\norders = LOAD 'hdfs:\/\/localhost:9000\/pig_data\/orders.txt' USING PigStorage(',');\nEmployee = LOAD 'hdfs:\/\/localhost:9000\/pig_data\/Employee.txt' USING PigStorage(',');<\/pre>\n<h3><span style=\"font-weight: 400\">iv. set Command<\/span><\/h3>\n<p><span style=\"font-weight: 400\">Basically, to show\/assign values to keys, we use set command in Pig.<\/span><br \/>\n<strong>Syntax<br \/>\n<\/strong><br \/>\n<span style=\"font-weight: 400\">There are several keys we can set values for, using this command. Such as:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">default_parallel<\/pre>\n<p><span style=\"font-weight: 400\">By passing any whole number as a value to this key, we can set the number of reducers for a map job.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>debug<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Also, by passing on\/off to this key, we can turn off or turn on the debugging feature in Pig.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>job.name<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Moreover, by passing a string value to this key we can set the Job name to the required job.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>job.priority<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">By passing one of the following values to this key, we can set the job priority to a job \u2212<\/span><\/p>\n<ol>\n<li><span style=\"font-weight: 400\"> very_low<\/span><\/li>\n<li><span style=\"font-weight: 400\"> low<\/span><\/li>\n<li>normal<\/li>\n<li><span style=\"font-weight: 400\">high<\/span><\/li>\n<li><span style=\"font-weight: 400\"> very_high<\/span><\/li>\n<\/ol>\n<ul>\n<li style=\"font-weight: 400\"><strong>stream.skippath<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">By passing the desired path in the form of a string to this key, we can set the path from where the data is not to be transferred, for streaming.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">v. quit Command<\/span><\/h3>\n<p><span style=\"font-weight: 400\">We can quit from the Grunt shell, Using this command.<\/span><br \/>\n<strong>Syntax<br \/>\n<\/strong><br \/>\n<span style=\"font-weight: 400\">It Quit from the Grunt shell:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; quit<\/pre>\n<p><span style=\"font-weight: 400\">Now see the following commands. By using them we can control Apache Pig from the Grunt shell.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">vi. exec Command<\/span><\/h3>\n<p><span style=\"font-weight: 400\">Using the exec command, we can execute Pig scripts from the Grunt shell.<\/span><br \/>\n<strong>Syntax<\/strong><br \/>\n<span style=\"font-weight: 400\">The syntax of the utility command exec is:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; exec [\u2013param param_name = param_value] [\u2013param_file file_name] [script]<\/pre>\n<p><strong>Example<\/strong><br \/>\n<span style=\"font-weight: 400\">Let\u2019s suppose there is a file named Employee.txt in the \/pig_data\/ directory of HDFS. Its content is:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">Employee.txt\n001,Mehul,Hyderabad\n002,Ankur,Kolkata\n003,Shubham,Delhi<\/pre>\n<p><span style=\"font-weight: 400\">Now, Suppose we have a script file named sample_script.pig in the \/pig_data\/ directory of HDFS. Its content is:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">Sample_script.pig\nEmployee = LOAD 'hdfs:\/\/localhost:9000\/pig_data\/Employee.txt' USING PigStorage(',')\n  as (id:int,name:chararray,city:chararray);\nDump Employee;<\/pre>\n<p><span style=\"font-weight: 400\">Now, let us execute the above script from the Grunt shell using the exec command as shown below.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; exec \/sample_script.pig<\/pre>\n<p><b>Output<\/b><br \/>\n<span style=\"font-weight: 400\">The exec command executes the script in the sample_script.pig. As directed in the script, it loads the Employee.txt file into Pig and gives you the result of the Dump operator displaying the following content.<\/span><br \/>\n<b>(1,Mehul,Hyderabad)<\/b><br \/>\n<b>(2,Ankur,Kolkata)<\/b><br \/>\n<b>(3,Shubham,Delhi) <\/b><\/p>\n<h3><span style=\"font-weight: 400\">vii. kill Command<\/span><\/h3>\n<p><span style=\"font-weight: 400\">By using this command, we can kill a job from the Grunt shell.<\/span><br \/>\n<strong>Syntax<\/strong><br \/>\n<span style=\"font-weight: 400\">Given below is the syntax of the kill command.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; kill JobId<\/pre>\n<p><strong>Example<\/strong><br \/>\n<span style=\"font-weight: 400\">Assume there is a running Pig job having id Id_0055. By using the kill command, we can kill it from the Grunt shell.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; kill Id_0055<\/pre>\n<h3><span style=\"font-weight: 400\">viii. run Command<\/span><\/h3>\n<p><span style=\"font-weight: 400\">By using the run command, we can run a Pig script from the Grunt shell.<\/span><br \/>\n<strong>Syntax<\/strong><br \/>\n<span style=\"font-weight: 400\">The syntax of the run command is:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; run [\u2013param param_name = param_value] [\u2013param_file file_name] script<\/pre>\n<p><strong>Example<\/strong><br \/>\n<span style=\"font-weight: 400\">So, let\u2019s suppose there is a file named Employee.txt in the \/pig_data\/ directory of HDFS. Its content is:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">Employee.txt\n001,Mehul,Hyderabad\n002,Ankur,Kolkata\n003,Shubham,Delhi<\/pre>\n<p><span style=\"font-weight: 400\">Afterwards, suppose we have a script file named sample_script.pig in the local filesystem. Its content is:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">Sample_script.pig\nEmployee= LOAD 'hdfs:\/\/localhost:9000\/pig_data\/Employee.txt' USING\n  PigStorage(',') as (id:int,name:chararray,city:chararray);<\/pre>\n<p><span style=\"font-weight: 400\">Further, using the run command, let\u2019s run the above script from the Grunt shell.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; run \/sample_script.pig<\/pre>\n<p><span style=\"font-weight: 400\">Then, using the Dump operator, we can see the output of the script.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">grunt&gt; Dump;\n(1,Mehul,Hyderabad)\n(2,Ankur,Kolkata)\n(3,Shubham,Delhi)<\/pre>\n<p><span style=\"font-weight: 400\">Also, it is very important to note that there is one difference between exec and the run command. That is if we use to run, the statements from the script are available in the command history.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Conclusion<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Hence, we have seen the whole concept of Apache Pig Grunt Shell, with its commands. Still, if any doubt occurs, feel free to ask in a comment section.<\/span><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1961,&quot;href&quot;:&quot;http:\\\/\\\/hadoop.apache.org&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251008061344\\\/https:\\\/\\\/hadoop.apache.org\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-10 14:04:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-13 17:20:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-16 18:01:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-19 19:50:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-22 20:54:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-26 11:01:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-29 14:17:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-02 12:20:14&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-05 13:45:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-08 16:24:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-11 19:41:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-14 19:52:13&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-18 05:07:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-21 05:37:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-24 11:10:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-27 15:53:13&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-30 16:11:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-02 16:36:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-05 19:55:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-09 01:39:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-12 03:15:19&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-15 09:31:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-18 09:35:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-22 06:23:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-25 11:29:35&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-28 16:00:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-03 17:03:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-07 11:08:33&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-10 13:03:13&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-13 19:14:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-17 05:54:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-20 11:50:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-23 13:05:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-26 14:25:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-30 06:56:47&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-02 06:59:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-05 18:20:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-09 05:19:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-12 06:38:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-15 12:30:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-18 15:09:26&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-21 15:42:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-24 15:47:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-27 23:43:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-01 05:55:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-04 15:38:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-07 17:57:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-11 03:53:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-14 11:16:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-18 03:36:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-21 03:50:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-24 05:21:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-28 01:43:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-31 20:41:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-04 03:29:33&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-07 05:08:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-10 05:20:26&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-06-13 07:55:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-16 08:00:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-20 04:19:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-24 01:59:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-27 12:02:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-01 01:35:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-04 05:26:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-08 06:08:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-11 15:38:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-15 06:53:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-18 16:03:33&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-07-18 16:03:33&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are so many shell and utility commands offered by the\u00a0Apache Pig\u00a0Grunt Shell. So, in this article \u201cIntroduction to Apache Pig Grunt Shell\u201d, we will discuss all shell and utility commands in detail. Introduction&#46;&#46;&#46;<\/p>\n","protected":false},"author":7,"featured_media":14514,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40],"tags":[873,9504,12838,15310],"class_list":["post-13868","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pig","tag-apache-pig-grunt-shell","tag-pig-grunt-shell-commands","tag-shell-command","tag-utility-command"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Apache Pig Grunt Shell Commands - DataFlair<\/title>\n<meta name=\"description\" content=\"Apache Pig Grunt Shell, shell command with Syntax and example, utility command with syntax and example, Pig tutorial, what is Pig Grunt shell\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Apache Pig Grunt Shell Commands - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Apache Pig Grunt Shell, shell command with Syntax and example, utility command with syntax and example, Pig tutorial, what is Pig Grunt shell\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-26T04:09:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/Apache-Pig-Grunt-Shell-01-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Apache Pig Grunt Shell Commands - DataFlair","description":"Apache Pig Grunt Shell, shell command with Syntax and example, utility command with syntax and example, Pig tutorial, what is Pig Grunt shell","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/","og_locale":"en_US","og_type":"article","og_title":"Apache Pig Grunt Shell Commands - DataFlair","og_description":"Apache Pig Grunt Shell, shell command with Syntax and example, utility command with syntax and example, Pig tutorial, what is Pig Grunt shell","og_url":"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-04-26T04:09:17+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/Apache-Pig-Grunt-Shell-01-1.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd"},"headline":"Apache Pig Grunt Shell Commands","datePublished":"2018-04-26T04:09:17+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/"},"wordCount":1312,"commentCount":1,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/Apache-Pig-Grunt-Shell-01-1.jpg","keywords":["Apache Pig Grunt Shell","pig grunt shell commands","Shell Command","Utility Command"],"articleSection":["Pig Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/","url":"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/","name":"Apache Pig Grunt Shell Commands - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/Apache-Pig-Grunt-Shell-01-1.jpg","datePublished":"2018-04-26T04:09:17+00:00","description":"Apache Pig Grunt Shell, shell command with Syntax and example, utility command with syntax and example, Pig tutorial, what is Pig Grunt shell","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/Apache-Pig-Grunt-Shell-01-1.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/Apache-Pig-Grunt-Shell-01-1.jpg","width":1200,"height":628,"caption":"Apache Pig Grunt Shell"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/apache-pig-grunt-shell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Pig Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/pig\/"},{"@type":"ListItem","position":3,"name":"Apache Pig Grunt Shell Commands"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team specializes in creating clear, actionable content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Backed by industry expertise, we make learning easy and career-oriented for beginners and pros alike.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam3\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/13868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=13868"}],"version-history":[{"count":0,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/13868\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/14514"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=13868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=13868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=13868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}