包GraphFrames Spark2.0
问题描述:
我有spark 2.0斯卡拉2.11.8,我想包括图框架包。 我输入阶壳以下:包GraphFrames Spark2.0
<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
答
你需要做这样的事情:
$SPARK_HOME/bin/spark-shell --packages graphframes:graphframes:0.5.0-spark2.1-s_2.11