Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6626

TwitterUtils.createStream documentation error

    XMLWordPrintableJSON

Details

    Description

      At http://spark.apache.org/docs/1.3.0/streaming-programming-guide.html#input-dstreams-and-receivers, under 'Advanced Sources', the documentation provides the following call for Scala:

      TwitterUtils.createStream(ssc)

      However, with only one parameter to this method it appears a jssc object is required, not a ssc object: http://spark.apache.org/docs/1.3.0/api/java/index.html?org/apache/spark/streaming/twitter/TwitterUtils.html

      To make the above call work one must instead provide an option argument, for example:

      TwitterUtils.createStream(ssc, None)

      Attachments

        Activity

          People

            JaysonSunshine Jayson Sunshine
            JaysonSunshine Jayson Sunshine
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified