Sign inSign up

openeuler/canal

Sponsored OSS

By openeuler

Updated 2 months ago

Image
0

4.6K

openeuler/canal repository overview

Quick reference

canal | openEuler

Current canal images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.

Canal is an open-source project developed by Alibaba for real-time data synchronization. It is designed to capture and parse MySQL binlog (binary logs), allowing downstream systems to consume change data in near real-time.

The tag of each canal docker image is consist of the version of canal and the version of basic image. The details are as follows

TagsCurrentlyArchitectures
1.1.8-oe2403sp1canal 1.1.8 on openEuler 24.03-LTS-SP1amd64, arm64
1.1.8-oe2403sp4canal 1.1.8 on openEuler 24.03-LTS-SP4amd64, arm64
1.1.8-oe2403sp2canal 1.1.8 on openEuler 24.03-LTS-SP2amd64, arm64

Usage

  • Preparation

    For a self-hosted MySQL, you need to enable binlog and configure the binlog format as ROW. The my.cnf should be configured as follows:

    [mysqld]
    log-bin=mysql-bin        # Enable binlog
    binlog-format=ROW        # Set binlog format to ROW
    server_id=1              # Server ID required for MySQL replication; do not conflict with Canal's slaveId
    

    Note: For Alibaba Cloud RDS for MySQL, binlog is enabled by default, and the account already has the necessary binlog dump permissions. In this case, you can skip these steps.

    You also need to grant permissions to the Canal user, so it can connect as a MySQL slave. If the account already exists, you can directly use GRANT:

    CREATE USER 'canal' IDENTIFIED BY 'canal';
    GRANT SELECT, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'canal'@'%';
    -- GRANT ALL PRIVILEGES ON *.* TO 'canal'@'%';
    FLUSH PRIVILEGES;
    
  • Startup

    docker run -d --name my-canal -p 30306:3306 openeuler/canal:{Tag}
    

    After the instance my-canal is started, you can view its running logs using docker logs.

Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.

Tag summary

Content type

Image

Digest

sha256:deb3c25c7

Size

295.2 MB

Last updated

2 months ago

docker pull openeuler/canal

This week's pulls

Pulls:

2

Last week