Secure the Spark
To run Spark in secure cluster, user either need to do kinit before launch the service, or provide the keytab and principal to the spark launch script.
For example:
kinit -k -t spark.keytab spark/[email protected]
To find the principal of a keytab
klist -e -k -t spark.keytab
kdestroy to remove all the current ticket from the system.