Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-22409 update branch-1 ref guide for Hadoop, Java, and HBase version support#239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
9cdd2af7d96b7ee4a911b162f544e91e97559925b7c0f0283d31062b4082461fa6be266b65686003568e9ac71e00014bb86d955d1017a574df602f6b1ad70d0ec9f32a88563dc8178e0d94051f3a3f46867426ef65494ae429d4ededf99bbFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -44,13 +44,16 @@ Some commands, such as `version`, `pe`, `ltt`, `clean`, are not available in pre | ||
| $ bin/hbase | ||
| Usage: hbase [<options>] <command> [<args>] | ||
| Options: | ||
| --config DIR Configuration direction to use. Default: ./conf | ||
| --hosts HOSTS Override the list in 'regionservers' file | ||
| --config DIR Configuration direction to use. Default: ./conf | ||
| --hosts HOSTS Override the list in 'regionservers' file | ||
| --auth-as-server Authenticate to ZooKeeper using servers configuration | ||
| Commands: | ||
| Some commands take arguments. Pass no args or -h for usage. | ||
| shell Run the HBase shell | ||
| hbck Run the hbase 'fsck' tool | ||
| snapshot Tool for managing snapshots | ||
| snapshotinfo Tool for dumping snapshot information | ||
| wal Write-ahead-log analyzer | ||
| hfile Store file analyzer | ||
| zkcli Run the ZooKeeper shell | ||
| @@ -64,8 +67,10 @@ Some commands take arguments. Pass no args or -h for usage. | ||
| clean Run the HBase clean up script | ||
| classpath Dump hbase CLASSPATH | ||
| mapredcp Dump CLASSPATH entries required by mapreduce | ||
busbey marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| completebulkload Run LoadIncrementalHFiles tool | ||
| pe Run PerformanceEvaluation | ||
| ltt Run LoadTestTool | ||
| canary Run the Canary tool | ||
| version Print the version | ||
| CLASSNAME Run the class named CLASSNAME | ||
| ---- | ||
| @@ -81,20 +86,29 @@ To see the usage, use the `--help` parameter. | ||
| ---- | ||
| $ ${HBASE_HOME}/bin/hbase canary -help | ||
| Usage: bin/hbase org.apache.hadoop.hbase.tool.Canary [opts] [table1 [table2]...] | [regionserver1 [regionserver2]..] | ||
| Usage: hbase org.apache.hadoop.hbase.tool.Canary [opts] [table1 [table2]...] | [regionserver1 [regionserver2]..] | ||
| where [opts] are: | ||
| -help Show this help and exit. | ||
| -regionserver replace the table argument to regionserver, | ||
| which means to enable regionserver mode | ||
| -allRegions Tries all regions on a regionserver, | ||
| only works in regionserver mode. | ||
| -zookeeper Tries to grab zookeeper.znode.parent | ||
| on each zookeeper instance | ||
| -daemon Continuous check at defined intervals. | ||
busbey marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| -permittedZookeeperFailures <N> Ignore first N failures when attempting to | ||
| connect to individual zookeeper nodes in the ensemble | ||
| -interval <N> Interval between checks (sec) | ||
| -e Use region/regionserver as regular expression | ||
| which means the region/regionserver is regular expression pattern | ||
| -e Use table/regionserver as regular expression | ||
| which means the table/regionserver is regular expression pattern | ||
| -f <B> stop whole program if first error occurs, default is true | ||
| -t <N> timeout for a check, default is 600000 (milliseconds) | ||
| -t <N> timeout for a check, default is 600000 (millisecs) | ||
| -writeTableTimeout <N> write timeout for the writeTable, default is 600000 (millisecs) | ||
| -readTableTimeouts <tableName>=<read timeout>,<tableName>=<read timeout>, ... comma-separated list of read timeouts per table (no spaces), default is 600000 (millisecs) | ||
| -writeSniffing enable the write sniffing in canary | ||
| -treatFailureAsError treats read / write failure as error | ||
| -writeTable The table used for write sniffing. Default is hbase:canary | ||
| -Dhbase.canary.read.raw.enabled=<true/false> Use this flag to enable or disable raw scan during read canary test Default is false and raw is not enabled during scan | ||
| -D<configProperty>=<value> assigning or override the configuration params | ||
| ---- | ||
| @@ -107,6 +121,7 @@ private static final int USAGE_EXIT_CODE = 1; | ||
| private static final int INIT_ERROR_EXIT_CODE = 2; | ||
| private static final int TIMEOUT_ERROR_EXIT_CODE = 3; | ||
| private static final int ERROR_EXIT_CODE = 4; | ||
| private static final int FAILURE_EXIT_CODE = 5; | ||
| ---- | ||
| Here are some examples based on the following given case. | ||
| @@ -673,27 +688,20 @@ Options: | ||
| === `hbase pe` | ||
| The `hbase pe` command is a shortcut provided to run the `org.apache.hadoop.hbase.PerformanceEvaluation` tool, which is used for testing. | ||
| The `hbase pe` command was introduced in HBase 0.98.4. | ||
| The `hbase pe` command runs the PerformanceEvaluation tool, which is used for testing. | ||
| The PerformanceEvaluation tool accepts many different options and commands. | ||
| For usage instructions, run the command with no options. | ||
| To run PerformanceEvaluation prior to HBase 0.98.4, issue the command `hbase org.apache.hadoop.hbase.PerformanceEvaluation`. | ||
| The PerformanceEvaluation tool has received many updates in recent HBase releases, including support for namespaces, support for tags, cell-level ACLs and visibility labels, multiget support for RPC calls, increased sampling sizes, an option to randomly sleep during testing, and ability to "warm up" the cluster before testing starts. | ||
| === `hbase ltt` | ||
| The `hbase ltt` command is a shortcut provided to run the `org.apache.hadoop.hbase.util.LoadTestTool` utility, which is used for testing. | ||
| The `hbase ltt` command was introduced in HBase 0.98.4. | ||
| The `hbase ltt` command runs the LoadTestTool utility, which is used for testing. | ||
| You must specify either `-write` or `-update-read` as the first option. | ||
| You must specify one of `-write`, `-update`, or `-read` as the first option. | ||
| For general usage instructions, pass the `-h` option. | ||
| To run LoadTestTool prior to HBase 0.98.4, issue the command +hbase | ||
| org.apache.hadoop.hbase.util.LoadTestTool+. | ||
| The LoadTestTool has received many updates in recent HBase releases, including support for namespaces, support for tags, cell-level ACLS and visibility labels, testing security-related features, ability to specify the number of regions per server, tests for multi-get RPC calls, and tests relating to replication. | ||
| [[ops.regionmgt]] | ||
| @@ -756,7 +764,7 @@ See <<lb,lb>> below. | ||
| [NOTE] | ||
| ==== | ||
| In hbase-2.0, in the bin directory, we added a script named _considerAsDead.sh_ that can be used to kill a regionserver. | ||
| Hardware issues could be detected by specialized monitoring tools before the zookeeper timeout has expired. _considerAsDead.sh_ is a simple function to mark a RegionServer as dead. | ||
| Hardware issues could be detected by specialized monitoring tools before the zookeeper timeout has expired. _considerAsDead.sh_ is a simple function to mark a RegionServer as dead. | ||
| It deletes all the znodes of the server, starting the recovery process. | ||
| Plug in the script into your monitoring/fault detection tools to initiate faster failover. | ||
| Be careful how you use this disruptive tool. | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.