专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

debezium/connect-base Docker 镜像 - 轩辕镜像

connect-base
debezium/connect-base
自动构建
debezium
Kafka Connect base image with no predefined connectors.
10 收藏0 次下载
💣 CI/CD 卡在拉镜像?问题不在代码,在镜像源
镜像简介版本下载
💣 CI/CD 卡在拉镜像?问题不在代码,在镜像源

This repository has been relocated to quay.io/debezium/connect-base.

Kafka Connect is a system for moving data into and out of Kafka. All Debezium connectors adhere to the Kafka Connector API for source connectors, and each monitors a specific kind of database management system for changing data, and then forwards those changes directly into Kafka topics organized by server, database, and table. This image defines a runnable Kafka Connect service preconfigured with all Debezium connectors. The service has a RESTful API for managing connector instances -- simply start up a container, configure a connector for each data source you want to monitor, and let Debezium monitor those sources for changes and forward them to the appropriate Kafka topics.

What is Debezium?

Debezium is a distributed platform that turns your existing databases into event streams, so applications can quickly react to each row-level change in the databases. Debezium is built on top of Kafka and provides Kafka Connect compatible connectors that monitor specific database management systems. Debezium records the history of data changes in Kafka logs, so your application can be stopped and restarted at any time and can easily consume all of the events it missed while it was not running, ensuring that all events are processed correctly and completely.

Running Debezium involves Zookeeper, Kafka, and services that run Debezium's connectors. For simple evaluation and experimentation, all services can all be run on a single host machine, using the recipe outlined below. Production environments, however, require properly running and networking multiple instances of each service to provide the performance, reliability, replication, and fault tolerance. This can be done with a platform like OpenShift that manages multiple Docker containers running on multiple hosts and machines. But running Kafka in a Docker container has limitations, so for scenarios where very high throughput is required, you should run Kafka on dedicated hardware as explained in the Kafka documentation.

How to use this image

This image serves as a base image for other images that wish to use custom Kafka Connect connectors. This image provides a complete installation of Kafka and its Kafka Connect libraries, plus a docker-entrypoint.sh script that will run Kafka Connect distributed service and dynamically set the Java classpath to include connector JARs found in child directories under $KAFKA_CONNECT_PLUGINS_DIR, which equates to /kafka/connect.

To add your connectors, your image should be based upon this image (e.g., using FROM debezium/connect-base) and should add the JAR files for one or more connectors to one or more child directories under $KAFKA_CONNECT_PLUGINS_DIR.

The general recommendation is to create a separate child directory for each connector (e.g., "debezium-connector-mysql"), and to place that connector's JAR files and other resource files in that child directory.

However, use a single directory for connectors when those connectors share dependencies. This will prevent the classes in the shared dependencies from appearing in multiple JARs on the classpath, which results in arcane NoSuchMethodError exceptions.

Start a Kafka Connect service instance

NOTE: Please see the Apache Kafka documentation for general information on running Kafka Connect and more details on the various options and environment variables.

Kafka Connect requires an already-running Zookeeper service, which is either running locally via the container named zookeeper or with OpenShift running as a service named zookeeper. Also required are already-running Kafka brokers, which are either running locally via the container named kafka or with OpenShift running as a service named kafka.

When running a cluster of one or more Kafka Connect service instances, several important parameters must be defined using environment variables. Please see the section below for the list of these required environment variables and acceptable values.

Starting an instance of Kafka Connect using this image is simple:

$ docker run -it --name connect -p 8083:8083 -e GROUP_ID=1 -e CONFIG_STORAGE_TOPIC=my-connect-configs -e OFFSET_STORAGE_TOPIC=my-connect-offsets -e STATUS_STORAGE_TOPIC=my-connect-statuses -e ADVERTISED_HOST_NAME=$(echo $DOCKER_HOST | cut -f3  -d'/' | cut -f1 -d':') --link zookeeper:zookeeper --link kafka:kafka debezium/connect

This command uses this image and starts a new container named connect, which runs in the foreground and attaches the console so that it display the service's output and error messages. It exposes its REST API on port 8083, which is mapped to the same port number on the local host. It uses Zookeeper in the container (or service) named zookeeper and Kafka brokers in the container (or service) named kafka. This command sets the three required environment variables, though you should replace their values with more meaningful values for your environment.

To start the container in detached mode, simply replace the -it option with -d. No service output will not be sent to your console, but it can be read at any time using the docker logs command. For example, the following command will display the output and keep following the output:

$ docker logs --follow --name connect

Start a shell in a running container

If you are already running a container with a Kafka Connect service, you can use this image to connect to that container and obtain a command line shell:

$ docker exec -it connect bash

where connect is the name of your existing container. The shell will be set up with all environment variables exactly like when starting the service in the container. Therefore, links to other containers and additional environment variables may be specified and will be reflected in the shell's exported variables.

Environment variables

The Debezium Kafka image uses several environment variables when running a Kafka broker using this image.

GROUP_ID

This environment variable is required when running the Kafka Connect service. Set this to an ID that uniquely identifies the Kafka Connect cluster the service and its workers belong to.

CONFIG_STORAGE_TOPIC

This environment variable is required when running the Kafka Connect service. Set this to the name of the Kafka topic where the Kafka Connect services in the group store connector configurations. The topic must have a single partition, should be highly replicated (e.g., 3x or more) and should be configured for compaction.

OFFSET_STORAGE_TOPIC

This environment variable is required when running the Kafka Connect service. Set this to the name of the Kafka topic where the Kafka Connect services in the group store connector offsets. The topic should have many partitions, be highly replicated (e.g., 3x or more) and should be configured for compaction.

STATUS_STORAGE_TOPIC

This environment variable should be provided when running the Kafka Connect service. Set this to the name of the Kafka topic where the Kafka Connect services in the group store connector status. The topic can have multiple partitions, should be highly replicated (e.g., 3x or more) and should be configured for compaction.

BOOTSTRAP_SERVERS

This environment variable is an advanced setting, used only when Kafka is not running in a linkable container or service. Set this to a list of host/port pairs to use for establishing the initial connection to the Kafka cluster. Once a connection is established to one of these brokers, the service will then discover and make use of all Kafka brokers in the cluster, regardless of which servers are specified here for bootstrapping. The list should be in the form host1:port1,host2:port2,.... We recommend that you include more than one broker in this list, in case one of those is down.

REST_HOST_NAME

This environment variable is an advanced setting. Set this to the hostname that the REST API will bind to. Defaults to the hostname of the container. Specify a value of 0.0.0.0 to bind the REST API to all available interfaces.

ADVERTISED_HOST_NAME

This environment variable is an advanced setting. Set this to the hostname that will be given out to other workers to connect with. Defaults to the hostname of the container.

KEY_CONVERTER

This environment variable is an advanced setting. Set this to the fully-qualified name of the Java class that implements Kafka Connect's Converter class, used to convert the connector's keys to the form stored in Kafka. Defaults to org.apache.kafka.connect.json.JsonConverter.

VALUE_CONVERTER

This environment variable is an advanced setting. Set this to the fully-qualified name of the Java class that implements Kafka Connect's Converter class, used to convert the connector's values to the form stored in Kafka. Defaults to org.apache.kafka.connect.json.JsonConverter.

INTERNAL_KEY_CONVERTER

This environment variable is an advanced setting. Set this to the fully-qualified name of the Java class that implements Kafka Connect's Converter class, used to convert the connector offset and configuration keys to the form stored in Kafka. Defaults to org.apache.kafka.connect.json.JsonConverter.

INTERNAL_VALUE_CONVERTER

This environment variable is an advanced setting. Set this to the fully-qualified name of the Java class that implements Kafka Connect's Converter class, used to convert the connector offset and configuration values to the form stored in Kafka. Defaults to org.apache.kafka.connect.json.JsonConverter.

OFFSET_FLUSH_INTERVAL_MS

This environment variable is an advanced setting. Set this to the number of milliseconds defining the interval at which the service will periodically try committing offsets for tasks. The default is 60000, or 60 seconds.

OFFSET_FLUSH_TIMEOUT_MS

This environment variable is an advanced setting. Set this to the maximum time in milliseconds to wait for records to flush and partition offset data to be committed to offset storage before cancelling the process and restoring the offset data to be committed in a future attempt. The default is 5000, or 5 seconds.

SHUTDOWN_TIMEOUT

This environment variable is an advanced setting. Set this to the number of milliseconds to wait for tasks to shutdown gracefully while the connectors complete all processing, record any final data, and clean up resources. This is the total amount of time, not per task. All task have shutdown triggered, then they are waited on sequentially. The default is ***, or 10 seconds.

HEAP_OPTS

This environment variable is recommended. Use this to set the JVM options for the Kafka broker. By default a value of '-Xmx1G -Xms1G' is used, meaning that each Kafka broker uses 1GB of memory. Using too little memory may cause performance problems, while using too much may prevent the broker from starting properly given the memory available on the machine. Obviously the container must be able to use the amount of memory defined by this environment variable.

CONNECT_LOG4J_LOGGERS

This environment variable is optional. Use this to override the loggers used in log4j.properties for the property log4j.rootLogger. Additional environment variables can be provided for log4j logging with the CONNECT_LOG4J prefix, mapped to properties in the log4j.properties file as described below in Others.

LOG_LEVEL

This environment variable is optional. Use this to set the level of detail for Kafka's application log written to STDOUT and STDERR. Valid values are INFO (default), WARN, ERROR, DEBUG, or TRACE."

ENABLE_APICURIO_CONVERTERS

This environment variable is optional. Use this to enable Apicur.io converters with Apicurio Schema Registry by setting ENABLE_APICURIO_CONVERTERS=true as container env var. Valid values are false to disable (default) or true to enable Apicurio converters.

ENABLE_DEBEZIUM_SCRIPTING

This environment variable is optional. Use this to enable Debezium features that use scripting languages like Message Filtering or Content-based Routing SMT by setting ENABLE_DEBEZIUM_SCRIPTING=true as container env var. Valid values are false to disable (default) or true to enable scripting. Note: in order to prevent the execution of arbitrary scripting expressions, you should enable this option only if you've secured access to the Kafka Connect configuration interface appropriately.

ENABLE_JFR

This environment variable is optional. When set then Flight Recorder recording session is started for this run. This feature is useful for gathering of diagnostic information in case of performance or functional issues. Flight Recorder start options can be configured via JFR_RECORDING_ prefixed environment variables when the variables is converted to lowercase and underscores are replaced with dashes, e.g. JFR_RECORDING_PATH_TO_GC_ROOTS=true becomes path-to-gc-roots=true. Flight Recorder control options can be configured via JFR_OPT_ prefixed environment variables.

Others

Environment variables that start with CONNECT_ will be used to update the Kafka Connect worker configuration file. Each environment variable name will be mapped to a configuration property name by:

  1. removing the CONNECT_ prefix;
  2. lowercasing all characters; and
  3. converting all '_' characters to '.' characters

For example, the environment variable CONNECT_HEARTBEAT_INTERVAL_MS is converted to the heartbeat.interval.ms property. The container will then update the Kafka Connect worker configuration file to include the property's name and value.

The value of the environment variable may not contain a '@' character.

Ports

Containers created using this image will expose port 8083, which is the standard port bound to by the Kafka Connect service. You can use standard Docker options to map this to a different port on the host that runs the container.

Storing data

The Kafka Connect service run by this image stores no data in the container, but it does produce logs. The only way to keep these files is to use volumes that map specific directories inside the container to the local file system (or to OpenShift persistent volumes).

Log files

Although this image will send Kafka Connect service log output to standard output so it is visible as Docker logs, this image also configures the Kafka Connect service to write out more logs to a data volume at /kafka/logs. All logs are rotated daily.

Configuration

This image defines a data volume at /kafka/config where the broker's configuration files are stored. Note that these configuration files are always modified based upon the environment variables and linked containers. The best use of this data volume is to be able to see the configuration files used by Kafka, although with some care it is possible to supply custom configuration files that will be adapted and used upon startup.

查看更多 connect-base 相关镜像 →
careport/connect-base logo
careport/connect-base
暂无描述
100K+ pulls
上次更新:未知
r-base logo
r-base
R是一款开源的统计计算与图形绘制系统,具备强大的数据处理、分析、建模及可视化功能,拥有丰富的扩展包生态与活跃的全球社区支持,广泛应用于学术研究、数据分析、机器学习等领域,为用户提供从数据清洗到结果呈现的全流程解决方案。
56110M+ pulls
上次更新:未知
cimg/base logo
cimg/base
CircleCI基础便捷镜像,基于Ubuntu系统,为CI/CD流程提供稳定高效的构建环境支持。
20100M+ pulls
上次更新:未知
wikibase/wikibase logo
wikibase/wikibase
Wikibase套件镜像,集成MediaWiki与Wikibase,基于Apache运行,提供自安装和自维护的Wikibase部署方案。
12100K+ pulls
上次更新:未知
airbyte/python-connector-base logo
airbyte/python-connector-base
暂无描述
100K+ pulls
上次更新:未知
wikibase/wikibase-bundle logo
wikibase/wikibase-bundle
Wikibase Suite: MediaWiki with Wikibase on Apache. Self-install + self-maintained Wikibase Install.
350K+ pulls
上次更新:未知

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

MacOS OrbStack

MacOS OrbStack 容器配置

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
debezium/connect-base
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
咨询镜像拉取问题请 提交工单,官方技术交流群:1072982923
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
咨询镜像拉取问题请提交工单,官方技术交流群:
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.