vivekratnavel commented on a change in pull request #629: HDDS-3071. Datanodes
unable to connect to recon in Secure Environment
URL: https://github.com/apache/hadoop-ozone/pull/629#discussion_r387894361
##########
File path:
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconServer.java
##########
@@ -179,21 +179,21 @@ private static void loginReconUser(OzoneConfiguration
conf)
if (SecurityUtil.getAuthenticationMethod(conf).equals(
UserGroupInformation.AuthenticationMethod.KERBEROS)) {
-
+ ReconConfig reconConfig = conf.getObject(ReconConfig.class);
LOG.info("Ozone security is enabled. Attempting login for Recon user. "
- + "Principal: {}, keytab: {}", conf.get(
- OZONE_RECON_KERBEROS_PRINCIPAL_KEY),
- conf.get(OZONE_RECON_KERBEROS_KEYTAB_FILE_KEY));
-
+ + "Principal: {}, keytab: {}",
+ reconConfig.getKerberosPrincipal(),
+ reconConfig.getKerberosKeytab());
UserGroupInformation.setConfiguration(conf);
-
InetSocketAddress socAddr = HddsUtils.getReconAddresses(conf);
- SecurityUtil.login(conf, OZONE_RECON_KERBEROS_KEYTAB_FILE_KEY,
- OZONE_RECON_KERBEROS_PRINCIPAL_KEY, socAddr.getHostName());
+ SecurityUtil.login(conf,
+ OZONE_RECON_KERBEROS_KEYTAB_FILE_KEY,
+ OZONE_RECON_KERBEROS_PRINCIPAL_KEY,
+ socAddr.getHostName());
} else {
throw new AuthenticationException(SecurityUtil.getAuthenticationMethod(
- conf) + " authentication method not supported. Recon user login "
- + "failed.");
+ conf) + " authentication method not support. "
Review comment:
nit: supported?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]