code: public static void main(String[] args) throws Exception {
      AlluxioConfiguration alluxioConf = new InstancedConfiguration(ConfigurationUtils.defaults());
      SparkIntegrationChecker checker = new SparkIntegrationChecker();
      JCommander jCommander = new JCommander(checker, args);
      jCommander.setProgramName("SparkIntegrationChecker");
  
      // Create a file to save user-facing messages
      try (PrintWriter reportWriter = CheckerUtils.initReportFile()) {
        // Start the Java Spark Context
        SparkConf conf = new SparkConf().setAppName(SparkIntegrationChecker.class.getName());
        JavaSparkContext sc = new JavaSparkContext(conf);
  
        checker.printConfigInfo(conf, reportWriter);
        Status resultStatus = checker.run(sc, reportWriter, alluxioConf);
        checker.printResultInfo(resultStatus, reportWriter);
        reportWriter.flush();
        System.exit(resultStatus.equals(Status.SUCCESS) ? 0 : 1);
      }
    }
docs: Main function will be triggered via spark-submit.
  
  @param args optional argument mPartitions may be passed in