We execute Spark applications in YARN Client mode a lot of time. When we do so the Spark Driver logs are printed to the console.
We need a solution to persist the console outputs for later usage. This can be either for doing some troubleshooting or for some another log analysis. Ideally, we would like to persist these along with Yarn logs (when application is run in Yarn Client mode). Also, this has to be end-user agnostic, so that the logs are available for later usage without requiring the end-user to make some configuration changes.