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

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.1.2
    • None
    • contrib/hod
    • None
    • RHEL6.4 and Python 2.6.6

    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

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

            Dates

              Created:
              Updated:
              Resolved: