[ https://issues.apache.org/jira/browse/HBASE-13012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317503#comment-14317503 ]
Jonathan Hsieh commented on HBASE-13012: ---------------------------------------- If we were to add mob flavored admin commands they would be: {code} // just merge files void compactMob(TableName, byte[]famName) throws IOE // full rewrite of all mobs to eliminate delmob files. void majorCompactMob(TableName, byte[]famName) throws IOE {code} We're getting to the point where we might want to just add one more generic compaction api, and have it use an enum argument so we don't have add others in the future. Maybe we could have a CompactionType enum with MINOR, MAJOR, MOB (merge some mobs, merge delmobs) and MOB_MAJOR (merge all mobs and eliminate delmob files). It could look like this (and default to normal minor compaction): {code} void compact(Tablename tn, byte[] famName, CompactionType ct); {code} Thoughts? I'm interested in other folks' opinions -- [~ramkrishna], [~saint....@gmail.com], [~enis]? > Add a shell to trigger the mob file compactor by commands > --------------------------------------------------------- > > Key: HBASE-13012 > URL: https://issues.apache.org/jira/browse/HBASE-13012 > Project: HBase > Issue Type: Sub-task > Components: regionserver, Scanners > Reporter: Jingcheng Du > Assignee: Jiajia Li > Fix For: hbase-11339 > > > Currently the MobFileCompactor is run by HMaster periodically, we need to add > a shell to trigger the compactor by commands. -- This message was sent by Atlassian JIRA (v6.3.4#6332)