Principal error in Hive Kerberos Authentication
@@ -52,7 +52,7 @@ public class KerberosAuthentication
checkArgument(exists(keytabPath), "keytab does not exist: " + keytabLocation);
checkArgument(isReadable(keytabPath), "keytab is not readable: " + keytabLocation);
this.principal = createKerberosPrincipal(principal);
- this.configuration = createConfiguration(principal, keytabLocation);
+ this.configuration = createConfiguration(this.principal.getName(), keytabLocation);
}
public Subject getSubject()
