Namit created YARN-9219: --------------------------- Summary: Unable to Invoke MapReduce from Yarn REST API Key: YARN-9219 URL: https://issues.apache.org/jira/browse/YARN-9219 Project: Hadoop YARN Issue Type: Bug Components: yarn Environment: Vanilla Hadoop 2.9.2 and HDP 3+ Reporter: Namit
The following description shows how REST API can be used to invoke Yarn jobs: **[https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_yarn-resource-management/content/ch_yarn_rest_apis.html] But we are unable to do this to run MapReduce. We can't use YARN Resource Manager API(s) to execute (submit) map-reduce applications. As documented here [YARN (RM) REST API(s)|http://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html#Cluster_Applications_APISubmit_Application] mechanism to use RM API(s) involve retrieving application ID and then submit the application. It works fine for the Spark Job but not really for MapReduce Jobs. [!https://1.bp.blogspot.com/-vbJkp2zTMXg/XEWoqNWu3lI/AAAAAAAABJk/kmrPorJ0dG8OjW5FUeYApbCG8wLKT48-QCLcBGAs/s400/Screenshot%2B2019-01-21%2Bat%2B4.42.35%2BPM.png|width=400,height=62!|https://1.bp.blogspot.com/-vbJkp2zTMXg/XEWoqNWu3lI/AAAAAAAABJk/kmrPorJ0dG8OjW5FUeYApbCG8wLKT48-QCLcBGAs/s1600/Screenshot%2B2019-01-21%2Bat%2B4.42.35%2BPM.png] If we execute a map-reduce application using these API(s), on completion of the sub-process parent application fails with "Application application_xx_00xx failed 1 times (global limit =2; local limit is =1) due to AM Container for appattempt_xx_00xx_000001 exited with exitCode: 0". You can see in the image it will launch two tasks parent and sub-task. Even after successful completion of sub-task parent task reports a failure. I think it is a bug. Yarn should be able to support REST Api access for MapReduce. Links where this problems are highlighted: [http://riteshkumargupta.blogspot.com/2019/01/submit-mapreduce-jobs-to-yarn-rm-using.html] {color:#222222}[https://stackoverflow.com/questions/33341185/run-a-mapreduce-job-via-rest-api]{color} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-dev-h...@hadoop.apache.org