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

Patrick Wendell resolved SPARK-3647.
------------------------------------
    Resolution: Fixed

Fixed by Marcelo in this patch:

https://github.com/apache/spark/pull/2496

> Shaded Guava patch causes access issues with package private classes
> --------------------------------------------------------------------
>
>                 Key: SPARK-3647
>                 URL: https://issues.apache.org/jira/browse/SPARK-3647
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.2.0
>            Reporter: Marcelo Vanzin
>            Assignee: Marcelo Vanzin
>            Priority: Critical
>
> The patch that introduced shading to Guava (SPARK-2848) tried to maintain 
> backwards compatibility in the Java API by not relocating the "Optional" 
> class. That causes problems when that class references package private 
> members in the Absent and Present classes, which are now in a different 
> package:
> {noformat}
> Exception in thread "main" java.lang.IllegalAccessError: tried to access 
> class org.spark-project.guava.common.base.Present from class 
> com.google.common.base.Optional
>       at com.google.common.base.Optional.of(Optional.java:86)
>       at 
> org.apache.spark.api.java.JavaUtils$.optionToOptional(JavaUtils.scala:25)
>       at 
> org.apache.spark.api.java.JavaSparkContext.getSparkHome(JavaSparkContext.scala:542)
> {noformat}



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

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

Reply via email to