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

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 0.98.0, 0.95.2
    • scripts
    • None
    • 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-v2.patch
          7 kB
          Jean-Daniel Cryans
        2. HBASE-9173.patch
          5 kB
          Jean-Daniel Cryans

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: