Hello, Did you check the following?
http://themodernlife.github.io/scala/spark/hadoop/hdfs/2014/09/28/spark-input-filename/ http://apache-spark-user-list.1001560.n3.nabble.com/access-hdfs-file-name-in-map-td6551.html -- Emre Sevinç On Fri, Feb 6, 2015 at 2:16 AM, Subacini B <subac...@gmail.com> wrote: > Hi All, > > We have filename with timestamp say ABC_1421893256000.txt and the > timestamp needs to be extracted from file name for further processing.Is > there a way to get input file name picked up by spark streaming job? > > Thanks in advance > > Subacini > -- Emre Sevinc