You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every master server I attempt to connect to with the sample script, I get the
following error:
java.io.EOFException
at com.google.code.or.io.impl.XInputStreamImpl.doFill(XInputStreamImpl.java:237)
at com.google.code.or.io.impl.XInputStreamImpl.read(XInputStreamImpl.java:213)
at com.google.code.or.io.impl.XInputStreamImpl.readNullTerminatedString(XInputStreamImpl.java:96)
at com.google.code.or.io.util.XDeserializer.readNullTerminatedString(XDeserializer.java:102)
at com.google.code.or.net.impl.packet.GreetingPacket.valueOf(GreetingPacket.java:133)
at com.google.code.or.net.impl.TransportImpl.connect(TransportImpl.java:87)
at com.google.code.or.OpenReplicator.start(OpenReplicator.java:91)
at mem_search.Go.main(Go.java:37)
----
code:
final OpenReplicator or = new OpenReplicator();
or.setUser("slave1");
or.setPassword("slave1");
or.setHost("exampleip");
or.setPort(3306);
or.setServerId(6789);
or.setBinlogPosition(822716382);
or.setBinlogFileName("mysql-bin.000765");
or.setBinlogEventListener(new BinlogEventListener() {
public void onEvents(BinlogEventV4 event) {
// your code goes here
}
});
or.start();
System.out.println("press 'q' to stop");
final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
for(String line = br.readLine(); line != null; line = br.readLine()) {
if(line.equals("q")) {
// or.stop();
break;
}
}
Original issue reported on code.google.com by [email protected] on 4 Apr 2015 at 5:38
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 4 Apr 2015 at 5:38The text was updated successfully, but these errors were encountered: