Jonathan Barber created HADOOP-9493: ---------------------------------------
Summary: Replace popen2 module with subprocess in HOD to eliminate deprecation warning Key: HADOOP-9493 URL: https://issues.apache.org/jira/browse/HADOOP-9493 Project: Hadoop Common Issue Type: Improvement Components: contrib/hod Affects Versions: 1.1.2 Environment: RHEL6.4 and Python 2.6.6 Reporter: Jonathan Barber Priority: Minor Fix For: 1.1.2 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira