Object spark is not a member of package org
11,256
I was receiving the same compilation error (on my Mac) with IntelliJ whereas sbt compile
executed successfully. The following steps solved my problem:
- sbt clean
- sbt gen-idea (to rebuild IntelliJ project files)
- quit and restart IntelliJ
I hope this helps.
Author by
Adham
Updated on June 14, 2022Comments
-
Adham almost 2 years
When importing the following in Eclipse Scala-IDE
import org.apache.spark.SparkContext import org.apache.spark.SparkContext._
I get this error:
Object spark is not a member of package org
I installed the sbt-0.13.9.msi
What else should I do?
build.sbt
name := "scala-spark-app" version := "1.0" scalaVersion := "2.10.4" libraryDependencies += "org.apache.spark" %% "spark-core" % "1.5.2"
-
javaPlease42 over 6 yearsTHis question is for Eclipse Scala-IDE and not IntelliJ