Class KerberosPrincipal
java.lang.Object
org.apache.hadoop.yarn.service.api.records.KerberosPrincipal
- All Implemented Interfaces:
Serializable
The kerberos principal of the service.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe URI of the kerberos keytab.The principal name of the service.inthashCode()principalName(String principalName) voidvoidsetPrincipalName(String principalName) toString()
-
Constructor Details
-
KerberosPrincipal
public KerberosPrincipal()
-
-
Method Details
-
principalName
-
getPrincipalName
The principal name of the service.- Returns:
- principalName
-
setPrincipalName
-
keytab
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-