public static void main(String[] args) {
    ApplicationRunnerCommandLine cmdLine = new ApplicationRunnerCommandLine();
    OptionSet options = cmdLine.parser().parse(args);
    Config orgConfig = cmdLine.loadConfig(options);
    ApplicationRunnerOperation op = cmdLine.getOperation(options);
    ApplicationRunnerUtil.invoke(orgConfig, op);
  }
This class contains the main() method used by run-app.sh.
It creates the {@link ApplicationRunner} based on the config, and then run the application.
samza-core/src/main/java/org/apache/samza/runtime/ApplicationRunnerMain.java