@InterfaceAudience.LimitedPrivate(value="Tools") public class Merge extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG |
private HRegionInfo |
mergeInfo |
private byte[] |
region1 |
private byte[] |
region2 |
private org.apache.hadoop.fs.Path |
rootdir |
private TableName |
tableName |
private MetaUtils |
utils |
Constructor and Description |
---|
Merge()
default constructor
|
Merge(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
(package private) HRegionInfo |
getMergedHRegionInfo() |
static void |
main(String[] args) |
private HRegion |
merge(HTableDescriptor htd,
HRegion meta,
HRegionInfo info1,
HRegionInfo info2) |
private void |
mergeTwoRegions() |
private boolean |
notInTable(TableName tn,
byte[] rn) |
private int |
parseArgs(String[] args) |
private void |
removeRegionFromMeta(HRegion meta,
HRegionInfo regioninfo) |
int |
run(String[] args) |
private void |
usage() |
private static final org.apache.commons.logging.Log LOG
private org.apache.hadoop.fs.Path rootdir
private volatile MetaUtils utils
private TableName tableName
private volatile byte[] region1
private volatile byte[] region2
private volatile HRegionInfo mergeInfo
public Merge()
public Merge(org.apache.hadoop.conf.Configuration conf)
conf
- configurationpublic int run(String[] args) throws Exception
run
in interface org.apache.hadoop.util.Tool
Exception
HRegionInfo getMergedHRegionInfo()
private void mergeTwoRegions() throws IOException
IOException
private HRegion merge(HTableDescriptor htd, HRegion meta, HRegionInfo info1, HRegionInfo info2) throws IOException
IOException
private void removeRegionFromMeta(HRegion meta, HRegionInfo regioninfo) throws IOException
IOException
private int parseArgs(String[] args) throws IOException
IOException
private boolean notInTable(TableName tn, byte[] rn)
private void usage()
public static void main(String[] args)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.