You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2017/07/29 12:28:00 UTC

[jira] [Assigned] (SPARK-21508) Documentation on 'Spark Streaming Custom Receivers' has error in example code

     [ https://issues.apache.org/jira/browse/SPARK-21508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen reassigned SPARK-21508:
---------------------------------

    Assignee: Remis Haroon

> Documentation on 'Spark Streaming Custom Receivers' has error in example code
> -----------------------------------------------------------------------------
>
>                 Key: SPARK-21508
>                 URL: https://issues.apache.org/jira/browse/SPARK-21508
>             Project: Spark
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.2.0
>            Reporter: Remis Haroon
>            Assignee: Remis Haroon
>            Priority: Minor
>             Fix For: 2.2.1, 2.3.0
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The example code provided in the documentation on 'Spark Streaming Custom Receivers' has an error.
> https://spark.apache.org/docs/latest/streaming-custom-receivers.html
> {code}
> // Assuming ssc is the StreamingContext
> val customReceiverStream = ssc.receiverStream(new CustomReceiver(host, port))
> val words = lines.flatMap(_.split(" "))
> ...
> {code}
> instead of {code}lines.flatMap(_.split(" ")){code} it should be {code}customReceiverStream.flatMap(_.split(" ")){code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org