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