Maxwell 数据源
配置mysql
1 | vi /etc/my.cnf |
创建kafka的topic
1 | bin/kafka-topics.sh --create --topic maxwell --zookeeper 192.168.11.97:2181 --partitions 3 --replication-factor 2 |
在GreenPlum中新建表
1 | create database maxwell; |
启动maxwell
1 | bin/maxwell --daemon --user='maxwell' --password='maxwell' --host=192.168.11.99 --include_dbs=test --include_tables=test --producer=kafka --kafka_topic=maxwell --kafka.bootstrap.servers=192.168.11.99:9092 |
maxwell配置文件配置
1 | vi config |
关于XA问题解决
I don’t know whether to add this code in com.zendesk.maxwell.schema.ddl.SchemaChange.java is best way to solve this problem,but can start maxwell normally.1
SQL_BLACKLIST.add(Pattern.compile("\\s*XA\\s+", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE));
bireme 配置及启动
使用bireme-2.0.0-alpha-1比bireme-1.0.0会好一点
配置
1 | cd |
###启动
1 | 需要关联软件apache-commons-daemon-jsvc-1.0.13-7.el7.x86_64 |
###结束1
bin/bireme stop