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 2015/01/14 10:32:35 UTC

[jira] [Updated] (SPARK-3276) Provide a API to specify whether the old files need to be ignored in file input text DStream

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

Sean Owen updated SPARK-3276:
-----------------------------
             Priority: Minor  (was: Major)
    Affects Version/s:     (was: 1.0.2)
                       1.2.0
           Issue Type: Improvement  (was: Bug)

So is the request here to just add this flag to the textFileStream method too? I agree that this sounds like the goal and you can accomplish this right now with a line of code in the current API too.

> Provide a API to specify whether the old files need to be ignored in file input text DStream
> --------------------------------------------------------------------------------------------
>
>                 Key: SPARK-3276
>                 URL: https://issues.apache.org/jira/browse/SPARK-3276
>             Project: Spark
>          Issue Type: Improvement
>          Components: Streaming
>    Affects Versions: 1.2.0
>            Reporter: Jack Hu
>            Priority: Minor
>
> Currently, only one API called textFileStream in StreamingContext to specify the text file dstream, which ignores the old files always. On some times, the old files is still useful.
> Need a API to let user choose whether the old files need to be ingored or not .
> The API currently in StreamingContext:
> def textFileStream(directory: String): DStream[String] = {
>     fileStream[LongWritable, Text, TextInputFormat](directory).map(_._2.toString)
>   }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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