oh if you mean : ls /hbase/replication/peers [] is all it shows
It might be an error in the code though, the stacktrace says it's an unexpected error although it's only a warning (it's a very short stack trace) : 2016-08-23 10:30:57,444 INFO [main.replicationSource,vm2-SendThread( 192.168.122.106:2182)] zookeeper.ClientCnxn: Opening socket connection to server 192.168.122.106/192.168.122.106:2182. Will not attempt to authenticate using SASL (unknown error) 2016-08-23 10:30:57,446 WARN [main.replicationSource,vm2-SendThread( 192.168.122.106:2182)] zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) On Tue, Aug 23, 2016 at 10:21 AM, Ted Yu <yuzhih...@gmail.com> wrote: > Please take a look at > http://hbase.apache.org/book.html#trouble.tools.builtin.zkcli > > > > On Tue, Aug 23, 2016 at 10:07 AM, Ted <r6squee...@gmail.com> wrote: > > > the command out puts were as follows (note I originally ran them in > > possibly the wrong order, I also tried re-adding the same id and removing > > it again with no difference) > > > > hbase(main):003:0> list_peers > > PEER_ID CLUSTER_KEY STATE TABLE_CFS > > vm2 192.168.122.106:2182:/hbase ENABLED > > 1 row(s) in 0.1250 seconds > > > > hbase(main):004:0> remove_peer 'vm2' > > 0 row(s) in 0.0710 seconds > > > > hbase(main):005:0> list_peers > > PEER_ID CLUSTER_KEY STATE TABLE_CFS > > 0 row(s) in 0.0080 seconds > > > > hbase(main):006:0> disable_table_replication 'test' > > 0 row(s) in 0.0500 seconds > > The replication swith of table 'test' successfully disabled > > > > hbase(main):007:0> list_peers > > PEER_ID CLUSTER_KEY STATE TABLE_CFS > > 0 row(s) in 0.0230 seconds > > > > I'm not quite sure how to use "hbase zkcli", it's dropped me at the > prompt, > > but I don't see anything in the help which prints values or > configuration. > > Do you happen to know what I should run to see those values? > > > > thanks. > > > > > > > > On Tue, Aug 23, 2016 at 9:57 AM, Ted Yu <yuzhih...@gmail.com> wrote: > > > > > Can you pastebin the output from the 3 commands, especially > remove_peer ? > > > > > > Can you use 'hbase zkcli' to inspect /<value > > > of zookeeper.znode.parent>/replication/peers ? > > > > > > Thanks > > > > > > On Tue, Aug 23, 2016 at 9:51 AM, Ted <r6squee...@gmail.com> wrote: > > > > > > > I'm using hbase 1.2.1 and I'm having problems aborting a table > > > replication. > > > > > > > > I was testing replication and did an "add_peer" but I accidentally > > > entered > > > > the wrong port number. > > > > The source server is now logging a bunch of > "java.net.ConnectException: > > > > Connection refused" errors which is understandable. > > > > > > > > I tried disable_peer, remove_peer, and disable_table_replication. > > > > > > > > it's removed the peer from list_peers, but I continue to get the > errors > > > in > > > > the logs showing it's attempting to connect to the destination server > > on > > > > the wrong port number. > > > > > > > > Does anyone know how to actually stop that thread? > > > > -- > > > > Ted. > > > > > > > > > > > > > > > -- > > Ted. > > > -- Ted.