List of usage examples for org.apache.hadoop.hdfs.server.namenode NameNode getHttpAddress
public static InetSocketAddress getHttpAddress(Configuration conf)
From source file:org.talend.components.test.MiniDfsResource.java
License:Open Source License
/** * @return The URL for the name node health page. *//*from www. j a v a2 s . co m*/ public URL getNameNodeUI() throws IOException { getFs(); return new URL("http://localhost:" + NameNode.getHttpAddress(miniHdfs.getConfiguration(0)).getPort() + "/dfshealth.jsp"); }