Examples of AzkabanCommandLine


Examples of azkaban.jobs.AzkabanCommandLine

      OptionSpec<String> staticContentOpt = parser.accepts("static-dir",
                                                           "The static content directory for the web server.")
              .withRequiredArg()
              .describedAs("dir");

      AzkabanCommandLine cl = new AzkabanCommandLine(parser, arguments);
      OptionSet options = cl.getOptions();

      if(cl.hasHelp())
          cl.printHelpAndExit("USAGE: ./bin/azkaban-server.sh", System.out);

      if(cl.getJobDirs().size() == 0)
          cl.printHelpAndExit("No job directory given.", System.out);

      logger.info("Job log directory set to " + cl.getLogDir().getAbsolutePath());
      logger.info("Job directories set to " + cl.getJobDirs());

      AzkabanApplication app = new AzkabanApplication(cl.getJobDirs(), cl.getLogDir(), new File("temp"), options.has(devModeOpt));

      int portNumber = 8081;
      if(options.has(portOpt))
          portNumber = options.valueOf(portOpt);
      int httpThreads = 10;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.