Example usage for org.apache.hadoop.hdfs.server.datanode DataNode main

List of usage examples for org.apache.hadoop.hdfs.server.datanode DataNode main

Introduction

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

Prototype

public static void main(String args[]) 

Source Link

Usage

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

License:Apache License

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

    new AosProcessLauncher() {
        @Override/*from  w w w  .j a  va2  s .c  om*/
        public void process() throws Exception {
            DataNode.main(new String[] {});
        }
    }.launch("HdfsDataNode");

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

}