HBASE-1178 Add shutdown command to shell
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@740265 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a143336404
commit
80eae9d2af
|
@ -37,6 +37,7 @@ Release 0.20.0 - Unreleased
|
||||||
HBASE-1166 saveVersion.sh doesn't work with git (Nitay Joffe via Stack)
|
HBASE-1166 saveVersion.sh doesn't work with git (Nitay Joffe via Stack)
|
||||||
HBASE-1167 JSP doesn't work in a git checkout (Nitay Joffe via Andrew
|
HBASE-1167 JSP doesn't work in a git checkout (Nitay Joffe via Andrew
|
||||||
Purtell)
|
Purtell)
|
||||||
|
HBASE-1178 Add shutdown command to shell
|
||||||
|
|
||||||
Release 0.19.0 - 01/21/2009
|
Release 0.19.0 - 01/21/2009
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -247,6 +247,10 @@ module HBase
|
||||||
arg
|
arg
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def shutdown()
|
||||||
|
@admin.shutdown()
|
||||||
|
end
|
||||||
|
|
||||||
def hcd(arg)
|
def hcd(arg)
|
||||||
# Return a new HColumnDescriptor made of passed args
|
# Return a new HColumnDescriptor made of passed args
|
||||||
# TODO: This is brittle code.
|
# TODO: This is brittle code.
|
||||||
|
|
|
@ -234,6 +234,8 @@ HBASE SHELL COMMANDS:
|
||||||
hbase> scan 't1', {COLUMNS => ['c1', 'c2'], LIMIT => 10, \\
|
hbase> scan 't1', {COLUMNS => ['c1', 'c2'], LIMIT => 10, \\
|
||||||
STARTROW => 'xyz'}
|
STARTROW => 'xyz'}
|
||||||
|
|
||||||
|
shutdown Shut down the cluster.
|
||||||
|
|
||||||
truncate Disables, drops and recreates the specified table.
|
truncate Disables, drops and recreates the specified table.
|
||||||
|
|
||||||
version Output this HBase version
|
version Output this HBase version
|
||||||
|
@ -264,6 +266,10 @@ def version
|
||||||
#{org.apache.hadoop.hbase.util.VersionInfo.getDate()}"
|
#{org.apache.hadoop.hbase.util.VersionInfo.getDate()}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def shutdown
|
||||||
|
admin().shutdown()
|
||||||
|
end
|
||||||
|
|
||||||
# DDL
|
# DDL
|
||||||
|
|
||||||
def admin()
|
def admin()
|
||||||
|
|
Loading…
Reference in New Issue