Created on 05-02-2016 09:06 AM - edited 09-16-2022 03:16 AM
How to list hdfs files according to timestamp? just like ls -lt in unix.
Created 05-02-2016 01:11 PM
I found the answer myself. Using below command I can achieve ls -lt output in hdfs.
hdfs dfs -ls /test | sort -k6,7
Created 05-02-2016 01:11 PM
I found the answer myself. Using below command I can achieve ls -lt output in hdfs.
hdfs dfs -ls /test | sort -k6,7
Created 05-03-2016 07:07 AM
I'm happy to see you found it. Thanks for sharing. 🙂