public class UpgradeTo96
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
Modifier and Type | Field and Description |
---|---|
private boolean |
checkForHFileV1
whether to check for HFileV1
|
private String |
dirToCheckForHFileV1
Path of directory to check for HFileV1
|
private static org.apache.commons.logging.Log |
LOG |
private org.apache.commons.cli.Options |
options |
private boolean |
upgrade
whether to do overall upgrade (namespace and znodes)
|
Constructor and Description |
---|
UpgradeTo96() |
Modifier and Type | Method and Description |
---|---|
private int |
doHFileV1Check() |
private void |
doOfflineLogSplitting()
Performs log splitting for all regionserver directories.
|
private void |
executeTool(String toolMessage,
org.apache.hadoop.util.Tool tool,
String[] args,
int expectedResult) |
private int |
executeUpgrade()
Executes the upgrade process.
|
private boolean |
isAnyHBaseProcessAlive() |
static void |
main(String[] args) |
private boolean |
parseOption(String[] args) |
private void |
printUsage() |
int |
run(String[] args) |
private void |
setOptions() |
private static final org.apache.commons.logging.Log LOG
private org.apache.commons.cli.Options options
private boolean upgrade
private boolean checkForHFileV1
private String dirToCheckForHFileV1
private void setOptions()
private boolean parseOption(String[] args) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
private void printUsage()
public int run(String[] args) throws Exception
run
in interface org.apache.hadoop.util.Tool
Exception
private boolean isAnyHBaseProcessAlive() throws IOException
IOException
private int executeUpgrade() throws Exception
Exception
private void executeTool(String toolMessage, org.apache.hadoop.util.Tool tool, String[] args, int expectedResult) throws Exception
Exception
private void doOfflineLogSplitting() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.