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 <spanayo...@msn.com> 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?
>
>
>
> Thanks,
>
>
> *Stefan Panayotov, PhD **email*: spanayo...@msn.com
> spanayo...@outlook.com
> spanayo...@comcast.net
>
>

Reply via email to