Skip to content

Commit 05956ae

Browse files
committed
HDFS-6077. running slive with webhdfs on secure HA cluster fails with unkown host exception. Contributed by Jing Zhao.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1576076 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2a9d811 commit 05956ae

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,9 @@ Release 2.4.0 - UNRELEASED
736736

737737
HDFS-5892. TestDeleteBlockPool fails in branch-2. (Ted Yu via wheat9)
738738

739+
HDFS-6077. Running slive with webhdfs on secure HA cluster fails with unkown
740+
host exception. (jing9)
741+
739742
BREAKDOWN OF HDFS-5698 SUBTASKS AND RELATED JIRAS
740743

741744
HDFS-5717. Save FSImage header in protobuf. (Haohui Mai via jing9)

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,4 +1114,10 @@ private InetSocketAddress[] resolveNNAddr() throws IOException {
11141114
InetSocketAddress[] r = new InetSocketAddress[ret.size()];
11151115
return ret.toArray(r);
11161116
}
1117+
1118+
@Override
1119+
public String getCanonicalServiceName() {
1120+
return tokenServiceName == null ? super.getCanonicalServiceName()
1121+
: tokenServiceName.toString();
1122+
}
11171123
}

0 commit comments

Comments
 (0)