Im Trying Write Hdfs Script Groups Folder Month Whats Stored 2016 01 01 4mb2016 01 05 7mb2 Q37209345

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


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.