[ https://issues.apache.org/jira/browse/SPARK-19524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15861600#comment-15861600 ]
Egor Pahomov commented on SPARK-19524: -------------------------------------- [~sowen], Folder, which connect my streaming to: {code} [egor@hadoop2 test]$ date Fri Feb 10 09:51:16 PST 2017 [egor@hadoop2 test]$ ls -al total 445746 drwxr-xr-x 13 egor egor 4096 Feb 8 14:27 . drwxr-xr-x 43 egor egor 4096 Feb 9 01:38 .. -rw-r--r-- 1 root jobexecutors 241661 Dec 1 18:03 clog.1480636981858.fl.log.gz -rw-r--r-- 1 egor egor 387024 Feb 1 17:26 clog.1485986399693.fl.log.gz -rw-r--r-- 1 egor egor 128983477 Feb 8 12:43 clog.2017-01-03.1483431170180.9861.log.gz -rw-r--r-- 1 root jobexecutors 67422481 Dec 1 00:01 clog.new-1.1480579205495.fl.log.gz -rw-r--r-- 1 egor egor 287279 Feb 8 13:21 data2.log.gz -rw-r--r-- 1 egor egor 128983477 Feb 8 14:10 data300.log.gz -rw-r--r-- 1 egor egor 128983477 Feb 8 14:20 data365.log.gz -rw-r--r-- 1 egor egor 287279 Feb 8 13:23 data3.log.gz -rw-r--r-- 1 egor egor 287279 Feb 8 13:45 data4.log.gz -rwxrwxr-x 1 egor egor 287279 Feb 8 14:04 data5.log.gz -rwxrwxr-x 1 egor egor 287279 Feb 8 14:08 data6.log.gz {code} They way I connect: {code} def f(path:Path): Boolean = { !path.getName.contains("tmp") } val client_log_d_stream = ssc.fileStream[LongWritable, Text, TextInputFormat](input_folder, f _ , newFilesOnly = false) {code} Nothing is processed. Than I add file to directory and it processes it. But not the old ones > newFilesOnly does not work according to docs. > ---------------------------------------------- > > Key: SPARK-19524 > URL: https://issues.apache.org/jira/browse/SPARK-19524 > Project: Spark > Issue Type: Bug > Components: DStreams > Affects Versions: 2.0.2 > Reporter: Egor Pahomov > > Docs says: > newFilesOnly > Should process only new files and ignore existing files in the directory > It's not working. > http://stackoverflow.com/questions/29852249/how-spark-streaming-identifies-new-files > says, that it shouldn't work as expected. > https://github.com/apache/spark/blob/master/streaming/src/main/scala/org/apache/spark/streaming/dstream/FileInputDStream.scala > not clear at all in terms, what code tries to do -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org