Example usage for org.apache.hadoop.hdfs.server.namenode NameNodeAdapter getNamesystem

List of usage examples for org.apache.hadoop.hdfs.server.namenode NameNodeAdapter getNamesystem

Introduction

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

Prototype

public static FSNamesystem getNamesystem(NameNode namenode) 

Source Link

Document

Get the namesystem from the namenode

Usage

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

License:Apache License

/**
 * Return the {@link FSNamesystem} object.
 * /*w  ww  .j  a  v a 2s.c om*/
 * @return {@link FSNamesystem} object.
 */
public FSNamesystem getNamesystem() {
    checkSingleNameNode();
    return NameNodeAdapter.getNamesystem(nameNodes[0].nameNode);
}

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

License:Apache License

public FSNamesystem getNamesystem(int nnIndex) {
    return NameNodeAdapter.getNamesystem(nameNodes[nnIndex].nameNode);
}