Class KerberosPrincipal

java.lang.Object
org.apache.hadoop.yarn.service.api.records.KerberosPrincipal
All Implemented Interfaces:
Serializable

@Public @Unstable public class KerberosPrincipal extends Object implements Serializable
The kerberos principal of the service.
See Also:
  • Constructor Details

    • KerberosPrincipal

      public KerberosPrincipal()
  • Method Details

    • principalName

      public KerberosPrincipal principalName(String principalName)
    • getPrincipalName

      public String getPrincipalName()
      The principal name of the service.
      Returns:
      principalName
    • setPrincipalName

      public void setPrincipalName(String principalName)
    • keytab

      public KerberosPrincipal keytab(String keytab)
    • getKeytab

      public String getKeytab()
      The URI of the kerberos keytab. It supports hadoop supported schemes like \"hdfs\" \"file\" \"s3\" \"viewfs\" etc.If the URI starts with \" hdfs://\" scheme, it indicates the path on hdfs where the keytab is stored. The keytab will be localized by YARN and made available to AM in its local directory. If the URI starts with \"file://\" scheme, it indicates a path on the local host presumbaly installed by admins upfront.
      Returns:
      keytab
    • setKeytab

      public void setKeytab(String keytab)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object