printUsage(""); return -1; printUsage(cmd); return exitCode; printUsage(cmd); return exitCode; printUsage(cmd); return exitCode; exitCode = -1; LOG.error(cmd.substring(1) + ": Unknown command"); printUsage("");
printUsage(""); return -1; printUsage(cmd); return exitCode; printUsage(cmd); return exitCode; printUsage(cmd); return exitCode; exitCode = -1; LOG.error(cmd.substring(1) + ": Unknown command"); printUsage("");
/** * main() has some simple utility methods. * @param argv Command line parameters. * @exception Exception if the filesystem does not exist. */ public static void main(String[] argv) throws Exception { StringUtils.startupShutdownMessage(SecondaryNameNode.class, argv, LOG); Configuration tconf = new Configuration(); try { argv = DFSUtil.setGenericConf(argv, tconf); } catch (IllegalArgumentException e) { System.err.println(e.getMessage()); printUsage(""); return; } if (argv.length >= 1) { SecondaryNameNode secondary = new SecondaryNameNode(tconf); int ret = secondary.processArgs(argv); System.exit(ret); } // Create a never ending deamon Daemon checkpointThread = new Daemon(new SecondaryNameNode(tconf)); checkpointThread.start(); }