Using spark streaming I am watching for the files in HDFS using textFileStream/fileStream
methods, how do we get the fileNames
which are read by these methods?
I used textFileStream
which has file contents in JavaDStream
and I got no success with fileStream
as it is throwing me a compilation error with spark version 1.3.1.
Can someone please tell me if we have an API function or any other way to get the file names that these streaming methods read?
Thanks Lokesh