You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:34:25 UTC

[jira] [Resolved] (SPARK-6853) Contents of .globalenv in workers

     [ https://issues.apache.org/jira/browse/SPARK-6853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-6853.
---------------------------------
    Resolution: Incomplete

> Contents of .globalenv in workers
> ---------------------------------
>
>                 Key: SPARK-6853
>                 URL: https://issues.apache.org/jira/browse/SPARK-6853
>             Project: Spark
>          Issue Type: Bug
>          Components: SparkR
>    Affects Versions: 1.3.0
>            Reporter: Antonio Piccolboni
>            Priority: Major
>              Labels: bulk-closed
>
> I am filling a number of bugs that may be all related but I am not sure and I don't want to forget the test case, so here it is:
> In an R --vanilla session
> library(SparkR)
> sc=sparkR.init()
> z=1
> eval(quote(z), .GlobalEnv)
> collect(lapply(parallelize(sc, 1), function(i) eval(quote(z), .GlobalEnv)))
> Fails not finding z.
> Unfortunately .GlobalEnv gets special treatment (a.k.a the wrong one) when closures are serialized in R and gets replaced by whatever the .Globalenv is at deserialization. It's not so far fetched as a use case since I got here trying to make the foreach package work on Spark.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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