来自pyspark.streaming import StreamingContext ImportError:没有名为streaming的模块

时间:2015-02-28 13:56:25

标签: apache-spark pyspark

来自pyspark.streaming导入StreamingContext ImportError:没有名为streaming

的模块

当我尝试通过pyspark使用流媒体时,会出现此错误。我成功地通过scala使用流式传输。

导入org.apache.spark.streaming ._

不会出错,我可以运行该程序。

我在http://hortonworks.com/hadoop-tutorial/using-apache-spark-hdp/

上运行火花

1 个答案:

答案 0 :(得分:0)

Spark Streaming的Python API是最新版本,它已在1.2版本中添加(阅读changelog)。检查您使用的是哪个版本?