spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Farrellee (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-927) PySpark sample() doesn't work if numpy is installed on master but not on workers
Date Sun, 07 Sep 2014 15:26:28 GMT

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

Matthew Farrellee commented on SPARK-927:
-----------------------------------------

it looks like the issue is rddsampler checks for numpy in its constructor instead of when
initializing the random number generator

> PySpark sample() doesn't work if numpy is installed on master but not on workers
> --------------------------------------------------------------------------------
>
>                 Key: SPARK-927
>                 URL: https://issues.apache.org/jira/browse/SPARK-927
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 0.8.0
>            Reporter: Josh Rosen
>            Assignee: Matthew Farrellee
>            Priority: Minor
>
> PySpark's sample() method crashes with ImportErrors on the workers if numpy is installed
on the driver machine but not on the workers.  I'm not sure what's the best way to fix this.
 A general mechanism for automatically shipping libraries from the master to the workers would
address this, but that could be complicated to implement.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message