But in Spark-History I still see it in incomplete section of my applications. If I open this application there, I can see 1 Active job with 1 Alive executor, but they are doing nothing for all week. This seems like a logging bug, but as I know this problem is only with me, other coworkers doesn't have this problem.
This thread doesn't helped me, because I dont have access to start-history-server.sh.
I suppose this is because of
Log Aggregation Status: TIME_OUT
because my "completed" applications have
Log Aggregation Status: SUCCEDED
What can I do to fix this? Right now I have 80+ incompleted applications in spark-history...
Possibly, when there are huge number of application count stored that is expected to cause this issue. In general, large /tmp/logs (yarn.nodemanager.remote-app-log-dir) HDFS directory causes YARN log aggregation to time out.
Regarding killing application, this must be code level issue you need to check if sc.close() method has been called at correct place.
Thank you very much for your answer! No, this command is not working for me, I can see only the error that my account don`t have access to the server with logs...
But I've found a root of my problem:
From Spark Monitoring and Instrumentation:
... 3. Applications which exited without registering themselves as completed will be listed as incomplete --even though they are no longer running. This can happen if an application crashes...
I am really restarting kernel in JH quite often, because we have unstable system right now (we are moving from office to another). Can I just mark incomplete applications as complete somehow or I need to write to somebody who have access to spark logs folder?
You may need to explicitly stop the SparkContext sc by calling sc.stop.
it's a good idea to call sc.stop(), which lets the spark master know that your application is finished consuming resources. If you don't call sc.stop(), the event log information that is used by the history server will be incomplete, and your application will not show up in the history server's UI.