I have a situation where I need to set the keytab and principal for a Java Spark job to access HBase through code. Using the keytab and principal options in the spark-submit