Example usage for org.apache.hadoop.hdfs.server.namenode NameNode getHttpAddress

List of usage examples for org.apache.hadoop.hdfs.server.namenode NameNode getHttpAddress

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.server.namenode NameNode getHttpAddress.

Prototype

public static InetSocketAddress getHttpAddress(Configuration conf) 

Source Link

Usage

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");
}