<?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: Unable get the final result after processing pig script in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135587#M98245</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11479/ravikumashi.html" nodeid="11479"&gt;@Ravikumar Kumashi&lt;/A&gt; glad to hear it worked. You can ignore that warning (see &lt;A href="https://community.hortonworks.com/questions/42002/is-there-a-way-to-suppress-warning-use-yarn-jar-to.html"&gt;this HCC post&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;That could be due to lack of sufficient resources to allocate YARN containers. I tested against the HDP 2.4 Sandbox on Virtualbox with 8 GB of RAM and 4 CPU and the pig script is executed in about 76 seconds.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2016 19:58:24 GMT</pubDate>
    <dc:creator>slachterman</dc:creator>
    <dc:date>2016-07-20T19:58:24Z</dc:date>
    <item>
      <title>Unable get the final result after processing pig script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135582#M98240</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11295/slachterman.html" nodeid="11295" target="_blank"&gt;@slachterman&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am executing the below pig scripts and not getting the desired results.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5860-pig-script.png" style="width: 837px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22062i174F4BC4C430EF4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5860-pig-script.png" alt="5860-pig-script.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I added &lt;STRONG&gt;-useHCatlog &lt;/STRONG&gt;argument also and did syntax check before executing this query.&lt;/P&gt;&lt;P&gt;Below are the schema information about hive tables i used in pig scripts&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5861-gelocation.png" style="width: 544px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22063iDDB3FB96D2F6888E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5861-gelocation.png" alt="5861-gelocation.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5862-driver-mileage.png" style="width: 503px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22064iDDE5C5903768870D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5862-driver-mileage.png" alt="5862-driver-mileage.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5863-risk-factor.png" style="width: 479px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22065i918ECBCA854D0B46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5863-risk-factor.png" alt="5863-risk-factor.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and when i run the &lt;STRONG&gt;select * from riskfacto&lt;/STRONG&gt;r i dont get any data in riskfactor table in hive.&lt;/P&gt;&lt;P&gt;Please find the attached result and log file details.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/5864-result.txt" target="_blank"&gt;result.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the log file it says below message:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARNING: Use "yarn jar" to launch YARN applications.
16/07/19 10:59:47 INFO pig.Main: Pig script completed in 4 seconds and 983 milliseconds (4983 ms)&lt;/STRONG&gt;
&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:55:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135582#M98240</guid>
      <dc:creator>ravikumashi</dc:creator>
      <dc:date>2019-08-19T08:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable get the final result after processing pig script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135583#M98241</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11479/ravikumashi.html" nodeid="11479"&gt;@Ravikumar Kumashi&lt;/A&gt;, when you run the script with the -check flag, Pig will just parse and run semantic checks on the script but &lt;STRONG&gt;not&lt;/STRONG&gt; actually execute it. Please try re-running the script without the -check flag and share the results.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 20:27:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135583#M98241</guid>
      <dc:creator>slachterman</dc:creator>
      <dc:date>2016-07-19T20:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable get the final result after processing pig script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135584#M98242</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11295/slachterman.html" nodeid="11295"&gt;@slachterman&lt;/A&gt; Actually i got the same results when i execute, my mistake i uploaded that screen shot.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 20:37:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135584#M98242</guid>
      <dc:creator>ravikumashi</dc:creator>
      <dc:date>2016-07-19T20:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable get the final result after processing pig script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135585#M98243</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11479/ravikumashi.html" nodeid="11479" target="_blank"&gt;@Ravikumar Kumashi&lt;/A&gt; I see. Please delete the -x tez argument as well so that only -useHCatalog is specified. The correct way to execute on tez is to check the appropriate 'Execute on Tez' checkbox in the upper right corner (see screenshot). The reason you are seeing the results you are is because pig will return the help text when the syntax is not correct.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5865-screen-shot-2016-07-19-at-91507-am.png" style="width: 1502px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22061i4E10584600851B20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5865-screen-shot-2016-07-19-at-91507-am.png" alt="5865-screen-shot-2016-07-19-at-91507-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:55:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135585#M98243</guid>
      <dc:creator>slachterman</dc:creator>
      <dc:date>2019-08-19T08:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable get the final result after processing pig script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135586#M98244</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11295/slachterman.html" nodeid="11295"&gt;@slachterman&lt;/A&gt; as per suggestion i removed -x tez argument and ran the pig script and it works.&lt;/P&gt;&lt;P&gt;But I see it gives WARNING: Use "yarn jar" to launch YARN applications. how do we avoid this warning?.&lt;/P&gt;&lt;P&gt;and also it says it tooks 30+ minutes in logfile but it actually tokes more than 4 hours and why is that.&lt;/P&gt;&lt;P&gt;Please find the attached logfile.&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/5885-job-1468940847411-0003-logs.txt"&gt;job-1468940847411-0003-logs.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 18:27:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135586#M98244</guid>
      <dc:creator>ravikumashi</dc:creator>
      <dc:date>2016-07-20T18:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unable get the final result after processing pig script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135587#M98245</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11479/ravikumashi.html" nodeid="11479"&gt;@Ravikumar Kumashi&lt;/A&gt; glad to hear it worked. You can ignore that warning (see &lt;A href="https://community.hortonworks.com/questions/42002/is-there-a-way-to-suppress-warning-use-yarn-jar-to.html"&gt;this HCC post&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;That could be due to lack of sufficient resources to allocate YARN containers. I tested against the HDP 2.4 Sandbox on Virtualbox with 8 GB of RAM and 4 CPU and the pig script is executed in about 76 seconds.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 19:58:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135587#M98245</guid>
      <dc:creator>slachterman</dc:creator>
      <dc:date>2016-07-20T19:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable get the final result after processing pig script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135588#M98246</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11295/slachterman.html" nodeid="11295"&gt;@slachterman&lt;/A&gt; Thanks!!!..yes i just allocated 4GB RAM and  2 CPU.&lt;/P&gt;&lt;P&gt;I just would like to how do we create this pigscirpt(.pig) and hql querries(.hql) and schedule/run them in the cluster. &lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 20:12:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135588#M98246</guid>
      <dc:creator>ravikumashi</dc:creator>
      <dc:date>2016-07-20T20:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable get the final result after processing pig script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135589#M98247</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11479/ravikumashi.html" nodeid="11479"&gt;@Ravikumar Kumashi&lt;/A&gt; if you are interested in scheduling Pig or Hive scripts, please look into &lt;A href="http://hortonworks.com/apache/oozie/"&gt;Oozie&lt;/A&gt;. You may want to post a separate question about that if you need more details or encounter any issues.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 20:16:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135589#M98247</guid>
      <dc:creator>slachterman</dc:creator>
      <dc:date>2016-07-20T20:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable get the final result after processing pig script</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135590#M98248</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11295/slachterman.html" nodeid="11295"&gt;@slachterman&lt;/A&gt;&lt;P&gt; Thanks..ll do&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 20:22:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-get-the-final-result-after-processing-pig-script/m-p/135590#M98248</guid>
      <dc:creator>ravikumashi</dc:creator>
      <dc:date>2016-07-20T20:22:26Z</dc:date>
    </item>
  </channel>
</rss>

