I wish to move files in a hadoop dir in a timely manner.
The hadoop dir contains 1000 files with the same extension. I wish to move 100 of them every 10 minutes. I can setup a cron job to move the files every 10 minutes but I don't know how to specify the number of files to be moved.
hdfs dfs -ls /src/ | tail -100 | xargs hdfs dfs -mv {} / dest/
Any command to use?
Thanks in advance.