0
我想在algebird包中使用QTree和QTreeSemigroup,但無法將它們導入到spark-shell中。QTree不是包的成員com.twitter.algebird
我都嘗試:
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
什麼給??任何人見過這個?