我在Zeppelin中创建了一个新的Notebook,并且能够导入以下类:
import org.apache.spark.mllib.linalg.{Vector, Vectors}
import org.apache.spark.mllib.util.LinearDataGenerator
import org.apache.spark.streaming.dstream.DStream
import org.apache.spark.streaming.StreamingContext
然而,Zeppelin无法找到这两类Spark:
import org.apache.spark.streaming.TestSuiteBase
import org.scalatest.BeforeAndAfter
如何解决此问题?