flume 的 source 扩展 flume-canal-source

码农软件 · 软件分类 · 常用工具包 · 2019-08-13 08:29:42

软件介绍

相信很多人对阿里开源的 canalapache 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 的三种方式*

  1. canal zookeeper servers

agent.sources.canalSource.zkServers = zookeeper-host:2181
  1. canal server urls

agent.sources.canalSource.serverUrls = canal-server1:111111,canal-server2:111111
  1. 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

本文地址:https://codercto.com/soft/d/12254.html

Structure and Interpretation of Computer Programs - 2nd Edition

Structure and Interpretation of Computer Programs - 2nd Edition

Harold Abelson、Gerald Jay Sussman / The MIT Press / 1996-7-25 / USD 145.56

Structure and Interpretation of Computer Programs has had a dramatic impact on computer science curricula over the past decade. This long-awaited revision contains changes throughout the text. Ther......一起来看看 《Structure and Interpretation of Computer Programs - 2nd Edition 》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具