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

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

Introduction

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

Prototype

int DEFAULT_PORT

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

Click Source Link

Usage

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

License:Apache License

@Override
protected int getDefaultPort() {
    return NameNode.DEFAULT_PORT;
}

From source file:org.apache.solr.hadoop.PathParts.java

License:Apache License

public int getPort() {
    int port = normalizedPath.toUri().getPort();
    if (port == -1) {
        port = fs.getWorkingDirectory().toUri().getPort();
        if (port == -1) {
            port = NameNode.DEFAULT_PORT;
        }//  w  w w .j  a va  2 s  .c o  m
    }
    return port;
}