private int runMetastoreCompareJob(Optional<Path> inputTableListPath,Path outputPath) throws InterruptedException, IOException, ClassNotFoundException, TemplateRenderException {
  LOG.info("Starting job for step 1...");
  int result;
  if (inputTableListPath.isPresent()) {
    result=runMetastoreCompareJobWithTextInput(inputTableListPath.get(),outputPath);
  }
 else {
    result=runMetastoreCompareJob(outputPath);
  }
  if (result == 0) {
    LOG.info("Job for step 1 finished successfully! To view logging data, run the following " + "commands in Hive: \n\n" + VelocityUtils.renderTemplate(STEP1_HQL_TEMPLATE,velocityContext));
  }
  return result;
}

private int runMetastoreCompareJob ( Optional < Path > inputTableListPath , Path outputPath ) throws InterruptedException , IOException , ClassNotFoundException , TemplateRenderException { LOG . info ( "Starting job for step 1..." ) ; int result ; if ( inputTableListPath . isPresent ( ) ) { result = runMetastoreCompareJobWithTextInput ( inputTableListPath . get ( ) , outputPath ) ; } else { result = runMetastoreCompareJob ( outputPath ) ; } if ( result == 0 ) { LOG . info ( "Job for step 1 finished successfully! To view logging data, run the following " + "commands in Hive: \n\n" + VelocityUtils . renderTemplate ( STEP1_HQL_TEMPLATE , velocityContext ) ) ; } return result ; }
runs the job to scan the metastore for directory locations .
