Sample Header Ad - 728x90

How to move the last n files in hdfs

0 votes
0 answers
132 views
I have a folder in HDFS contains 830000 files, and I want to move the last "8797" files enter code here to another folder in HDFS? I tried using xargs but didn't work fine. Any other ideas? Here is the exact split point between all files. I want to move files after "2021-03-09 15:15" ` -rw-rw-r--+ 3 talend_user talend_group 102013 2021-03-09 15:14 /user/file_1 ` ` -rw-rw-r--+ 3 talend_user talend_group 9360 2021-03-09 15:15 /user/file_2 `
Asked by Omar AlSaghier (101 rep)
Jun 20, 2021, 11:56 AM
Last activity: Jun 20, 2021, 12:52 PM