<?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: Passing parameters to pig script from file issue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112865#M75684</link>
    <description>&lt;P&gt;I guess it is not considering param file &lt;/P&gt;&lt;P&gt;try this,&lt;/P&gt;&lt;P&gt;pig  -param_file=hdfs://ip-XXX-XX-XX-XXX.ec2.internal:8020/home/hadoop/adh_time /home/hadoop/test.pig &lt;/P&gt;&lt;P&gt;writing param_file at the end encountering same issue for me too &lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2016 15:00:33 GMT</pubDate>
    <dc:creator>bsuresh</dc:creator>
    <dc:date>2016-01-27T15:00:33Z</dc:date>
    <item>
      <title>Passing parameters to pig script from file issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112863#M75682</link>
      <description>&lt;P&gt;pig -x mapreduce /home/hadoop/test.pig -param_file=hdfs://ip-XXX-XX-XX-XXX.ec2.internal:8020/home/hadoop/adh_time&lt;/P&gt;&lt;P&gt;I am trying to run the above command and its not working saying undefined parameter i tired multiple ways and nothing works.Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Value inside the adh_time is input = 2015-06-16T14:59:55.000Z&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;16/01/26 20:56:38 INFO pig.ExecTypeProvider: Trying ExecType : LOCAL
16/01/26 20:56:38 INFO pig.ExecTypeProvider: Trying ExecType : MAPREDUCE
16/01/26 20:56:38 INFO pig.ExecTypeProvider: Picked MAPREDUCE as the ExecType
46  [main] INFO  org.apache.pig.Main  - Apache Pig version 0.14.0-amzn-0 (r: unknown) compiled Nov 16 2015, 21:51:33
16/01/26 20:56:38 INFO pig.Main: Apache Pig version 0.14.0-amzn-0 (r: unknown) compiled Nov 16 2015, 21:51:33
47  [main] INFO  org.apache.pig.Main  - Logging error messages to: /mnt/var/log/pig/pig_1453841798872.log
16/01/26 20:56:38 INFO pig.Main: Logging error messages to: /mnt/var/log/pig/pig_1453841798872.log
789  [main] INFO  org.apache.pig.impl.util.Utils  - Default bootup file /home/hadoop/.pigbootup not found
16/01/26 20:56:39 INFO util.Utils: Default bootup file /home/hadoop/.pigbootup not found
810  [main] ERROR org.apache.pig.impl.PigContext  - Undefined parameter : input
16/01/26 20:56:39 ERROR impl.PigContext: Undefined parameter : input
828  [main] ERROR org.apache.pig.Main  - ERROR 2997: Encountered IOException. org.apache.pig.tools.parameters.ParameterSubstitutionException: Undefined parameter : input
16/01/26 20:56:39 ERROR pig.Main: ERROR 2997: Encountered IOException. org.apache.pig.tools.parameters.ParameterSubstitutionException: Undefined parameter : input
Details at logfile: /mnt/var/log/pig/pig_1453841798872.log
848  [main] INFO  org.apache.pig.Main  - Pig script completed in 952 milliseconds (952 ms)
16/01/26 20:56:39 INFO pig.Main: Pig script completed in 952 milliseconds (952 ms)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 05:00:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112863#M75682</guid>
      <dc:creator>psivala</dc:creator>
      <dc:date>2016-01-27T05:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameters to pig script from file issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112864#M75683</link>
      <description>&lt;P&gt;Please paste the contents of /mnt/var/log/pig/pig_1453841798872.log&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 14:41:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112864#M75683</guid>
      <dc:creator>rahulpathak109</dc:creator>
      <dc:date>2016-01-27T14:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameters to pig script from file issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112865#M75684</link>
      <description>&lt;P&gt;I guess it is not considering param file &lt;/P&gt;&lt;P&gt;try this,&lt;/P&gt;&lt;P&gt;pig  -param_file=hdfs://ip-XXX-XX-XX-XXX.ec2.internal:8020/home/hadoop/adh_time /home/hadoop/test.pig &lt;/P&gt;&lt;P&gt;writing param_file at the end encountering same issue for me too &lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 15:00:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112865#M75684</guid>
      <dc:creator>bsuresh</dc:creator>
      <dc:date>2016-01-27T15:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameters to pig script from file issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112866#M75685</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2247/psivala.html" nodeid="2247"&gt;@Pradeep Allu&lt;/A&gt; did you try Suresh's idea? Can you accept the answer or add more detail&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2016 02:00:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112866#M75685</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-31T02:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameters to pig script from file issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112867#M75686</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/2247/psivala.html"&gt;@Pradeep Allu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If your parameter parameter file is in hdfs then make sure your pig script should also be in hdfs not in local file system.&lt;/P&gt;&lt;P&gt;Try placing your pig script also in HDFS .&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 12:08:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112867#M75686</guid>
      <dc:creator>DivyaGehlot13</dc:creator>
      <dc:date>2016-02-01T12:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameters to pig script from file issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112868#M75687</link>
      <description>&lt;P&gt;I tried both in my home driectory and it worked fine and also it worked fine when i had my parm file on s3. But its not working when i try to do it from hdfs. &lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 02:16:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112868#M75687</guid>
      <dc:creator>psivala</dc:creator>
      <dc:date>2016-02-02T02:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameters to pig script from file issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112869#M75688</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2247/psivala.html" nodeid="2247"&gt;@Pradeep Allu&lt;/A&gt; try to pass just the directory path rather than full path including hdfs. Maybe put the path in quotes also?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 02:21:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Passing-parameters-to-pig-script-from-file-issue/m-p/112869#M75688</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-02T02:21:42Z</dc:date>
    </item>
  </channel>
</rss>

