Help Center> MapReduce Service> Component Operation Guide (Normal)> Using YARN> Common Issues About Yarn> Why Does an Error Occur When I Query the ApplicationID of a Completed or Non-existing Application Using the RESTful APIs?
Updated on 2022-09-22 GMT+08:00

Why Does an Error Occur When I Query the ApplicationID of a Completed or Non-existing Application Using the RESTful APIs?

Question

Why does an error occur when I query the applicationID of a completed or non-existing application using the RESTful APIs?

Answer

The Superior scheduler only stores the applicationIDs of running applications. If you view the applicationID of a completed or non-existing application by accessing the RESTful API at https://<SS_REST_SERVER>/ws/v1/sscheduler/applications/{application_id}. the 404 error is returned by the server. If Chrome web browser is used, the Error Occurred message is displayed because chrome preferentially responds in the application/xml format. If Internet Explorer is used, the 404 error code is displayed because IE web browser preferentially responds in the application/json format.