hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r740266 - in /hadoop/hbase/branches/0.19: CHANGES.txt bin/HBase.rb bin/hirb.rb
Date Tue, 03 Feb 2009 10:22:50 GMT
Author: apurtell
Date: Tue Feb  3 10:22:49 2009
New Revision: 740266

URL: http://svn.apache.org/viewvc?rev=740266&view=rev
Log:
HBASE-1178 Add shutdown command to shell

Modified:
    hadoop/hbase/branches/0.19/CHANGES.txt
    hadoop/hbase/branches/0.19/bin/HBase.rb
    hadoop/hbase/branches/0.19/bin/hirb.rb

Modified: hadoop/hbase/branches/0.19/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.19/CHANGES.txt?rev=740266&r1=740265&r2=740266&view=diff
==============================================================================
--- hadoop/hbase/branches/0.19/CHANGES.txt (original)
+++ hadoop/hbase/branches/0.19/CHANGES.txt Tue Feb  3 10:22:49 2009
@@ -9,6 +9,7 @@
   IMPROVEMENTS
    HBASE-845   HCM.isTableEnabled doesn't really tell if it is, or not
    HBASE-903   [shell] Can't set table descriptor attributes when I alter a table
+   HBASE-1178  Add shutdown command to shell
 
 Release 0.19.0
   INCOMPATIBLE CHANGES

Modified: hadoop/hbase/branches/0.19/bin/HBase.rb
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.19/bin/HBase.rb?rev=740266&r1=740265&r2=740266&view=diff
==============================================================================
--- hadoop/hbase/branches/0.19/bin/HBase.rb (original)
+++ hadoop/hbase/branches/0.19/bin/HBase.rb Tue Feb  3 10:22:49 2009
@@ -247,6 +247,10 @@
       arg
     end
 
+    def shutdown()
+      @admin.shutdown()
+    end
+
     def hcd(arg)
       # Return a new HColumnDescriptor made of passed args
       # TODO: This is brittle code.

Modified: hadoop/hbase/branches/0.19/bin/hirb.rb
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.19/bin/hirb.rb?rev=740266&r1=740265&r2=740266&view=diff
==============================================================================
--- hadoop/hbase/branches/0.19/bin/hirb.rb (original)
+++ hadoop/hbase/branches/0.19/bin/hirb.rb Tue Feb  3 10:22:49 2009
@@ -234,6 +234,8 @@
            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 @@
  #{org.apache.hadoop.hbase.util.VersionInfo.getDate()}"
 end
 
+def shutdown
+  admin().shutdown()
+end 
+
 # DDL
 
 def admin()



Mime
View raw message