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

    https://github.com/apache/spark/pull/2765#discussion_r25066003
  
    --- Diff: docs/streaming-programming-guide.md ---
    @@ -641,17 +641,17 @@ methods for creating DStreams from files and Akka 
actors as input sources.
     
         <div class="codetabs">
         <div data-lang="scala" markdown="1">
    -        streamingContext.fileStream[KeyClass, ValueClass, 
InputFormatClass](dataDirectory)
    +        streamingContext.fileStream[KeyClass, ValueClass, 
InputFormatClass](dataDirectory, depth)
         </div>
         <div data-lang="java" markdown="1">
    -           streamingContext.fileStream<KeyClass, ValueClass, 
InputFormatClass>(dataDirectory);
    +           streamingContext.fileStream<KeyClass, ValueClass, 
InputFormatClass>(dataDirectory, depth);
         </div>
         <div data-lang="python" markdown="1">
    -           streamingContext.textFileStream(dataDirectory)
    +           streamingContext.textFileStream(dataDirectory, depth)
         </div>
         </div>
     
    -   Spark Streaming will monitor the directory `dataDirectory` and process 
any files created in that directory (files written in nested directories not 
supported). Note that
    +   Spark Streaming will monitor the directory `dataDirectory`, the `depth` 
is default 1 and process any files created in that directory. If supported 
files written in nested directories, set the `depth` is greater than 1. Note 
that
    --- End diff --
    
    I think this needs to be rewritten, perhaps like:
    
    ```
    Spark Streaming will monitor the directory `dataDirectory` and process any 
files created in that directory (files written in nested directories not 
supported). It can also monitor files in subdirectories by setting the optional 
`depth` parameter to a value greater than 1.
    ```


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to