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

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

Introduction

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

Prototype

public static void main(String argv[]) throws Exception 

Source Link

Usage

From source file:io.aos.hadoop.HdfsNameNode.java

License:Apache License

public static void main(String... args) throws Exception {

    new AosProcessLauncher() {
        @Override//from   ww w  .  ja  v a  2 s. c  om
        public void process() throws Exception {
            NameNode.main(new String[] {});
        }
    }.launch("HdfsNameNode");

    while (true) {
        LOGGER.info("Sleeping...");
        TimeUnit.MINUTES.sleep(1);
    }

}

From source file:io.aos.hadoop.HdfsNameNodeFormatter.java

License:Apache License

public static void main(String... args) throws Exception {
    NameNode.main(new String[] { "-format", "AosHadoopCluster" });
}