Apache Zeppelin& Spark Streaming:Twitter示例不起作用

时间:2015-12-15 16:35:24

标签: apache-spark spark-streaming apache-zeppelin

我刚从http://zeppelin-project.org/docs/tutorial/tutorial.html(“流数据教程”部分)将示例项目添加到我的Zeppelin Notebook中。当我运行应用程序时,我得到了异常:

new

也不会使用方法

<console>:67: error: value registerTempTable is not a member of org.apache.spark.rdd.RDD[Tweet]
            rdd.registerTempTable("tweets")

1 个答案:

答案 0 :(得分:2)

因为您需要将RDD转换为DataFrame以应用registerTempTable方法。