File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
hbase-server/src/main/resources/hbase-webapps/master Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 191
191
}
192
192
193
193
% > Split request accepted. <%
194
+ } else if (action. equals(" major compact" )) {
195
+ if (key != null && key. length() > 0 ) {
196
+ List<RegionInfo > regions = admin. getRegions(TableName . valueOf(fqtn)). get();
197
+ byte [] row = Bytes . toBytes(key);
198
+ for (RegionInfo region : regions) {
199
+ if (region. containsRow(row)) {
200
+ admin. majorCompactRegion(region. getRegionName());
201
+ }
202
+ }
203
+ } else {
204
+ admin. majorCompact(TableName . valueOf(fqtn));
205
+ }
206
+ % > major Compact request accepted. <%
194
207
} else if (action. equals(" compact" )) {
195
208
if (key != null && key. length() > 0 ) {
196
209
List<RegionInfo > regions = admin. getRegions(TableName . valueOf(fqtn)). get();
1187
1200
<p >
1188
1201
<center >
1189
1202
<table class =" table" style =" border : 0 ;" width =" 95%" >
1203
+ <tr >
1204
+ <form method =" get" >
1205
+ <input type =" hidden" name =" action" value =" major compact" />
1206
+ <input type =" hidden" name =" name" value =" <%= escaped_fqtn % >" />
1207
+ <td class =" centered" >
1208
+ <input style =" font-size : 12pt ; width : 10em " type =" submit" value =" Major Compact" class =" btn" />
1209
+ </td >
1210
+ <td style =" text-align : center ;" >
1211
+ <input type =" text" name =" key" size =" 40" placeholder =" Row Key (optional)" />
1212
+ </td >
1213
+ <td >
1214
+ This action will force a major compaction of all regions of the table, or,
1215
+ if a key is supplied, only the region major containing the
1216
+ given key.
1217
+ </td >
1218
+ </form >
1219
+ </tr >
1190
1220
<tr >
1191
1221
<form method =" get" >
1192
1222
<input type =" hidden" name =" action" value =" compact" />
You can’t perform that action at this time.
0 commit comments