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

    https://github.com/apache/spark/pull/552#discussion_r12355467
  
    --- Diff: 
examples/src/main/scala/org/apache/spark/streaming/examples/StatefulNetworkWordCount.scala
 ---
    @@ -17,29 +17,28 @@
     
     package org.apache.spark.streaming.examples
     
    +import org.apache.spark.SparkConf
     import org.apache.spark.streaming._
     import org.apache.spark.streaming.StreamingContext._
    -// scalastyle:off
    +
     /**
      * Counts words cumulatively in UTF8 encoded, '\n' delimited text received 
from the network every
      * second.
    - * Usage: StatefulNetworkWordCount <master> <hostname> <port>
    - *   <master> is the Spark master URL. In local mode, <master> should be 
'local[n]' with n > 1.
    + * Usage: StatefulNetworkWordCount <hostname> <port>
      *   <hostname> and <port> describe 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
    - *    `$ ./bin/run-example 
org.apache.spark.streaming.examples.StatefulNetworkWordCount local[2] localhost 
9999`
    + *    `$ ./bin/spark-submit examples.jar
    + *    --class org.apache.spark.streaming.examples.StatefulNetworkWordCount 
localhost 9999`
      */
    -// scalastyle:on
     object StatefulNetworkWordCount {
       def main(args: Array[String]) {
    -    if (args.length < 3) {
    -      System.err.println("Usage: StatefulNetworkWordCount <master> 
<hostname> <port>\n" +
    -        "In local mode, <master> should be 'local[n]' with n > 1")
    -      System.exit(1)
    +    if (args.length < 2) {
    +      System.err.println("Usage: StatefulNetworkWordCount <hostname> 
<port>")
    +        System.exit(1)
    --- End diff --
    
    nit: indentation is off


---
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