I am trying to run a simple scala program in IntelliJ.
My build.sbt looks like this:
name := "UseThis" version := "0.1" scalaVersion := "2.12.4" libraryDependencies += "org.apache.spark" %% "spark-core" % "1.2.0" And my import code looks like this:
package WorkWork.FriendsByAge import com.sun.glass.ui.Window.Level import com.sun.istack.internal.logging.Logger import org.apache.spark._ import org.apache.spark.SparkContext._ import org.apache.log4j._ I don't get why the import fails. It tells me the dependency failed to load or wasn't found, but I put the line in the build.sbt as required. Is there some other step I need to have done? I've installed spark. Is it the version note at the end of the build line? I don't even know how to check what version I have of spark. I'm trying to teach myself Scala (not a noob though, I know Python, R, various flavors of SQL, C#) but my word even setting it up is nigh on impossible, and apparently getting it to even run is too. Any ideas?