[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to