I have an application, which sends data to AWS Kinesis Firehose and this writes the data into my S3 bucket. Firehose uses \"yyyy/MM/dd/HH\" format to w
There is a much simpler solution. If you look at the DataFrameReader API you'll notice that there is a .json(paths: String*)
method. Just build a collection of the paths you want, with globs of not, as you prefer, and then call the method, e.g.,
val paths: Seq[String] = ...
val df = sqlContext.read.json(paths: _*)