Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Can we submit a Yarn job through REST ?

avatar
Expert Contributor
 
1 ACCEPTED SOLUTION

avatar
@krajguru

You can't run MR or Tez jobs using the REST API. The YARN REST API is meant for developers of applications such as Distributed shell, MR and Tez, not for users who submit applications.

However for spark jobs on yarn REST api can be used as given here.

https://community.hortonworks.com/articles/28070/starting-spark-jobs-directly-via-yarn-rest-api.html

View solution in original post

1 REPLY 1

avatar
@krajguru

You can't run MR or Tez jobs using the REST API. The YARN REST API is meant for developers of applications such as Distributed shell, MR and Tez, not for users who submit applications.

However for spark jobs on yarn REST api can be used as given here.

https://community.hortonworks.com/articles/28070/starting-spark-jobs-directly-via-yarn-rest-api.html