Hi, You need to add spark-* libs to the project (using the Eclipse-specific way). The best bet would be to use maven as the main project management tool and import the project then.
Seen https://cwiki.apache.org/confluence/display/SPARK/Useful+Developer+Tools#UsefulDeveloperTools-Eclipse ? Pozdrawiam, Jacek Laskowski ---- https://medium.com/@jaceklaskowski/ Mastering Apache Spark 2.0 http://bit.ly/mastering-apache-spark Follow me at https://twitter.com/jaceklaskowski On Fri, Aug 12, 2016 at 10:49 AM, subash basnet <yasub...@gmail.com> wrote: > Hello all, > > I am completely new to spark. I downloaded the spark project from github > (https://github.com/apache/spark) and wanted to run the examples. I > successfully ran the maven command: > > build/mvn -DskipTests clean package > > But I am not able to build the spark-examples_2.11 project. There are import > issues in the java files like below: > Eg: The import org.apache.spark.SparkConf cannot be resolved > The import org.apache.spark.api.java.JavaSparkContext cannot be resolved > and so on displayed in eclipse. > > What am I doing wrong to run these examples? > > > Best Regards, > Subash Basnet --------------------------------------------------------------------- To unsubscribe e-mail: user-unsubscr...@spark.apache.org