How to create and upload multiple s3 file paths in scala so that I can use:
sqlContext.read.json ("s3://..../*/*/*")
I know I can use wildcards to read multiple files, but is there any way that I can generate the path? For example, my fIle structure looks like this: BucketName / year / month / day / files
s3:
These files are all jsons. The problem is that I only need to download the spatial duration of the files, for example. Say 16 days, then I need to upload files to start the day (October 16): from 1 to 16.
With a 28-day duration for the same start day, I would like to read September 18th
Can someone tell me any ways to do this?
source share