code: public void killAllSpawnedHadoopJobs(Props jobProps, final Logger logger) {
      if (tokenFile == null) {
        return; // do null check for tokenFile
      }
  
      final String logFilePath = jobProps.getString(CommonJobProperties.JOB_LOG_FILE);
      logger.info("Log file path is: " + logFilePath);
  
      HadoopJobUtils.proxyUserKillAllSpawnedHadoopJobs(logFilePath, jobProps, tokenFile, logger);
    }
docs: Kill all Spawned Hadoop Jobs
  
  @param jobProps job properties
  @param logger logger handler