Using a spark stream I watch files in HDFS using the textFileStream/fileStream , how do we get fileNames that are read by these methods?
I used textFileStream , which has the contents of a file in JavaDStream , and I did not succeed with fileStream as it throws me a compilation error with intrinsically safe version 1.3.1.
Can someone tell me if we have an API function or some other way to get the names of the files that these streaming methods read?
Thanks Lokesh
java apache-spark
Lokesh Kumar P
source share