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.ParseExceptionprivate void printUsage()
public int run(String[] args) throws Exception
run in interface org.apache.hadoop.util.ToolExceptionprivate boolean isAnyHBaseProcessAlive()
throws IOException
IOExceptionprivate int executeUpgrade()
throws Exception
Exceptionprivate void executeTool(String toolMessage, org.apache.hadoop.util.Tool tool, String[] args, int expectedResult) throws Exception
Exceptionprivate void doOfflineLogSplitting()
throws Exception
ExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.