spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Intellij IDEA 14 env setup; NoClassDefFoundError when run examples
Date Sun, 01 Feb 2015 04:43:07 GMT
Have you read / followed this ?

https://cwiki.apache.org/confluence/display/SPARK
/Useful+Developer+Tools#UsefulDeveloperTools-BuildingSparkinIntelliJIDEA

Cheers

On Sat, Jan 31, 2015 at 8:01 PM, Yafeng Guo <daniel.yafeng.guo@gmail.com>
wrote:

> Hi,
>
> I'm setting up a dev environment with Intellij IDEA 14. I selected profile
> scala-2.10, maven-3, hadoop 2.4, hive, hive 0.13.1. The compilation passed.
> But when I try to run LogQuery in examples, I met below issue:
>
> Connected to the target VM, address: '127.0.0.1:37182', transport:
> 'socket'
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/spark/SparkConf
> at org.apache.spark.examples.LogQuery$.main(LogQuery.scala:46)
> at org.apache.spark.examples.LogQuery.main(LogQuery.scala)
> Caused by: java.lang.ClassNotFoundException: org.apache.spark.SparkConf
> 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)
> ... 2 more
> Disconnected from the target VM, address: '127.0.0.1:37182', transport:
> 'socket'
>
> anyone met similar issue before? Thanks a lot
>
> Regards,
> Ya-Feng
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message