我用clogproxy 1.13jar 去链接
我想知道setUsername 是什么
setSysUsername 又是什么

这个binlog 配置文件 明文?
ObReaderConfig config = new ObReaderConfig();
config.setRsList(“172.16.18.26:2882:2881”);
config.setClusterId(“1”);
config.setUsername("");
config.setPassword("");
config.setSysUsername(“root”);
config.setSysPassword(“e1YbS”);
config.setStartTimestamp(0L);
config.setTableWhiteList(“root..”);
我也不知道,同问
mysql -hxxxx.xxxx.xxx.xx -P2983
然后呢
Channel closed with ClientId: 192.168.43.6_44256_1781751844, LogProxy: 172.16.10.204:2983
程序的异常信息

我用调试助手看过 网络是通的 哪问题就在用户上了
setClusterId

是这个吗
11:07:56.347 [Thread-0] INFO com.oceanbase.clogproxy.client.connection.ClientStream – Try to connect
11:07:56.410 [Thread-0] INFO com.oceanbase.clogproxy.client.connection.ClientStream – Connect successfully
11:07:56.410 [log-proxy-client-worker-1-thread-1] INFO com.oceanbase.clogproxy.client.connection.ClientHandler – ClientId: 192.168.43.6_19328_1781752073: rootserver_list=172.16.18.26:2882:2881, cluster_id=nhas0f6h5f, cluster_user=yang, cluster_password=, , sys_user=root, sys_password=, tb_white_list=yang.., tb_black_list=|, start_timestamp=0, start_timestamp_us=0, timezone=+08:00, working_mode=storage connecting LogProxy: 172.16.10.204:2983
11:07:56.452 [log-proxy-client-worker-1-thread-1] ERROR com.oceanbase.clogproxy.client.connection.ClientHandler – Exception occurred ClientId: 192.168.43.6_19328_1781752073: rootserver_list=172.16.18.26:2882:2881, cluster_id=nhas0f6h5f, cluster_user=yang, cluster_password=, , sys_user=root, sys_password=, tb_white_list=yang.., tb_black_list=|, start_timestamp=0, start_timestamp_us=0, timezone=+08:00, working_mode=storage, with LogProxy: 172.16.10.204:2983
java.net.SocketException: Connection reset
at java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketChannelImpl.java:401)
at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:434)
at io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:258)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:357)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:151)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.base/java.lang.Thread.run(Thread.java:1583)
11:07:56.452 [log-proxy-client-worker-1-thread-1] INFO com.oceanbase.clogproxy.client.connection.ClientHandler – Channel closed with ClientId: 192.168.43.6_19328_1781752073, LogProxy: 172.16.10.204:2983
11:07:57.427 [Thread-0] INFO com.oceanbase.clogproxy.client.connection.ClientStream – Try to connect
11:07:57.427 [Thread-0] ERROR com.oceanbase.clogproxy.client.connection.ClientStream – Failed to connect, exceed max reconnect retry time: 2
我感觉我连上了。又断了。我猜测是用户问题
LogProxy Unexpected seq num, expected value is 1, actual value is 51 说明客户端和服务端的协议版本不兼容 。服务端期望的序列号是 1,但客户端发送的是 51(0x33 ),这是不同版本之间协议握手格式不同导致的。
是不是版本的兼容问题?
连接binlog实例不需要租户密码。
你试试ob集群ip,端口用2883
失败了
内部也没有clogproxy案例这边再咨询下
麻烦你了
或者你们使用的方式分享下。
了解一下。clogproxy
连不上你又经验啊?
LogProxy的连接Endpoint配置提供一份看下
config.setUsername(“username”);
config.setPassword(“password”);
这里填sys的root和密码试试




