-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from waitspring/Kafka
Kafka
- Loading branch information
Showing
9 changed files
with
316 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# | ||
# 文件位置: /etc/kafka/connect-file-sink.properties | ||
# | ||
|
||
|
||
# 连接器的名称为 kafka-file-sink | ||
name=kafka-file-sink | ||
# 连接器的工作模式为 FileStreamSink 类型 | ||
connector.class=FileStreamSink | ||
# 连接器的最大并发任务为 1 个任务 | ||
tasks.max=1 | ||
# 连接器的文本文件输出对象为 /tmp/kafka-config.txt | ||
file=/tmp/kafka-config.txt | ||
# 连接器的主题订阅对象为 kafka-file | ||
topics=kafka-file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# | ||
# 文件位置: /etc/kafka/connect-file-source.properties | ||
# | ||
|
||
|
||
# 连接器的名称为 kafka-file-source | ||
name=kafka-file-source | ||
# 连接器的工作模式为 FileStreamSource 类型 | ||
connector.class=FileStreamSource | ||
# 连接器的最大并发任务为 1 个任务 | ||
tasks.max=1 | ||
# 连接器的文本文件扫描对象为 /etc/kafka/server.properties | ||
file=/etc/kafka/server.properties | ||
# 连接器的主题发布对象为 kafka-file | ||
topic=kafka-file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# 文件位置: /etc/kafka/connect-standalone.properties | ||
# | ||
|
||
|
||
# Kafka Connect 组件连接到 Kafka 集群服务 | ||
bootstrap.servers=kafka-0.season.com:9092,kafka-1.season.com:9092,kafka-2.season.com:9092 | ||
|
||
# Kafka Connect 组件的转换器配置 | ||
# 加载 Json 数据格式的转换器作为消息键的转换器 | ||
key.converter=org.apache.kafka.connect.json.JsonConverter | ||
# 允许 Json 数据格式的转换器嵌入模式信息到消息键内 | ||
key.converter.schemas.enable=true | ||
# 加载 Json 数据格式的转换器作为消息值的转换器 | ||
value.converter=org.apache.kafka.connect.json.JsonConverter | ||
# 允许 Json 数据格式的转换器嵌入模式信息到消息值内 | ||
value.converter.schemas.enable=true | ||
|
||
# Kafka Connect 使用 /var/kafka/data/connect.offsets 文件存储偏移量元数据 | ||
offset.storage.file.filename=/var/kafka/data/connect.offsets | ||
# Kafka Connect 每隔 10000 毫秒 (10 秒钟) 刷新一次偏移量文件 | ||
offset.flush.interval.ms=10000 | ||
|
||
# Kafka Connect 加载固定库文件 | ||
plugin.path=/usr/local/kafka/libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# 设置 Kafka REST 组件名称为 kafka-rest | ||
id=kafka-rest | ||
# 设置 Kafka REST 组件监听 8082 端口 | ||
listeners=http://0.0.0.0:8082 | ||
# 设置 Kafka REST 组件连接 Kafka Schema Registry 组件的参数配置 | ||
schema.registry.url=http://kafka-0.season.com:8081,http://kafka-1.season.com:8081,http://kafka-2.season.com:8081 | ||
# 设置 Kafka REST 组件连接 ZooKeeper 集群 | ||
zookeeper.connect=zookeeper-0.season.com:2181,zookeeper-1.season.com:2181,zookeeper-2.season.com:2181 | ||
# 设置 Kafka REST 组件连接 Kafka 集群 | ||
bootstrap.servers=PLAINTEXT://kafka-0.season.com:9092,kafka-1.season.com:9092,kafka-2.season.com:9092 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# 设置 Kafka Schema Registry 组件监听 8081 端口 | ||
listeners=http://0.0.0.0:8081 | ||
# 设置 Kafka Schema Registry 组件连接到 Kafka 集群 | ||
kafkastore.bootstrap.servers=PLAINTEXT://kafka-0.season.com:9092,kafka-1.season.com:9092,kafka-2.season.com:9092 | ||
# 设置 Kafka Schema Registry 组件使用 _schemas 主题 | ||
kafkastore.topic=_schemas | ||
# 关闭 Kafka Schema Registry 组件的 DEBUG 日志模式 | ||
debug=false | ||
metadata.encoder.secret=REPLACE_ME_WITH_HIGH_ENTROPY_STRING | ||
resource.extension.class=io.confluent.dekregistry.DekRegistryResourceExtention |