<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: command to execute pig script from the command line in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/command-to-execute-pig-script-from-the-command-line/m-p/216249#M178159</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/16744/hetadesai.html" nodeid="16744"&gt;@heta desai&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You can execute it via the exec command, for example:&lt;/P&gt;&lt;PRE&gt;grunt&amp;gt; cat myscript.pig
a = LOAD 'student' AS (name, age, gpa);
b = LIMIT a 3;
DUMP b;

grunt&amp;gt; exec myscript.pig
(alice,20,2.47)
(luke,18,4.00)
(holly,24,3.27)&lt;/PRE&gt;&lt;P&gt;See also: &lt;A href="https://pig.apache.org/docs/r0.9.1/cmds.html#exec" target="_blank"&gt;https://pig.apache.org/docs/r0.9.1/cmds.html#exec&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2017 20:57:13 GMT</pubDate>
    <dc:creator>wbekker</dc:creator>
    <dc:date>2017-05-01T20:57:13Z</dc:date>
  </channel>
</rss>

