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

2017-07-29 Thread Remis Haroon (JIRA)

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

Remis Haroon commented on SPARK-21508:
--

[~srowen] , I raised a pull request for this 
https://github.com/apache/spark/pull/18770

> 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
>Priority: Minor
>   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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



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

2017-07-24 Thread Sean Owen (JIRA)

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

Sean Owen commented on SPARK-21508:
---

You don't need it assigned, not until you resolve it.

> 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
>Priority: Minor
>   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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



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

2017-07-23 Thread Remis Haroon (JIRA)

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

Remis Haroon commented on SPARK-21508:
--

Thankyou [~srowen] , I will raise the PR.
I am new here, how can I assign this ticket to my name? does is require any 
user privileges?

> 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
>Priority: Minor
>   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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



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

2017-07-22 Thread Sean Owen (JIRA)

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

Sean Owen commented on SPARK-21508:
---

Seems OK [~remisharoon], you can make a pull request

> 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
>Priority: Minor
>   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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org