Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9493

Replace popen2 module with subprocess in HOD to eliminate deprecation warning

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.2
    • Fix Version/s: None
    • Component/s: contrib/hod
    • Labels:
      None
    • Environment:

      RHEL6.4 and Python 2.6.6

    • Target Version/s:

      Description

      Python 2.6.6 issues the following warning when running the "hod" command:
      """
      /homes/jbarber/hadoop-1.1.2/contrib/hod/hodlib/Common/threads.py:19: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
      from popen2 import Popen4, Popen3, MAXFD
      """

      The popen2 module was deprecated in Python 2.6.

      The attached patch replaces the usage of popen2 with the subprocess module.

        Attachments

        1. HADOOP-9493.patch
          3 kB
          Jonathan Barber
        2. HADOOP-9493.patch
          3 kB
          Jonathan Barber

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jbarber Jonathan Barber
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: