spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Rosen (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SPARK-922) Update Spark AMI to Python 2.7
Date Fri, 15 Aug 2014 18:11:18 GMT

    [ https://issues.apache.org/jira/browse/SPARK-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14098824#comment-14098824
] 

Josh Rosen edited comment on SPARK-922 at 8/15/14 6:10 PM:
-----------------------------------------------------------

Updated script, which also updates numpy:

{code}
yum install -y pssh
yum install -y python27 python27-devel
pssh -h /root/spark-ec2/slaves yum install -y python27 python27-devel
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python27
pssh -h /root/spark-ec2/slaves "wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
-O - | python27"
easy_install-2.7 pip
pssh -h /root/spark-ec2/slaves easy_install-2.7 pip
pip2.7 install numpy
pssh -h /root/spark-ec2/slaves pip2.7 -t0 install numpy
{code}

And to check that numpy is successfully installed:

{code}
pssh -h /root/spark-ec2/slaves --inline-stdout 'python2.7 -c "import numpy; print numpy"'
{code}


was (Author: joshrosen):
Updated script, which also updates numpy:

{code}
yum install -y pssh
yum install -y python27 python27-devel
pssh -h /root/spark-ec2/slaves yum install -y python27 python27-devel
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python27
pssh -h /root/spark-ec2/slaves "wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
-O - | python27"
easy_install-2.7 pip
pssh -h /root/spark-ec2/slaves easy_install-2.7 pip
pip2.7 install numpy
pssh -h /root/spark-ec2/slaves pip2.7 -t0 install numpy
{code}

> Update Spark AMI to Python 2.7
> ------------------------------
>
>                 Key: SPARK-922
>                 URL: https://issues.apache.org/jira/browse/SPARK-922
>             Project: Spark
>          Issue Type: Task
>          Components: EC2, PySpark
>    Affects Versions: 0.9.0, 0.9.1, 1.0.0
>            Reporter: Josh Rosen
>             Fix For: 1.1.0
>
>
> Many Python libraries only support Python 2.7+, so we should make Python 2.7 the default
Python on the Spark AMIs.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message