spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Panayotov <>
Subject RE: import errors with Eclipse Scala
Date Wed, 01 Jul 2015 18:14:41 GMT
Hi Ted,
How can I import the relevant Spark projects into Eclipse?
Do I need to add anything the Java Build Path in the project properties?
Also, I have installed sbt on my machine.
Is there a corresponding sbt command to the maven command below?
Stefan Panayotov, PhD 
Home: 610-355-0919 
Cell: 610-517-5586 

Date: Wed, 1 Jul 2015 10:04:23 -0700
Subject: Re: import errors with Eclipse Scala

Have you imported the relevant Spark projects into Eclipse.
You can run command similar to the following to generate project files for Spark:
mvn clean package -DskipTests eclipse:eclipse

On Wed, Jul 1, 2015 at 9:57 AM, Stefan Panayotov <> wrote:

Hi Team,
Just installed Eclipse with Scala plugin to benefit from IDE environment and I faced the problem
that any import statement gives me an error.
For example:
import org.apache.spark.SparkConf
import org.apache.spark.SparkContext
import org.apache.spark.sql.hive.HiveContext
import org.apache.spark.sql._
import org.json4s._
import org.json4s.JsonDSL._
import org.json4s.jackson.JsonMethods
import org.json4s.jackson.JsonMethods._
All report errors of type:
“object apache is not member of package org” or
“object json4s is not member of package org”
How can I resolve this?

Stefan Panayotov, PhD 

View raw message