ensure the only one SimpleApp object in your project, also check is there
any copy of SimpleApp.scala.

Normally the  file SimpleApp.scala in src/main/scala or in the project root
folder.


On Sat, Apr 12, 2014 at 11:07 AM, jni2000 <james...@federatedwireless.com>wrote:

> Hi
>
>  I am a new Spark user and try to test run it from scratch. I followed the
> documentation and was able the build the Spark package and run the spark
> shell. However when I move on to building the standalone sample
> "SimpleApp.scala", I see the following errors:
>
> Loading /usr/share/sbt/bin/sbt-launch-lib.bash
> [info] Set current project to Simple Project (in build
> file:/home/james/workplace/framework/3rd-party/spark-0.9.0/test-project/)
> [info] Compiling 1 Scala source and 1 Java source to
>
> /home/james/workplace/framework/3rd-party/spark-0.9.0/test-project/target/scala-2.10/classes...
> [error]
>
> /home/james/workplace/framework/3rd-party/spark-0.9.0/test-project/src/main/scala/SimpleApp.scala:5:
> SimpleApp is already defined as object SimpleApp
> [error] object SimpleApp {
> [error]        ^
> [error] one error found
> [error] (compile:compile) Compilation failed
> [error] Total time: 2 s, completed Apr 12, 2014 1:12:43 AM
>
> Can some one help me understand what could be wrong?
>
> Thanks a lot.
>
> James
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/Compile-SimpleApp-scala-encountered-error-please-can-any-one-help-tp4160.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>

Reply via email to