Search code examples
scalaapache-sparkspark-graphx

How to convince Scala IDE to recognize org.apache.spark.graphx._ package?


When I try to include GraphX into my work, it seems I'm doing something wrong because Scala IDE doesn't recognize org.apache.spark.graphx._ or anything related to graphs (!)

Did I miss something when I first created my project? Do I need to include additional libraries (how?)?


Solution

  • You need to add the GraphX dependency to your pom file.

    <dependency>
      <groupId>org.apache.spark</groupId>
      <artifactId>spark-graphx_2.10</artifactId>
      <version>1.6.1</version>
    </dependency>