Github user tdas commented on a diff in the pull request:

    https://github.com/apache/spark/pull/722#discussion_r12630213
  
    --- Diff: 
examples/src/main/scala/org/apache/spark/examples/streaming/CustomReceiver.scala
 ---
    @@ -30,32 +30,27 @@ import org.apache.spark.streaming.receiver.Receiver
      * Custom Receiver that receives data over a socket. Received bytes is 
interpreted as
      * text and \n delimited lines are considered as records. They are then 
counted and printed.
      *
    - * Usage: CustomReceiver <master> <hostname> <port>
    - *   <master> is the Spark master URL. In local mode, <master> should be 
'local[n]' with n > 1.
    - *   <hostname> and <port> of the TCP server that Spark Streaming would 
connect to receive data.
    - *
      * To run this on your local machine, you need to first run a Netcat server
      *    `$ nc -lk 9999`
      * and then run the example
    - *    `$ ./run org.apache.spark.examples.streaming.CustomReceiver local[2] 
localhost 9999`
    + *    `$ bin/run-example 
org.apache.spark.examples.streaming.CustomReceiver localhost 9999`
    --- End diff --
    
    I kept it this way, just in case we ever revert back to the old way. I will 
update the programming guide to specify this


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to