Todd Lipcon has submitted this change and it was merged. Change subject: [java] KUDU-2103 Canonicalize hostnames in client ......................................................................
[java] KUDU-2103 Canonicalize hostnames in client When Kerberos is used the service principal contains the hostname of the service. This means that if a user wants to use an alias for the master_addresses in a Kerberized environment it won't be able to connect as the service principal name is not found in the Kerberos database. This patch adds canonicalization for the hostnames to make sure the principal name the service ticket is requested for matches the one used by the master servers. Change-Id: I77204a185c1ab8e21cc833afb645543cbc0e340f Reviewed-on: http://gerrit.cloudera.org:8080/7757 Tested-by: Kudu Jenkins Reviewed-by: Todd Lipcon <[email protected]> --- M java/kudu-client/src/main/java/org/apache/kudu/client/Connection.java M java/kudu-client/src/main/java/org/apache/kudu/client/ServerInfo.java M java/kudu-client/src/test/java/org/apache/kudu/client/FakeDNS.java M java/kudu-client/src/test/java/org/apache/kudu/client/TestServerInfo.java 4 files changed, 91 insertions(+), 6 deletions(-) Approvals: Todd Lipcon: Looks good to me, approved Kudu Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/7757 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: I77204a185c1ab8e21cc833afb645543cbc0e340f Gerrit-PatchSet: 6 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Attila Bukor <[email protected]> Gerrit-Reviewer: Attila Bukor <[email protected]> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Todd Lipcon <[email protected]>
