Github user jerryshao commented on the issue:
https://github.com/apache/spark/pull/19227
> I don't think Mesos honors it (and it shouldn't be, since IIRC it hasn't
implemented long-lived app support yet).
Current Spark on Mesos code actually honors it:
```
// assure a keytab is available from any place in a JVM
if (clusterManager == YARN || clusterManager == LOCAL || clusterManager
== MESOS) {
if (args.principal != null) {
if (args.keytab != null) {
require(new File(args.keytab).exists(), s"Keytab file:
${args.keytab} does not exist")
// Add keytab and principal configurations in sysProps to make
them available
// for later use; e.g. in spark sql, the isolated class loader
used to talk
// to HiveMetastore will use these settings. They will be set as
Java system
// properties and then loaded by SparkConf
sysProps.put("spark.yarn.keytab", args.keytab)
sysProps.put("spark.yarn.principal", args.principal)
UserGroupInformation.loginUserFromKeytab(args.principal,
args.keytab)
}
}
}
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]