[
https://issues.apache.org/jira/browse/HBASE-16450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15431991#comment-15431991
]
Esteban Gutierrez commented on HBASE-16450:
-------------------------------------------
Two examples from the tool:
1. no distributed (just polls zk)
{code}
2016-08-22 19:03:23,741 INFO [main] regionserver.DumpReplicationQueues:
Replicated Tables: [{replicationType=1, columnFamilyName=c, tableName=x}]
Dumping replication peers and configurations:
Peer: nothing
State: ENABLED
Cluster Name: clusterKey=localhost:2181:/hbase,replicationEndpointImpl=null,
Peer Table CFs: null
Dumping replication znodes via ZooKeeper:
/hbase/replication:
/hbase/replication/peers:
/hbase/replication/peers/nothing: localhost:2181:/hbase
/hbase/replication/peers/nothing/peer-state: ENABLED
/hbase/replication/rs:
/hbase/replication/rs/172.16.1.251,51236,1471895993290:
/hbase/replication/rs/172.16.1.251,51236,1471895993290/nothing:
/hbase/replication/rs/172.16.1.251,51236,1471895993290/nothing/172.16.1.251%2C51236%2C1471895993290.1471917599568:
{code}
2. distributed
{code}
2016-08-22 19:12:38,789 INFO [main] regionserver.DumpReplicationQueues:
Replicated Tables: [{replicationType=1, columnFamilyName=c, tableName=x}]
Dumping replication peers and configurations:
Peer: nothing
State: ENABLED
Cluster Name: clusterKey=localhost:2181:/hbase,replicationEndpointImpl=null,
Peer Table CFs: null
2016-08-22 19:12:38,793 INFO [main] regionserver.DumpReplicationQueues: Found
[--distributed], will poll each RegionServer.
2016-08-22 19:12:38,826 INFO [main] replication.ReplicationPeersZKImpl: Added
new peer cluster=localhost:2181:/hbase
Dumping replication queue info for RegionServer:
[172.16.1.251,51236,1471895993290]
PeerID: nothing
Recovered: false
No dead RegionServers found in this queue.
Was deleted: false
Number of WALs in replication queue: 1
Replication position for
172.16.1.251%2C51236%2C1471895993290.1471917599568: 0 (not started or nothing
to replicate)
{code}
> Shell tool to dump replication queues
> --------------------------------------
>
> Key: HBASE-16450
> URL: https://issues.apache.org/jira/browse/HBASE-16450
> Project: HBase
> Issue Type: Improvement
> Components: Operability, Replication
> Affects Versions: 2.0.0, 1.3.0, 1.1.5, 1.2.2
> Reporter: Esteban Gutierrez
> Assignee: Esteban Gutierrez
> Attachments: HBASE-16450.branch-1.001.patch,
> HBASE-16450.master.001.patch, HBASE-16450.master.002.patch,
> HBASE-16450.master.003.patch
>
>
> Currently there is no way to dump list of the configured queues and the
> replication queues when replication is enabled. Unfortunately the HBase
> master only offers an option to dump the whole content of the znodes but not
> details on the queues being processed on each RS.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)