[ https://issues.apache.org/jira/browse/SPARK-12548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen resolved SPARK-12548. ------------------------------- Resolution: Duplicate This is subsumed by the existing issue to simply remove Guava from the public API, which should then remove the need to make exceptions. > Add more exceptions to Guava relocation > --------------------------------------- > > Key: SPARK-12548 > URL: https://issues.apache.org/jira/browse/SPARK-12548 > Project: Spark > Issue Type: Bug > Components: Build > Affects Versions: 1.5.1, 1.5.2 > Reporter: microhello > Assignee: Apache Spark > Labels: patch > > When I use [facebook/swift|https://github.com/facebook/swift] with spark > 1.5.2, throw following exception, so I need add > *com.google.common.base.AbstractIterator* exceptions to Guava relocation . > {code:java} > Exception in thread "main" java.lang.IllegalAccessError: class > com.google.common.base.Optional$1$1 cannot access its superclass > org.spark-project.guava.base.AbstractIterator > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:760) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) > at java.net.URLClassLoader.access$100(URLClassLoader.java:73) > at java.net.URLClassLoader$1.run(URLClassLoader.java:368) > at java.net.URLClassLoader$1.run(URLClassLoader.java:362) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:361) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > at com.google.common.base.Optional$1.iterator(Optional.java:223) > at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:300) > at > com.facebook.swift.codec.metadata.AbstractThriftMetadataBuilder.inferThriftFieldIds(AbstractThriftMetadataBuilder.java:566) > at > com.facebook.swift.codec.metadata.AbstractThriftMetadataBuilder.inferThriftFieldIds(AbstractThriftMetadataBuilder.java:542) > at > com.facebook.swift.codec.metadata.AbstractThriftMetadataBuilder.normalizeThriftFields(AbstractThriftMetadataBuilder.java:483) > at > com.facebook.swift.codec.metadata.ThriftStructMetadataBuilder.<init>(ThriftStructMetadataBuilder.java:48) > at > com.facebook.swift.codec.metadata.ThriftCatalog.extractThriftStructMetadata(ThriftCatalog.java:542) > at > com.facebook.swift.codec.metadata.ThriftCatalog.getThriftStructMetadata(ThriftCatalog.java:408) > at > com.facebook.swift.codec.metadata.ThriftCatalog.getThriftTypeUncached(ThriftCatalog.java:283) > at > com.facebook.swift.codec.metadata.ThriftCatalog.getThriftType(ThriftCatalog.java:215) > at > com.facebook.swift.service.metadata.ThriftMethodMetadata.<init>(ThriftMethodMetadata.java:90) > at > com.facebook.swift.service.metadata.ThriftServiceMetadata.<init>(ThriftServiceMetadata.java:73) > at > com.facebook.swift.service.ThriftServiceProcessor.<init>(ThriftServiceProcessor.java:76) > at > com.facebook.swift.service.ThriftServiceProcessor.<init>(ThriftServiceProcessor.java:65) > {code} -- 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