Scala QTree不是包com.twitter.algebird的成员
我试图在algebird包中使用QTree和QTreeSemigroup,但无法在spark shell中导入它们 我尝试了两种方法:Scala QTree不是包com.twitter.algebird的成员,scala,twitter,apache-spark,Scala,Twitter,Apache Spark,我试图在algebird包中使用QTree和QTreeSemigroup,但无法在spark shell中导入它们 我尝试了两种方法: spark-shell --jars ~/jars/algebird-core_2.10-0.1.11.jar SPARK_CLASSPATH="~/jars/algebird-core_2.10-0.1.11.jar" spark-shell --jars ~/jars/algebird-core_2.10-0.1.11.jar 我能够像这样成功地导入al
spark-shell --jars ~/jars/algebird-core_2.10-0.1.11.jar
SPARK_CLASSPATH="~/jars/algebird-core_2.10-0.1.11.jar" spark-shell --jars ~/jars/algebird-core_2.10-0.1.11.jar
我能够像这样成功地导入algebird:
import com.twitter.algebird._
但当我尝试导入Qtree时,我发现它们不是algebird包的成员:
scala> import com.twitter.algebird.QTree
<console>:22: error: object QTree is not a member of package com.twitter.algebird
import com.twitter.algebird.QTree
^
scala> import com.twitter.algebird.QTreeSemigroup
<console>:22: error: object QTreeSemigroup is not a member of package com.twitter.algebird
import com.twitter.algebird.QTreeSemigroup
scala>import com.twitter.algebird.QTree
:22:错误:对象QTree不是包com.twitter.algebird的成员
导入com.twitter.algebird.QTree
^
scala>导入com.twitter.algebird.QTreeSemigroup
:22:错误:对象QTreeSemigroup不是包com.twitter.algebird的成员
导入com.twitter.algebird.QTreeSemigroup
什么给了我?!以前有人看到过吗?我发现了,我使用的是旧版本的algebird。适用于最新版本