<?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: Execution of hadoop-mapreduce-examples.jar using the Yarn REST API in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170904#M57808</link>
    <description>&lt;P&gt;I forgot this :&lt;/P&gt;&lt;P&gt;Ambari version : Version
      2.4.2.0&lt;/P&gt;&lt;P&gt;Hadoop version 2.5.0.0-1245 installed from Ambari (not a sandbox)&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2017 21:37:24 GMT</pubDate>
    <dc:creator>dvt_isoft</dc:creator>
    <dc:date>2017-03-23T21:37:24Z</dc:date>
    <item>
      <title>Execution of hadoop-mapreduce-examples.jar using the Yarn REST API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170903#M57807</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to execute some existing examples using the Rest API (with or without using the Knox gateway)&lt;/P&gt;&lt;P&gt;It seems to work, but the task is always marked as failed in the Yarn Web UI. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13918-queue.png" style="width: 2220px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20081iBEDEC0B6DD97B2A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13918-queue.png" alt="13918-queue.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I Use the hadoop-mapreduce-examples.jar to launch a wordcount example. It creates a sub task which is properly executed, it creates all the expected files in /user/yarn/output10.&lt;/P&gt;&lt;P&gt;But the parent task always failed with an exit code = 0 ( looks like a success &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; , but it's not)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13920-appli.png" style="width: 1015px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20082iE4BD28D4DDBE86E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13920-appli.png" alt="13920-appli.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I send a POST request on this URL (I did the new-application command before to get my application-id)&lt;/P&gt;&lt;P&gt;&lt;A href="https://guest:guest-password@serverip:8443/gateway/default/resourcemanager/v1/cluster/apps" target="_blank" rel="nofollow noopener noreferrer"&gt;https://guest:guest-password@serverip:8443/gateway/default/resourcemanager/v1/cluster/apps&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(I tried also without knox : &lt;A href="http://serverip:8088/ws/v1/cluster/apps" target="_blank" rel="nofollow noopener noreferrer"&gt;http://serverip:8088/ws/v1/cluster/apps&lt;/A&gt;, with the same result)&lt;/P&gt;&lt;P&gt;And I transmit this JSON command :&lt;/P&gt;&lt;P&gt;{ &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;"application-id":"application_1490174038938_0018", &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;"application-name":"WordCount", &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;"am-container-spec": &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;{ &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt; "commands":
 { &lt;/P&gt;&lt;P style="margin-left: 60px;"&gt;   "command":"yarn jar /usr/hdp/current/hadoop-mapreduce-client/hadoop-mapreduce-examples.jar wordcount /user/yarn/input /user/yarn/output10" &lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;} &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;}, &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;"max-app-attempts":1, &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;"application-type":"YARN" &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;I tried a lot of other JSON config with the same result (this one is the simpliest I tried)&lt;/P&gt;&lt;P&gt;Do you have any idea what I did wrong ?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 10:42:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170903#M57807</guid>
      <dc:creator>dvt_isoft</dc:creator>
      <dc:date>2019-08-18T10:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Execution of hadoop-mapreduce-examples.jar using the Yarn REST API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170904#M57808</link>
      <description>&lt;P&gt;I forgot this :&lt;/P&gt;&lt;P&gt;Ambari version : Version
      2.4.2.0&lt;/P&gt;&lt;P&gt;Hadoop version 2.5.0.0-1245 installed from Ambari (not a sandbox)&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 21:37:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170904#M57808</guid>
      <dc:creator>dvt_isoft</dc:creator>
      <dc:date>2017-03-23T21:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Execution of hadoop-mapreduce-examples.jar using the Yarn REST API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170905#M57809</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/16652/dvt.html" nodeid="16652"&gt;@dvt isoft&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Can you please post the application logs and RM logs to debug further into this.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 06:52:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170905#M57809</guid>
      <dc:creator>ssathish</dc:creator>
      <dc:date>2017-03-25T06:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Execution of hadoop-mapreduce-examples.jar using the Yarn REST API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170906#M57810</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/253/ssathish.html" nodeid="253"&gt;@ssathish&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;here are my log files.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:15:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170906#M57810</guid>
      <dc:creator>dvt_isoft</dc:creator>
      <dc:date>2017-03-27T15:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Execution of hadoop-mapreduce-examples.jar using the Yarn REST API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170907#M57811</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/16652/dvt.html" nodeid="16652"&gt;@dvt isoft&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You cannt actually submit MR / Tez job via Yarn Webservices. Can you please try with Distributed Shell application if you want to use REST api? Or you can store your job in HDFS and use OOZIE workflow over it or use SPARK.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/89692/can-we-submit-a-yarn-job-through-rest.html" target="_blank"&gt;https://community.hortonworks.com/questions/89692/can-we-submit-a-yarn-job-through-rest.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 05:25:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170907#M57811</guid>
      <dc:creator>ssathish</dc:creator>
      <dc:date>2017-03-30T05:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Execution of hadoop-mapreduce-examples.jar using the Yarn REST API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170908#M57812</link>
      <description>&lt;P&gt;
	You can try WebHCat, its &lt;A href="https://cwiki.apache.org/confluence/display/Hive/WebHCat+Reference+MapReduceJar"&gt;mapreduce command&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 06:24:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170908#M57812</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2017-03-30T06:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Execution of hadoop-mapreduce-examples.jar using the Yarn REST API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170909#M57813</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt; and &lt;A rel="user" href="https://community.cloudera.com/users/253/ssathish.html" nodeid="253"&gt;@ssathish,&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I tried with WebHCat, it works.&lt;/P&gt;&lt;P&gt;I already tried with the Distributed Shell application, but I didn't success. Maybe I did wrong.&lt;/P&gt;&lt;P&gt;But I think I will try with Oozie soon.&lt;/P&gt;&lt;P&gt;Thanks for you help&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 18:49:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Execution-of-hadoop-mapreduce-examples-jar-using-the-Yarn/m-p/170909#M57813</guid>
      <dc:creator>dvt_isoft</dc:creator>
      <dc:date>2017-03-30T18:49:12Z</dc:date>
    </item>
  </channel>
</rss>

