hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/ksm/KeySpaceManager.java
public static void main(String[] argv) throws IOException {
    if (DFSUtil.parseHelpArgument(argv, USAGE, System.out, true)) {
      System.exit(0);
    }
    try {
      OzoneConfiguration conf = new OzoneConfiguration();
      GenericOptionsParser hParser = new GenericOptionsParser(conf, argv);
      if (!hParser.isParseSuccessful()) {
        System.err.println("USAGE: " + USAGE + " \n");
        hParser.printGenericCommandUsage(System.err);
        System.exit(1);
      }
      StringUtils.startupShutdownMessage(KeySpaceManager.class, argv, LOG);
      KeySpaceManager ksm = createKSM(hParser.getRemainingArgs(), conf);
      if (ksm != null) {
        ksm.start();
        ksm.join();
      }
    } catch (Throwable t) {
      LOG.error("Failed to start the KeyspaceManager.", t);
      terminate(1, t);
    }
  }
/**
   * Main entry point for starting KeySpaceManager.
   *
   * @param argv arguments
   * @throws IOException if startup fails due to I/O error
   */
Main entry point for starting KeySpaceManager.
@param argv arguments
@throws IOException if startup fails due to I/O error
Main entry point for starting KeySpaceManager . @param argv arguments @throws IOException if startup fails due to I / O error
public static void main(String[] argv) throws IOException {
    if (DFSUtil.parseHelpArgument(argv, USAGE, System.out, true)) {
      System.exit(0);
    }
    try {
      OzoneConfiguration conf = new OzoneConfiguration();
      GenericOptionsParser hParser = new GenericOptionsParser(conf, argv);
      if (!hParser.isParseSuccessful()) {
        System.err.println("USAGE: " + USAGE + " \n");
        hParser.printGenericCommandUsage(System.err);
        System.exit(1);
      }
      StringUtils.startupShutdownMessage(KeySpaceManager.class, argv, LOG);
      KeySpaceManager ksm = createKSM(hParser.getRemainingArgs(), conf);
      if (ksm != null) {
        ksm.start();
        ksm.join();
      }
    } catch (Throwable t) {
      LOG.error("Failed to start the KeyspaceManager.", t);
      terminate(1, t);
    }
  }
public static void main ( String [ ] argv ) throws IOException { if ( DFSUtil . parseHelpArgument ( argv , USAGE , System . out , true ) ) { System . exit ( 0 ) ; } try { OzoneConfiguration conf = new OzoneConfiguration ( ) ; GenericOptionsParser hParser = new GenericOptionsParser ( conf , argv ) ; if ( ! hParser . isParseSuccessful ( ) ) { System . err . println ( "USAGE: " + USAGE + " \n" ) ; hParser . printGenericCommandUsage ( System . err ) ; System . exit ( 1 ) ; } StringUtils . startupShutdownMessage ( KeySpaceManager . class , argv , LOG ) ; KeySpaceManager ksm = createKSM ( hParser . getRemainingArgs ( ) , conf ) ; if ( ksm != null ) { ksm . start ( ) ; ksm . join ( ) ; } } catch ( Throwable t ) { LOG . error ( "Failed to start the KeyspaceManager." , t ) ; terminate ( 1 , t ) ; } }
Main entry point for starting KeySpaceManager.
Main entry point for starting KeySpaceManager .