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:
Andrew Kyle Purtell 2009-02-03 10:22:06 +00:00
parent a143336404
commit 80eae9d2af
3 changed files with 11 additions and 0 deletions

View File

@ -37,6 +37,7 @@ Release 0.20.0 - Unreleased
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
Purtell)
HBASE-1178 Add shutdown command to shell
Release 0.19.0 - 01/21/2009
INCOMPATIBLE CHANGES

View File

@ -247,6 +247,10 @@ module HBase
arg
end
def shutdown()
@admin.shutdown()
end
def hcd(arg)
# Return a new HColumnDescriptor made of passed args
# TODO: This is brittle code.

View File

@ -234,6 +234,8 @@ HBASE SHELL COMMANDS:
hbase> scan 't1', {COLUMNS => ['c1', 'c2'], LIMIT => 10, \\
STARTROW => 'xyz'}
shutdown Shut down the cluster.
truncate Disables, drops and recreates the specified table.
version Output this HBase version
@ -264,6 +266,10 @@ def version
#{org.apache.hadoop.hbase.util.VersionInfo.getDate()}"
end
def shutdown
admin().shutdown()
end
# DDL
def admin()