Created 01-11-2016 10:37 PM
It looks like Ambari uses headless keytab for Spark history server:
Execute['/usr/bin/kinit -kt /dsap/etc/security/keytabs/spark.headless.keytab spark-abc@EXAMPLE.COM; '] {'user': 'spark'}
Does anyone know why?
Also current documentation suggests that we need to create keytabs on host as described here:
This is somehow confusing.
Created 01-11-2016 10:41 PM
Ambari needs headless Keytab so it can start services without prompting for password. That's how Spark's History server is started (i.e. w/o prompting for password)
When an end user is submitting a spark job, they can use either a headless keytab or type the kerberos password.
Created 01-11-2016 10:41 PM
Ambari needs headless Keytab so it can start services without prompting for password. That's how Spark's History server is started (i.e. w/o prompting for password)
When an end user is submitting a spark job, they can use either a headless keytab or type the kerberos password.
Created 01-13-2016 11:28 PM
Is there any possibility that this headless keytab is used when spark submits a job (to YARN or hive, maybe?) to identify itself?
Not for ambari to start Spark service, maybe?
Created 01-14-2016 05:52 PM
Afraid not. The same keytab could be used if you had a local copy of it when you submitted work. Otherwise, when you submit a Spark job to the YARN cluster, it picks up your credentials, grabbing a Hive and HBase token if needed, and uses them for the duration of the job.
Note that because those tokens expire after a day or two, you can't do long-lived applications that way. You will need a keytab, and spark 1.5, which is where keytab-based Spark application support went in,
Created 01-11-2016 11:54 PM
@Vincent Jiang, What is confusing... the fact that a keytab is being used or that a headless principal is being used?