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

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

Introduction

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

Prototype

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

Source Link

Document

main() has some simple utility methods.

Usage

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

License:Apache License

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

    new AosProcessLauncher() {
        @Override/*from w w w.j  a  va  2s  . c  o m*/
        public void process() throws Exception {
            SecondaryNameNode.main(new String[] {});
        }
    }.launch("HdfsSecondaryNameNode");

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

}