Configure the Spark history server
On a Kerberos-enabled cluster, the Spark history server daemon must have a Kerberos account and keytab.
When you enable Kerberos for a Hadoop cluster with Ambari, Ambari configures Kerberos for the history server and automatically creates a Kerberos account and keytab for it. For more information, see "Enabling Kerberos Authentication Using Ambari" in the HDP Security guide.
If your cluster is not managed by Ambari, or if you plan to enable Kerberos manually for the history server, see "Creating Service Principals and Keytab Files for HDP" in the HDP Security guide.