Spark 2.0.0 twitter streaming driver is no longer available

后端 未结 1 1275
天涯浪人
天涯浪人 2020-12-06 23:06

During migration from spark 1.6.2 to spark 2.0.0 appeared that package org.apache.spark.streaming.twitter has been removed and twitter streaming is no longer available as we

1条回答
  •  萌比男神i
    2020-12-06 23:40

    Twitter (and some other) driver support has been removed in Spark 2.0.

    You can see it in the removal section of the Release Notes:

    Removals

    The following features have been removed in Spark 2.0:

    • Less frequently used streaming connectors, including Twitter, Akka, MQTT, ZeroMQ

    They have been extracted as a separate package under the Bahir Project. The twitter extension, streaming-twitter, can be found via:

    sbt:

    libraryDependencies += "org.apache.bahir" %% "spark-streaming-twitter" % "2.0.0"
    

    Maven:

    
      org.apache.bahir
      spark-streaming-twitter_2.11
      2.0.0-preview
    
    

    More on that (thanks to @IvanShulak) in the Mailing List

    Edit:

    For Spark 2.0.1, use:

    libraryDependencies += "org.apache.bahir" %% "spark-streaming-twitter" % "2.0.1"
    

    0 讨论(0)
提交回复
热议问题