HDFS-4582. TestHostsFiles fails on Windows. Contributed by Ivan Mitic.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1456060 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c390683bcc
commit
1f3a18ff44
@ -334,6 +334,8 @@ Trunk (Unreleased)
|
|||||||
|
|
||||||
HDFS-4593. TestSaveNamespace fails on Windows. (Arpit Agarwal via suresh)
|
HDFS-4593. TestSaveNamespace fails on Windows. (Arpit Agarwal via suresh)
|
||||||
|
|
||||||
|
HDFS-4582. TestHostsFiles fails on Windows. (Ivan Mitic via suresh)
|
||||||
|
|
||||||
Release 2.0.5-beta - UNRELEASED
|
Release 2.0.5-beta - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -120,12 +120,13 @@ public void testHostsExcludeDfshealthJsp() throws Exception {
|
|||||||
|
|
||||||
InetSocketAddress nnHttpAddress = cluster.getNameNode().getHttpAddress();
|
InetSocketAddress nnHttpAddress = cluster.getNameNode().getHttpAddress();
|
||||||
LOG.info("nnaddr = '" + nnHttpAddress + "'");
|
LOG.info("nnaddr = '" + nnHttpAddress + "'");
|
||||||
URL nnjsp = new URL("http://" + nnHttpAddress.getHostName() + ":" + nnHttpAddress.getPort() + "/dfshealth.jsp");
|
String nnHostName = nnHttpAddress.getHostName();
|
||||||
|
URL nnjsp = new URL("http://" + nnHostName + ":" + nnHttpAddress.getPort() + "/dfshealth.jsp");
|
||||||
LOG.info("fetching " + nnjsp);
|
LOG.info("fetching " + nnjsp);
|
||||||
String dfshealthPage = StringEscapeUtils.unescapeHtml(DFSTestUtil.urlGet(nnjsp));
|
String dfshealthPage = StringEscapeUtils.unescapeHtml(DFSTestUtil.urlGet(nnjsp));
|
||||||
LOG.info("got " + dfshealthPage);
|
LOG.info("got " + dfshealthPage);
|
||||||
assertTrue("dfshealth should contain localhost, got:" + dfshealthPage,
|
assertTrue("dfshealth should contain " + nnHostName + ", got:" + dfshealthPage,
|
||||||
dfshealthPage.contains("localhost"));
|
dfshealthPage.contains(nnHostName));
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
cluster.shutdown();
|
cluster.shutdown();
|
||||||
|
Loading…
Reference in New Issue
Block a user