You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Matthew Farrellee (JIRA)" <ji...@apache.org> on 2014/09/07 17:26:28 UTC

[jira] [Commented] (SPARK-927) PySpark sample() doesn't work if numpy is installed on master but not on workers

    [ 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