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

replication_admin#get_peer_state(id) in ruby script pointing to undefined method `getPeerState'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.98.0, 0.95.2
    • Component/s: scripts
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      list_peers is failing because replication_admin#get_peer_state(id) pointing to the method removed from ReplicationAdmin. We need to read peer state from ReplicationPeer.

      hbase(main):003:0> list_peers
       PEER_ID CLUSTER_KEY STATE
      
      ERROR: undefined method `getPeerState' for #<Java::OrgApacheHadoopHbaseClientReplication::ReplicationAdmin:0x7e299629>
      
      Here is some help for this command:
      List all replication peer clusters.
      
        hbase> list_peers
      
          # Get peer cluster state
          def get_peer_state(id)
            @replication_admin.getPeerState(id)
          end
      

        Attachments

        1. HBASE-9173.patch
          5 kB
          Jean-Daniel Cryans
        2. HBASE-9173-v2.patch
          7 kB
          Jean-Daniel Cryans

          Activity

            People

            • Assignee:
              jdcryans Jean-Daniel Cryans
              Reporter:
              rajesh23 rajeshbabu
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: