debezium cannot connect to maxscale from other host than localhost

I want use debezium for following changes of data in MariaDB. But debezium uses for connection to binary log something as connection via socket. And there is iussue. When debezium is running form same server as maxscale all is OK, but when I run debezium from other server, after than maxscale doesn't reply.

Issue is on row channel.read(). There I get no answer.(full source is on: https://github.com/shyiko/mysql-binlog-connector-java/blob/master/src/main/java/com/github/shyiko/mysql/binlog/BinaryLogClient.java)

channel = openChannel();

AuthenticateCommand authenticateCommand = new AuthenticateCommand(schema, username, password, greetingPacket.getScramble()); authenticateCommand.setCollation(collation); channel.write(authenticateCommand, packetNumber); byte[] authenticationResult = channel.read();

private PacketChannel openChannel() throws IOException { Socket socket = socketFactory != null ? socketFactory.createSocket() : new Socket(); socket.connect(new InetSocketAddress(hostname, port), (int) connectTimeout); return new PacketChannel(socket); }

Can you help me. Maybe exists some configuration for that

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.