You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by mb...@apache.org on 2015/04/18 11:26:12 UTC
[09/19] hbase git commit: HBASE-13486 region_status.rb broken with
NameError: uninitialized constant IOException (Samir Ahmic)
HBASE-13486 region_status.rb broken with NameError: uninitialized constant IOException (Samir Ahmic)
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/bcc5e1b3
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/bcc5e1b3
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/bcc5e1b3
Branch: refs/heads/hbase-12439
Commit: bcc5e1b35329c64c8df144e87af5a01cbbfad01b
Parents: 7fb6055
Author: tedyu <yu...@gmail.com>
Authored: Fri Apr 17 06:38:46 2015 -0700
Committer: tedyu <yu...@gmail.com>
Committed: Fri Apr 17 06:38:46 2015 -0700
----------------------------------------------------------------------
bin/region_status.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/bcc5e1b3/bin/region_status.rb
----------------------------------------------------------------------
diff --git a/bin/region_status.rb b/bin/region_status.rb
index 52af49e..a0f9d1b 100644
--- a/bin/region_status.rb
+++ b/bin/region_status.rb
@@ -46,6 +46,7 @@ end
require 'java'
import org.apache.hadoop.hbase.HBaseConfiguration
+import org.apache.hadoop.hbase.TableName
import org.apache.hadoop.hbase.HConstants
import org.apache.hadoop.hbase.MasterNotRunningException
import org.apache.hadoop.hbase.client.HBaseAdmin
@@ -65,6 +66,7 @@ org.apache.log4j.Logger.getLogger("org.apache.hadoop.hbase").setLevel(log_level)
config = HBaseConfiguration.create
config.set 'fs.defaultFS', config.get(HConstants::HBASE_DIR)
+connection = ConnectionFactory.createConnection(config)
# wait until the master is running
admin = nil
@@ -100,7 +102,7 @@ table = nil
iter = nil
while true
begin
- table = HTable.new config, 'hbase:meta'.to_java_bytes
+ table = connection.getTable(TableName.valueOf('hbase:meta'))
scanner = table.getScanner(scan)
iter = scanner.iterator
break