title: GraphFrame: missing or invalid dependency detected while loading class file
body: <p>I am trying to create a graph using spark graphframe</p>
  
  <p>here is the code: </p>
  
  <pre><code>import org.graphframes._
  
  // Node DataFrames
  val v = sqlContext.createDataFrame(List(
    ("a", "Alice", 34),
    ("b", "Bob", 36),
    ("c", "Charlie", 30),
    ("d", "David", 29),
    ("e", "Esther", 32),
    ("f", "Fanny", 36),
    ("g", "Gabby", 60)
  )).toDF("id", "name", "age")
  
  // Edge DataFrame
  val e = sqlContext.createDataFrame(List(
    ("a", "b", "friend"),
    ("b", "c", "follow"),
    ("c", "b", "follow"),
    ("f", "c", "follow"),
    ("e", "f", "follow"),
    ("e", "d", "friend"),
    ("d", "a", "friend"),
    ("a", "e", "friend")
  )).toDF("src", "dst", "relationship")
  
  // Create a GraphFrame
  val g = GraphFrame(v, e)
  </code></pre>
  
  <p>But this is the error I am getting:</p>
  
  <blockquote>
    <p>error: missing or invalid dependency detected while loading class file
    'GraphFrame.class'. Could not access type Logging in package
    org.apache.spark, because it (or its dependencies) are missing. Check
    your build definition for missing or conflicting dependencies. (Re-run
    with <code>-Ylog-classpath</code> to see the problematic classpath.) A full
    rebuild may help if 'GraphFrame.class' was compiled against an
    incompatible version of org.apache.spark.</p>
  </blockquote>
  
  <p>I am using Apache Spark 2.1 and Scala 2.11. Any suggestion what can be the issue?</p>