Why Is the RESTful Interface Information Obtained by Accessing Spark Incorrect?
Question
After Spark stops, I access the RESTful interface of the application to obtain the job information. It is found that the value of numActiveTasks is a negative number.
numActiveTasks indicates the number of running tasks.
Answer
- Set spark.history.briefInfo.gather to true and view brief information about JobHistory.
- Visit the Spark JobHistory page https://IP:port/api/v1/<appid>/jobs/.
The value of numActiveTasks in the job information is calculated based on the difference between the number of SparkListenerTaskStart events and the number of SparkListenerTaskEnd events in the eventlog file. If any event in eventlog is lost, the problem may occur.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot