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

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

Introduction

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

Prototype

Logger LOG

To view the source code for org.apache.hadoop.hdfs.server.namenode NameNode LOG.

Click Source Link

Usage

From source file:com.mellanox.r4h.MiniDFSCluster.java

License:Apache License

/**
 * @return URI of the given namenode in MiniDFSCluster
 *///ww w . j  a va  2  s. co  m
public URI getURI(int nnIndex) {
    String hostPort = nameNodes[nnIndex].nameNode.getNameNodeAddressHostPortString();
    URI uri = null;
    try {
        uri = new URI("hdfs://" + hostPort);
    } catch (URISyntaxException e) {
        NameNode.LOG.warn("unexpected URISyntaxException: " + e);
    }
    return uri;
}