spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Boesch <java...@gmail.com>
Subject Re: NoClassDefFoundError on ThreadFactoryBuilder in Intellij
Date Tue, 28 Oct 2014 09:31:15 GMT
I had an offline with Akhil, but this issue is still not resolved.

2014-10-24 0:18 GMT-07:00 Akhil Das <akhil@sigmoidanalytics.com>:

> Make sure the guava jar
> <http://mvnrepository.com/artifact/com.google.guava/guava/12.0> is
> present in the classpath.
>
> Thanks
> Best Regards
>
> On Thu, Oct 23, 2014 at 2:13 PM, Stephen Boesch <javadba@gmail.com> wrote:
>
>> After having checked out from master/head the following error occurs when
>> attempting to run any test in Intellij
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> com/google/common/util/concurrent/ThreadFactoryBuilder
>> at org.apache.spark.util.Utils$.<init>(Utils.scala:648)
>>
>>
>> There appears to be a related issue/JIRA:
>>
>>
>> https://issues.apache.org/jira/browse/SPARK-3217
>>
>>
>> But the conditions described do not apply in my case:
>>
>>  Did you by any chance do one of the following:
>>
>>    - forget to "clean" after pulling that change
>>    - mix sbt and mvn built artifacts in the same build
>>    - set SPARK_PREPEND_CLASSES
>>
>>
>> For reference here is the full stacktrace:
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> com/google/common/util/concurrent/ThreadFactoryBuilder
>> at org.apache.spark.util.Utils$.<init>(Utils.scala:648)
>> at org.apache.spark.util.Utils$.<clinit>(Utils.scala)
>> at org.apache.spark.SparkContext.<init>(SparkContext.scala:179)
>> at org.apache.spark.SparkContext.<init>(SparkContext.scala:119)
>> at org.apache.spark.SparkContext.<init>(SparkContext.scala:134)
>> at
>> org.apache.spark.api.java.JavaSparkContext.<init>(JavaSparkContext.scala:62)
>> at
>> org.apache.spark.sql.hbase.JavaHBaseSQLContext$.main(JavaHBaseSQLContext.scala:45)
>> at
>> org.apache.spark.sql.hbase.JavaHBaseSQLContext.main(JavaHBaseSQLContext.scala)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
>> Caused by: java.lang.ClassNotFoundException:
>> com.google.common.util.concurrent.ThreadFactoryBuilder
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>> ... 13 more
>> Exception in thread "delete Spark temp dirs"
>> java.lang.NoClassDefFoundError: Could not initialize class
>> org.apache.spark.util.Utils$
>> at org.apache.spark.util.Utils$$anon$4.run(Utils.scala:173)
>>
>>
>>
>
>

Mime
View raw message