Im trying to write an HDFS script that groups folder bymonth
Whats stored:2016-01-01 4MB2016-01-05 7MB2016-01-11 9MB2016-02-15 420MB2016-02-22 100MB2016-03-02 12MB
2016-03-05 50MB
2016-03-07 200MB
2016-03-22 50MB
result Needed:
2016-01 20MB
2016-02 520MB
2016-03 312MB
What I have so far:
hdfs dfs -du -h /home/folderwithdata
I think you need to add something like this but I quite get itfor hdfs…
https://unix.stackexchange.com/questions/317256/can-i-get-a-du-grouped-by-month
Answer