spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yafeng Guo <daniel.yafeng....@gmail.com>
Subject Intellij IDEA 14 env setup; NoClassDefFoundError when run examples
Date Sun, 01 Feb 2015 04:01:06 GMT
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