Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running kafka producer reading logs from binlogs throws exception #602

Closed
sabdullah-zz opened this issue Mar 23, 2017 · 1 comment
Closed

Comments

@sabdullah-zz
Copy link

Run this command after setting up a user on mysql and granting permission to read aa1 database

sudo docker run -it --rm osheroff/maxwell bin/maxwell --user=$MYSQL_USERNAME --password=$MYSQL_PASSWORD --host=$MYSQL_HOST --producer=kafka --kafka.bootstrap.servers=$KAFKA_HOST:$KAFKA_PORT

Result:
java.lang.RuntimeException: Couldn't find database aa1
at com.zendesk.maxwell.replication.TableCache.processEvent(TableCache.java:24)
at com.zendesk.maxwell.replication.TableCache.processEvent(TableCache.java:42)
at com.zendesk.maxwell.replication.MaxwellReplicator.getTransactionRows(MaxwellReplicator.java:250)
at com.zendesk.maxwell.replication.MaxwellReplicator.getRow(MaxwellReplicator.java:346)
at com.zendesk.maxwell.replication.AbstractReplicator.work(AbstractReplicator.java:127)
at com.zendesk.maxwell.util.RunLoopProcess.runLoop(RunLoopProcess.java:35)
at com.zendesk.maxwell.Maxwell.start(Maxwell.java:178)
at com.zendesk.maxwell.Maxwell.main(Maxwell.java:199)
21:44:01,715 INFO Maxwell - starting shutdown
21:44:01,833 INFO PositionStoreThread - Storing final position: BinlogPosition[mysql-bin-changelog.004443:1373

@sabdullah-zz sabdullah-zz changed the title running kafka producer reading logs from binlogs: running kafka producer reading logs from binlogs: Mar 23, 2017
@sabdullah-zz sabdullah-zz changed the title running kafka producer reading logs from binlogs: running kafka producer reading logs from binlogs throws exception Mar 23, 2017
@sabdullah-zz
Copy link
Author

the issue seems to be stale maxwell database. it was wiped and recreated and error was gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant