Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5882

org.apache.hadoop.mapreduce.tools.CLI doesn't close cluster on job submit.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 2.3.0
    • None
    • None
    • None

    Description

      When job is submitted through CLI class, Job connects to the cluster. However, cluster is never closed in this case and ClientProtocolProvider.close() is never invoked.
      In all other cases Cluster is gracefully closed explicitly in finally block.

      This can be easily resolved e.g. by wrapping call to job.submit() in try-finally block:

      try {
      job.submit();
      }
      finally {
      Cluster jobCluster = job.getCluster();

      if (jobCluster != null)
      jobCluster.close();
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            vozerov Vladimir Ozerov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: