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

JobClient should be an AutoClosable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.1
    • 2.9.0, 3.0.0-alpha1
    • None
    • None
    • Reviewed

    Description

      Since the new target version if Java is 7, it would be great if JobClient could implement the java.lang.AutoClosable interface, so that it can be used in try-with-ressource statements. See here: https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html

      Attachments

        1. mapreduce6431.001.patch
          1 kB
          Haibo Chen
        2. mapreduce6431.002.patch
          2 kB
          Haibo Chen

        Activity

          People

            haibochen Haibo Chen
            fs111 André Kelpe
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: