Help Center/ MapReduce Service/ Component Operation Guide (Normal)/ Using YARN/ Common Issues About Yarn/ Why Does an Error Occur When I Query the application ID of a Completed or Non-existing Application Using the RESTful APIs?
Updated on 2025-07-16 GMT+08:00

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

Question

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

Answer

The Superior scheduler only stores the application IDs of running applications. If you view the application ID 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.