- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: https://github.com/lackhurt/flume-canal-source
- 软件文档: https://github.com/lackhurt/flume-canal-source
- 官方下载: https://github.com/lackhurt/flume-canal-source
软件介绍
相信很多人对阿里开源的 canal 和 apache flume 都不陌生。
flume-canal-source 是对 flume 的 source 扩展。从 canal 获取数据到 flume channel 。 进而可以实现 binlog 数据到 kafka/hdfs/hive/elasticsearch 等等。
如何使用
部署 canal、flume 这里忽略。
配置 flume
配置 source 类型*
agent.sources = canalSource agent.sources.canalSource.type = com.weiboyi.etl.flume.source.canal.CanalSource
配置连接 canal 的三种方式*
canal zookeeper servers
agent.sources.canalSource.zkServers = zookeeper-host:2181
canal server urls
agent.sources.canalSource.serverUrls = canal-server1:111111,canal-server2:111111
canal server urls
agent.sources.canalSource.serverUrl = canal-server1:111111
配置 canal destination*
agent.sources.canalSource.destination = example
配置用户名密码
agent.sources.canalSource.username = user agent.sources.canalSource.password = passwd
binlog batch size, default 1024
agent.sources.canalSource.batchSize = 1024
是否需要 MySQL 修改前的数据, default true
agent.sources.canalSource.oldDataRequired = true
编程原本
Alexander Stepanov、Paul McJones / 裘宗燕 / 机械工业出版社华章公司 / 2012-1-10 / 59.00元
本书提供了有关编程的一种与众不同的理解。其主旨是,实际的编程也应像其他科学和工程领域一样基于坚实的数学基础。本书展示了在实际编程语言(如C++)中实现的算法如何在最一般的数学背景中操作。例如,如何定义快速求幂算法,使之能使用任何可交换运算。使用抽象算法将能得到更高效、可靠、安全和经济的软件。 这不是一本很容易读的书,它也不是能提升你的编程技能的秘诀和技巧汇编。本书的价值是更根本性的,其终极目......一起来看看 《编程原本》 这本书的介绍吧!
