[ 
https://issues.apache.org/jira/browse/HBASE-17988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16042236#comment-16042236
 ] 

Sean Busbey commented on HBASE-17988:
-------------------------------------

I tried out this on master and I still get a failure for get-active-master.rb:

{code}
hbase-2.0.0-SNAPSHOT busbey$ ./bin/hbase org.jruby.Main 
bin/get-active-master.rb 
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in 
[jar:file:/Users/busbey/tmp_projects/hbase/hbase-assembly/target/hbase-2.0.0-SNAPSHOT/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in 
[jar:file:/usr/local/Cellar/hadoop/2.7.3/libexec/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
NoMethodError: undefined method `getServerNameOrEmptyString' for 
Java::OrgApacheHadoopHbaseZookeeper::ZKUtil:Class
  method_missing at org/jruby/RubyBasicObject.java:1653
          <main> at bin/get-active-master.rb:37
{code}

Looking at ZKUtil, 'getServerNameOrEmptyString' is private.

> get-active-master.rb and draining_servers.rb no longer work
> -----------------------------------------------------------
>
>                 Key: HBASE-17988
>                 URL: https://issues.apache.org/jira/browse/HBASE-17988
>             Project: HBase
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 2.0.0
>            Reporter: Mike Drob
>            Assignee: Chinmay Kulkarni
>            Priority: Critical
>             Fix For: 2.0.0, 1.4.0, 1.3.2, 1.1.11, 1.2.7
>
>         Attachments: HBASE-17988.patch
>
>
> The scripts {{bin/get-active-master.rb}} and {{bin/draining_servers.rb}} no 
> longer work on current master branch. Here is an example error message:
> {noformat}
> $ bin/hbase-jruby bin/get-active-master.rb 
> NoMethodError: undefined method `masterAddressZNode' for 
> #<Java::OrgApacheHadoopHbaseZookeeper::ZooKeeperWatcher:0x1b0e9707>
>   <main> at bin/get-active-master.rb:35
> {noformat}
> My initial probing suggests that this is likely due to movement that happened 
> in HBASE-16690. Perhaps instead of reworking the ruby, there is similar Java 
> functionality already existing somewhere.
> Putting priority at critical since it's impossible to know whether users rely 
> on the scripts.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to