Provided that you have your application ID, getting its logs is as easy as:
$ yarn logs -applicationId <application_id_00398384848_9398>
This is another notebook, this time about SparkSQL. It is again not intended for public use, it's only my notebook. Period.
Here are some notes I've taken on Spark. Not intended to be organized material for other, just my personal notes. You've been warned!