On October 18, 2016 at 10:50:07 AM, Scott Ferguson (sc...@98ws.net) wrote:
--Has anyone run Debezium against MySQL (5.6.23) in AWS RDS?It seems that RDS doesn't allow "FLUSH TABLES WITH READ LOCK", http://stackoverflow.com/a/19571531.Without that ability Debezium fails immediately.2016-10-17 18:26:48,799 INFO MySQL|itw|snapshot Step 0: disabling autocommit and enabling repeatable read transactions [io.debezium.connector.mysql.SnapshotReader]2016-10-17 18:26:48,901 INFO MySQL|itw|snapshot Step 1: start transaction with consistent snapshot [io.debezium.connector.mysql.SnapshotReader]2016-10-17 18:26:49,092 INFO MySQL|itw|snapshot Step 2: flush and obtain global read lock (preventing writes to database) [io.debezium.connector.mysql.SnapshotReader]2016-10-17 18:26:49,246 ERROR MySQL|itw|snapshot Failed due to error: Aborting snapshot after running 'FLUSH TABLES WITH READ LOCK': Access denied for user 'trinity'@'%' (using password: YES) [io.debezium.connector.mysql.SnapshotReader]org.apache.kafka.connect.errors.ConnectException: Access denied for user 'trinity'@'%' (using password: YES) Error code: 1045; SQLSTATE: 28000.at io.debezium.connector.mysql.AbstractReader.wrap(AbstractReader.java:141)at io.debezium.connector.mysql.AbstractReader.failed(AbstractReader.java:120)at io.debezium.connector.mysql.SnapshotReader.execute(SnapshotReader.java:452)at java.lang.Thread.run(Thread.java:745)Caused by: java.sql.SQLException: Access denied for user 'trinity'@'%' (using password: YES)at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:963)at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3966)at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3902)at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2526)at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2673)at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2503)at com.mysql.jdbc.StatementImpl.executeInternal(StatementImpl.java:839)at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:739)at io.debezium.jdbc.JdbcConnection.lambda$execute$1(JdbcConnection.java:242)at io.debezium.jdbc.JdbcConnection.execute(JdbcConnection.java:259)at io.debezium.jdbc.JdbcConnection.execute(JdbcConnection.java:236)at io.debezium.connector.mysql.SnapshotReader.execute(SnapshotReader.java:197)... 1 moreThese are the grants for user 'trinity':GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER ON *.* TO 'trinity'@'%' IDENTIFIED BY PASSWORD <secret> WITH GRANT OPTIONThanks,Scott
You received this message because you are subscribed to the Google Groups "debezium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debezium+u...@googlegroups.com.
To post to this group, send email to debe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/f8bf5e0e-0904-467c-9c28-408037ae5cf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for the insight. Have you considered the approach Maxwell uses as a fallback? (querying the information_schema tables)
--
You received this message because you are subscribed to the Google Groups "debezium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debezium+u...@googlegroups.com.
To post to this group, send email to debe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/b1a02ce4-0a2b-4072-8bf6-ad9d6ff7d084%40googlegroups.com.
This e-mail, as well as any attached document, may contain material which is confidential and privileged and may include trademark, copyright and other intellectual property rights that are proprietary to Kenshoo Ltd, its subsidiaries or affiliates ("Kenshoo"). This e-mail and its attachments may be read, copied and used only by the addressee for the purpose(s) for which it was disclosed herein. If you have received it in error, please destroy the message and any attachment, and contact us immediately. If you are not the intended recipient, be aware that any review, reliance, disclosure, copying, distribution or use of the contents of this message without Kenshoo's express permission is strictly prohibited. --
You received this message because you are subscribed to the Google Groups "debezium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debezium+u...@googlegroups.com.
To post to this group, send email to debe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/007907f5-478d-4962-b23e-5c5eb08a2493%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/b0d7392e-77ef-4c07-8bcf-1698d2dbae38%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/8099963a-69af-4d4c-94b9-d629b84ec4e5%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/303aa172-a28c-4c9d-8fc5-e40c90ae3c28%40googlegroups.com.