Coder Social home page Coder Social logo

nobugboy / canal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from itmifen/canal

0.0 1.0 0.0 4.87 MB

基于阿里巴巴canal进行部分优化和bug处理。

License: Apache License 2.0

Java 98.71% Shell 0.98% Batchfile 0.12% Dockerfile 0.11% Python 0.07%

canal's Introduction

背景

canal的具体使用,请参考阿里官方的代码,已经有非常详细的说明,这里就不多说明了。
地址:https://github.com/alibaba/canal
在canal具体的使用中,遇到一些bug以及不便之处,拉了一个分支进行修改,如有兴趣,欢迎大家补充。

说明

ES初始化

一个全新的ES无法使用,因为没有创建es index和mapping,增加了对应的功能。 ES配置文件mapping节点增加两个参数:

  enablefieldmap: true
  fieldmap:
    id: "text"
    BuildingId: "text"
    HouseNum: "text"
    Floors: "text"
    IdProjectInfo: "text"
    HouseDigitNum: "text"
    BuildingNum: "text"
    BuildingName: "text"
    Name: "text"
    projectid: "text"
    bIdProjectInfo: "text"
    cinitid: "text"
    pCommunityId: "text"

enablefieldmap 是否需要自动生成fieldmap,默认为false,如果需要启动的时候就生成这设置为true,并且设置 fieldmap,类似es mapping中每个字段的类型。

esconfig bug处理

代码中获取binlog的日志处理时,必须要获取数据库名,但是当获取binlog为type query时,是无法获取 数据库名的,此处有bug,导致出现 "Outer adapter write failed" ,且未输出错误日志,修复此bug.

后续计划

增加rabbit MQ的支持
增加redis的支持(建议实现)

canal's People

Contributors

agapple avatar alextouchpal avatar cai1987 avatar deeplinux avatar diguage avatar dinozhang avatar duhengforever avatar itmifen avatar jasonhx140 avatar jiacheo avatar jianan789 avatar lcybo avatar likeloveluck avatar lin848497337 avatar lulu2panpan avatar maowei-ymw avatar mzlcc avatar nbqyqx avatar openzyk avatar payonxp avatar rewerma avatar smilingleo avatar spccold avatar tankilo avatar wenerme avatar wingerx avatar withlin avatar wu-jianqiang avatar yakirchen avatar zhmz1326 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.