hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lars hofhansl <lhofha...@yahoo.com>
Subject hbase shell broken in truck (with simple patch)
Date Sat, 06 Aug 2011 02:01:51 GMT
I noticed in HBase trunk I always get this error in the shell:

ERROR: undefined method `getRecoverableZookeeper' for #<Java::OrgApacheHadoopHbaseZookeeper::ZooKeeperWatcher:0x1c904f75>


This is apparently caused by HBASE-3065. The fix is trivial:

Index: src/main/ruby/hbase/admin.rb
===================================================================
--- src/main/ruby/hbase/admin.rb        (revision 1154413)
+++ src/main/ruby/hbase/admin.rb        (working copy)
@@ -30,7 +30,7 @@
       @admin = org.apache.hadoop.hbase.client.HBaseAdmin.new(configuration)
       connection = @admin.getConnection()
       @zk_wrapper = connection.getZooKeeperWatcher()
-      zk = @zk_wrapper.getZooKeeper()
+      zk = @zk_wrapper.getRecoverableZooKeeper().getZooKeeper()
       @zk_main = org.apache.zookeeper.ZooKeeperMain.new(zk)
       @formatter = formatter
     end

Should I open an issue and add the patch there?

Thanks.

-- Lars


Mime
View raw message