GitHub user gregakespret opened a pull request: https://github.com/apache/spark/pull/1109
Fix for global name 'PIPE' is not defined Before this fix, when running ./spark-ec2 script: ``` Traceback (most recent call last): File "./spark_ec2.py", line 894, in <module> main() File "./spark_ec2.py", line 886, in main real_main() File "./spark_ec2.py", line 770, in real_main setup_cluster(conn, master_nodes, slave_nodes, opts, True) File "./spark_ec2.py", line 475, in setup_cluster dot_ssh_tar = ssh_read(master, opts, ['tar', 'c', '.ssh']) File "./spark_ec2.py", line 709, in ssh_read ssh_command(opts) + ['%s@%s' % (opts.user, host), stringify_command(command)]) File "./spark_ec2.py", line 696, in _check_output process = subprocess.Popen(stdout=PIPE, *popenargs, **kwargs) NameError: global name 'PIPE' is not defined ``` You can merge this pull request into a Git repository by running: $ git pull https://github.com/gregakespret/spark spark-ec2-subprocess-script Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/1109.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1109 ---- commit 4168dc66fac375616fe4a87d1a95267e7685399c Author: Grega Kespret <gr...@celtra.com> Date: 2014-06-17T21:01:08Z Fix for global name 'PIPE' is not defined Traceback (most recent call last): File "./spark_ec2.py", line 894, in <module> main() File "./spark_ec2.py", line 886, in main real_main() File "./spark_ec2.py", line 770, in real_main setup_cluster(conn, master_nodes, slave_nodes, opts, True) File "./spark_ec2.py", line 475, in setup_cluster dot_ssh_tar = ssh_read(master, opts, ['tar', 'c', '.ssh']) File "./spark_ec2.py", line 709, in ssh_read ssh_command(opts) + ['%s@%s' % (opts.user, host), stringify_command(command)]) File "./spark_ec2.py", line 696, in _check_output process = subprocess.Popen(stdout=PIPE, *popenargs, **kwargs) NameError: global name 'PIPE' is not defined ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---