2017-07-16 72 views
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 

請參考附件截圖。 image

回答

0

你需要做這樣的事情:

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