Posts

Showing posts with the label rolling

Using Accumulo To Calculate Seven Day Rolling Average

Using Accumulo To Calculate Seven Day Rolling Average Without commenting on if this is a good idea, let me show how you can use Accumulo to store the seven values needed to perform a rolling average. Log into the shell. Create the table. Then configure iterators to retain seven values instead of just the default single value. Finally insert some values. bin/accumulo shell -u root -p password > createtable rolling rolling> config -t rolling -s table.iterator.scan.vers.opt.maxVersions=7 rolling> config -t rolling -s table.iterator.minc.vers.opt.maxVersions=7 rolling> config -t rolling -s table.iterator.majc.vers.opt.maxVersions=7 rolling> insert 2012.02.20 "" "" 21 rolling> insert 2012.02.20 "" "" 22 rolling> insert 2012.02.20 "" "" 23 rolling> insert 2012.02.20 "" "" 24 rolling> insert 2012.02.20 "" "" 25 rolling> insert 2012.02.20 "" "" ...