- last edited on
i have a dir /automation_test/oozie/output/Bigdata_Counts/.i have multiple files in this dir.I want to read only latest file from this directory
Please elaborate your question else the simplest way to get the latest file in Linux
$ ls -lrt /automation_test/oozie/output/Bigdata_Counts/
But I guess you want to do that programmatically?
I want latest file from hdfs dir.I am using below programm,but it get me all files into dataframe.I want to filter latest file and read only latest file.I am using scala