包GraphFrames Spark2.0

时间:2017-07-16 22:40:11

标签: apache-spark-2.0 scala-2.11 graphframes

我有火花2.0 Scala 2.11.8,我试图包括图形框架包。     我在scala shell中键入以下内容:

<spark-shell --packages graphframes:graphframes:0.1.0-spark1.6>

But still I got the error message:

scala> import org.graphframes._
<console>:23: error: object graph frames is not a member of package org
       import org.graphframes._
                  ^

scala> import org.graphframes.GrahFrame
<console>:23: error: object graphframes is not a member of package org
       import org.graphframes.GrahFrame

请参阅随附的截图。 image

1 个答案:

答案 0 :(得分:0)

你需要做这样的事情:

$SPARK_HOME/bin/spark-shell --packages graphframes:graphframes:0.5.0-spark2.1-s_2.11