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

region_mover.rb uses the removed HConnection.getZooKeeperWatcher() method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.96.0
    • 0.98.0, 0.96.0
    • scripts
    • None

    Description

      aleksshulman found that region_mover.rb is using HConnection.getZooKeeperWatcher(), which is deprecated in 94 and removed in 96.

      14:02:34  2013-09-16 14:02:34,945 INFO  [main] region_mover: Moving 7 region(s) from c5-rolling2-4.ent.cloudera.com,60020,1379364656888 during this cycle
      14:02:34  [c5-rolling2-2.ent.cloudera.com] out: 2013-09-16 14:02:34,951 INFO  [main] region_mover: Moving region 1588230740 (0 of 7) to server=c5-rolling2-2.ent.cloudera.com,60020,1379365188814
      14:02:35  [c5-rolling2-2.ent.cloudera.com] out: NoMethodError: undefined method `getZooKeeperWatcher' for #<#<Class:0x1fe91485>:0x465098f9>
      14:02:35  [c5-rolling2-2.ent.cloudera.com] out:   getServerNameForRegion at /usr/lib/hbase/bin/region_mover.rb:91
      14:02:35  [c5-rolling2-2.ent.cloudera.com] out:             isSameServer at /usr/lib/hbase/bin/region_mover.rb:73
      14:02:35  [c5-rolling2-2.ent.cloudera.com] out:                     move at /usr/lib/hbase/bin/region_mover.rb:157
      14:02:35  [c5-rolling2-2.ent.cloudera.com] out:                  __for__ at /usr/lib/hbase/bin/region_mover.rb:327
      14:02:35  [c5-rolling2-2.ent.cloudera.com] out:                     each at file:/usr/lib/hbase/lib/jruby-complete-1.6.8.jar!/builtin/java/java.util.rb:7
      14:02:35  [c5-rolling2-2.ent.cloudera.com] out:            unloadRegions at /usr/lib/hbase/bin/region_mover.rb:318
      14:02:35  [c5-rolling2-2.ent.cloudera.com] out:                   (root) at /usr/lib/hbase/bin/region_mover.rb:456
      

      Attachments

        1. HBASE-9735-v0.patch
          0.7 kB
          Matteo Bertozzi
        2. HBASE-9735-v1.patch
          1 kB
          Matteo Bertozzi

        Activity

          People

            mbertozzi Matteo Bertozzi
            mbertozzi Matteo Bertozzi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: