Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scala QTree不是包com.twitter.algebird的成员_Scala_Twitter_Apache Spark - Fatal编程技术网

Scala QTree不是包com.twitter.algebird的成员

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

我试图在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
我能够像这样成功地导入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。适用于最新版本