List of usage examples for org.apache.hadoop.hdfs.server.namenode NameNode LOG
Logger LOG
To view the source code for org.apache.hadoop.hdfs.server.namenode NameNode LOG.
Click Source Link
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; }