List of usage examples for org.apache.hadoop.hdfs.server.namenode NameNode main
public static void main(String argv[]) throws Exception
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" }); }