Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-22425

Balance shell command broken in HBase-3.0.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.0.0-alpha-1
    • 3.0.0-alpha-1
    • shell
    • None
    • Reviewed

    Description

      Please see: https://issues.apache.org/jira/browse/HBASE-22387?focusedCommentId=16837386&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16837386

      hbase(main):001:0> balancer
      (eval):3: warning: instance variable @shell not initialized
      Exception `NoMethodError' at (eval):2 - undefined method `command' for nil:NilClass
      
      ERROR: undefined method `command' for nil:NilClass
      Backtrace: (eval):2:in `balancer'
                 /home/huzheng/.minos/packages/hbase/7b5bccdecd0600d98ad9a28d826e289fb6d58f46-20190510-165336/hbase-3.0.0-SNAPSHOT/lib/ruby/hbase/admin.rb:192:in `balancer'
                 /home/huzheng/.minos/packages/hbase/7b5bccdecd0600d98ad9a28d826e289fb6d58f46-20190510-165336/hbase-3.0.0-SNAPSHOT/lib/ruby/shell/commands/balancer.rb:47:in `command'
                 /home/huzheng/.minos/packages/hbase/7b5bccdecd0600d98ad9a28d826e289fb6d58f46-20190510-165336/hbase-3.0.0-SNAPSHOT/lib/ruby/shell/commands.rb:49:in `block in command_safe'
                 /home/huzheng/.minos/packages/hbase/7b5bccdecd0600d98ad9a28d826e289fb6d58f46-20190510-165336/hbase-3.0.0-SNAPSHOT/lib/ruby/shell/commands.rb:122:in `translate_hbase_exceptions'
                 /home/huzheng/.minos/packages/hbase/7b5bccdecd0600d98ad9a28d826e289fb6d58f46-20190510-165336/hbase-3.0.0-SNAPSHOT/lib/ruby/shell/commands.rb:49:in `command_safe'
                 /home/huzheng/.minos/packages/hbase/7b5bccdecd0600d98ad9a28d826e289fb6d58f46-20190510-165336/hbase-3.0.0-SNAPSHOT/lib/ruby/shell.rb:148:in `internal_command'
                 /home/huzheng/.minos/packages/hbase/7b5bccdecd0600d98ad9a28d826e289fb6d58f46-20190510-165336/hbase-3.0.0-SNAPSHOT/lib/ruby/shell.rb:140:in `command'
                 (eval):2:in `balancer'
                 (hbase):1:in `<eval>'
                 org/jruby/RubyKernel.java:994:in `eval'
                 uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb/workspace.rb:87:in `evaluate'
                 uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb/context.rb:380:in `evaluate'
                 uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb.rb:489:in `block in eval_input'
                 uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb.rb:623:in `signal_status'
                 uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb.rb:486:in `block in eval_input'
                 uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb/ruby-lex.rb:246:in `block in each_top_level_statement'
                 org/jruby/RubyKernel.java:1292:in `loop'
                 uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb/ruby-lex.rb:232:in `block in each_top_level_statement'
                 org/jruby/RubyKernel.java:1114:in `catch'
                 uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb/ruby-lex.rb:231:in `each_top_level_statement'
                 uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb.rb:485:in `eval_input'
                 /home/huzheng/.minos/packages/hbase/7b5bccdecd0600d98ad9a28d826e289fb6d58f46-20190510-165336/hbase-3.0.0-SNAPSHOT/bin/hirb.rb:214:in `block in start'
                 org/jruby/RubyKernel.java:1114:in `catch'
                 /home/huzheng/.minos/packages/hbase/7b5bccdecd0600d98ad9a28d826e289fb6d58f46-20190510-165336/hbase-3.0.0-SNAPSHOT/bin/hirb.rb:213:in `start'
                 /home/huzheng/.minos/packages/hbase/7b5bccdecd0600d98ad9a28d826e289fb6d58f46-20190510-165336/hbase-3.0.0-SNAPSHOT/bin/hirb.rb:219:in `<main>'
      
      For usage try 'help "balancer"'
      
      Took 0.1378 seconds                                                                                                                                                               
      hbase(main):002:0>
      

      Attachments

        1. HBASE-22425.v3.patch
          2 kB
          Zheng Hu
        2. HBASE-22425.v2.patch
          2 kB
          Zheng Hu
        3. HBASE-22425.v1.patch
          0.9 kB
          Zheng Hu

        Issue Links

          Activity

            People

              openinx Zheng Hu
              openinx Zheng Hu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: