spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheng Lian <>
Subject Re: Got error β€œ"java.lang.IllegalAccessError" when using HiveContext in Spark shell on AWS
Date Thu, 07 Aug 2014 10:56:46 GMT
Hey Zhun,

Thanks for the detailed problem description. Please see my comments inlined

On Thu, Aug 7, 2014 at 6:18 PM, Zhun Shen <> wrote:

Caused by: java.lang.IllegalAccessError: tried to access method
> from class com.jolbox.bonecp.BoneCPDataSource
This line indicates that accessing MapMaker.makeComputingMap via Java
reflection fails. The version of Guava we used in Spark SQL (as a
transitive dependency) is 14.0.1. In this version, MapMaker.makeComputingMap
is still public
But in newer versions (say 15.0), it’s no longer public

So my guess is that, a newer version of the Guava library in your classpath
shadows the version Spark SQL uses somehow. A quick and dirty fix to see
whether this is true is try putting Guava 14.0.1 jar file at the beginning
of your classpath and see whether things work.

> com.jolbox.bonecp.BoneCPDataSource.<init>(
>         at
>         at
>         at
>         at
>         ... 119 more
>  ​

View raw message