I think the old version of Spark doesn't do kinit for the client, and that's why kinit is called explicitly. If the bug is fixed in new version of Spark, this is certainly a welcome fix for Hive on Spark.

Xuefu Zhang
added a comment - 29/Jul/16 18:34 I think the old version of Spark doesn't do kinit for the client, and that's why kinit is called explicitly. If the bug is fixed in new version of Spark, this is certainly a welcome fix for Hive on Spark.
Other than that, code looks good to me. +1