# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This configuration file is intended for use in ZK-based mode, where Apache ZooKeeper is required.
# See kafka.server.KafkaConfig for additional details and defaults
#
############################# Server Basics #############################
# The id of the broker. This must be set to a unique integer for each broker.
broker.id=0
############################# Socket Server Settings #############################
# The address the socket server listens on. If not configured, the host name will be equal to the value of
# java.net.InetAddress.getCanonicalHostName(), with PLAINTEXT listener name, and port 9092.
# FORMAT:
# listeners = listener_name://host_name:port
# EXAMPLE:
# listeners = PLAINTEXT://your.host.name:9092
#listeners=PLAINTEXT://:9092
# Listener name, hostname and port the broker will advertise to clients.
# If not set, it uses the value for "listeners".
#advertised.listeners=PLAINTEXT://your.host.name:9092
# Maps listener names to security protocols, the default is for them to be the same. See the config documentation for more details
#listener.security.protocol.map=PLAINTEXT:PLAINTEXT,SSL:SSL,SASL_PLAINTEXT:SASL_PLAINTEXT,SASL_SSL:SASL_SSL
# The number of threads that the server uses for receiving requests from the network and sending responses to the network
num.network.threads=3
# The number of threads that the server uses for processing requests, which may include disk I/O
num.io.threads=8
# The send buffer (SO_SNDBUF) used by the socket server
socket.send.buffer.bytes=102400
# The receive buffer (SO_RCVBUF) used by the socket server
socket.receive.buffer.bytes=102400
# The maximum size of a request that the socket server will accept (protection against OOM)
socket.request.max.bytes=104857600
############################# Log Basics #############################
# A comma separated list of directories under which to store log files
log.dirs=/tmp/kafka-logs
# The default number of log partitions per topic. More partitions allow greater
# parallelism for consumption, but this will also result in more files across
# the brokers.
num.partitions=1
# The number of threads per data directory to be used for log recovery at startup and flushing at shutdown.
# This value is recommended to be increased for installations with data dirs located in RAID array.
num.recovery.threads.per.data.dir=1
############################# Internal Topic Settings #############################
# The replication factor for the group metadata internal topics "__consumer_offsets" and "__transaction_state"
# For anything other than development testing, a value greater than 1 is recommended to ensure availability such as 3.
offsets.topic.replication.factor=1
transaction.state.log.replication.factor=1
transaction.state.log.min.isr=1
############################# Log Flush Policy #############################
# Messages are immediately written to the filesystem but by default we only fsync() to sync
# the OS cache lazily. The following configurations control the flush of data to disk.
# There are a few important trade-offs here:
# 1. Durability: Unflushed data may be lost if you are not using replication.
# 2. Latency: Very large flush intervals may lead to latency spikes when the flush does occur as there will be a lot of data to flush.
# 3. Throughput: The flush is generally the most expensive operation, and a small flush interval may lead to excessive seeks.
# The settings below allow one to configure the flush policy to flush data after a period of time or
# every N messages (or both). This can be done globally and overridden on a per-topic basis.
# The number of messages to accept before forcing a flush of data to disk
#log.flush.interval.messages=10000
# The maximum amount of time a message can sit in a log before we force a flush
#log.flush.interval.ms=1000
############################# Log Retention Policy #############################
# The following configurations control the disposal of log segments. The policy can
# be set to delete segments after a period of time, or after a given size has accumulated.
# A segment will be deleted whenever *either* of these criteria are met. Deletion always happens
# from the end of the log.
# The minimum age of a log file to be eligible for deletion due to age
log.retention.hours=168
# A size-based retention policy for logs. Segments are pruned from the log unless the remaining
# segments drop below log.retention.bytes. Functions independently of log.retention.hours.
#log.retention.bytes=1073741824
# The maximum size of a log segment file. When this size is reached a new log segment will be created.
#log.segment.bytes=1073741824
# The interval at which log segments are checked to see if they can be deleted according
# to the retention policies
log.retention.check.interval.ms=300000
############################# Zookeeper #############################
# Zookeeper connection string (see zookeeper docs for details).
# This is a comma separated host:port pairs, each corresponding to a zk
# server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002".
# You can also append an optional chroot string to the urls to specify the
# root directory for all kafka znodes.
zookeeper.connect=localhost:2181
# Timeout in ms for connecting to zookeeper
zookeeper.connection.timeout.ms=18000
############################# Group Coordinator Settings #############################
# The following configuration specifies the time, in milliseconds, that the GroupCoordinator will delay the initial consumer rebalance.
# The rebalance will be further delayed by the value of group.initial.rebalance.delay.ms as new members join the group, up to a maximum of max.poll.interval.ms.
# The default value for this is 3 seconds.
# We override this to 0 here as it makes for a better out-of-the-box experience for development and testing.
# However, in production environments the default value of 3 seconds is more suitable as this will help to avoid unnecessary, and potentially expensive, rebalances during application startup.
group.initial.rebalance.delay.ms=0
没有合适的资源?快使用搜索试试~ 我知道了~
kafka-2.13-3.4.0.tgz
共203个文件
jar:103个
sh:38个
bat:30个
需积分: 0 38 下载量 155 浏览量
更新于2023-02-10
收藏 101.37MB TGZ 举报
《深入理解Kafka:分布式消息系统的精髓》
Kafka,由LinkedIn开发并开源,是一款高性能、分布式的流处理平台,其设计目标是处理海量实时数据。它的核心特性是能够以高吞吐量进行消息的发布与订阅,同时保证数据的可靠传输。Kafka 2.13-3.4.0版本的发布,进一步提升了性能和稳定性,为开发者提供了更多实用功能。
1. **分布式架构**:
Kafka采用分布式架构,可以在多台服务器上部署,通过分区(Partitions)和副本(Replicas)实现水平扩展和高可用性。每个分区都有一个主副本,负责处理写操作,其他副本作为备份,当主副本故障时,可以自动切换。
2. **消息持久化**:
Kafka将消息持久化到硬盘,即使在服务器宕机后,也能保证数据不丢失。这种特性使得Kafka在大数据领域被广泛应用,用于日志收集、流式处理和实时分析。
3. **高吞吐量**:
Kafka的设计允许它在单个节点上每秒处理数十万条消息,这得益于其高效的I/O模型和批量操作。在分布式环境中,吞吐量可进一步提升。
4. **发布订阅模式**:
Kafka支持发布订阅模式,生产者发布消息到主题(Topics),消费者订阅感兴趣的主题并消费消息。这种模式灵活且易于扩展,适合处理多种场景的数据交换。
5. **消费者组**:
Kafka引入了消费者组的概念,每个组内的消费者会均衡分配主题的分区,实现负载均衡。同一分区内的消息只会被组内一个消费者消费,避免了消息重复处理。
6. **零复制(Zero Copy)**:
Kafka利用零复制技术,减少了操作系统在内存和磁盘间的数据拷贝,提高了性能。生产者将消息直接写入操作系统缓冲区,然后由操作系统直接发送给网络,减少了CPU的负担。
7. **Kafka Streams**:
Kafka 2.13-3.4.0版本包含Kafka Streams库,它是一个轻量级的流处理库,可以直接在Kafka集群上运行,用于构建实时数据处理应用。
8. **Kafka Connect**:
Kafka Connect提供了一种标准接口,用于集成其他系统,如数据库、Hadoop等,实现数据的导入导出。它支持连接器(Connectors)的开发,方便开发者快速构建数据管道。
9. **Schema Registry**:
在Kafka中,消息通常带有结构化的数据,Schema Registry用于管理这些数据的模式,保证了数据的兼容性和一致性。
10. **监控与管理**:
Kafka提供了命令行工具和Web界面(Kafka Manager)来监控和管理集群状态,包括查看主题、消费者、生产者的状态,调整配置,以及进行数据清理等操作。
总结来说,Kafka以其强大的分布式能力、高吞吐量和消息持久化等特性,成为了实时数据处理的关键组件。Kafka 2.13-3.4.0的发布,不仅优化了性能,还提供了更多便利的开发工具,使得开发者能更高效地构建大规模的数据处理系统。无论是日志收集、实时分析还是流处理应用,Kafka都展现出了其不可替代的价值。
收起资源包目录
kafka-2.13-3.4.0.tgz (203个子文件)
eclipse-public-license-2.0 14KB
eclipse-distribution-license-1.0 2KB
CDDL+GPL-1.1 38KB
argparse-MIT 1KB
kafka-run-class.bat 5KB
kafka-server-start.bat 1KB
connect-distributed.bat 1KB
connect-standalone.bat 1KB
zookeeper-server-start.bat 1KB
zookeeper-shell.bat 1KB
kafka-server-stop.bat 997B
kafka-streams-application-reset.bat 972B
kafka-producer-perf-test.bat 940B
kafka-consumer-perf-test.bat 938B
kafka-console-producer.bat 925B
kafka-console-consumer.bat 925B
zookeeper-server-stop.bat 905B
kafka-metatada-quorum.bat 895B
kafka-transactions.bat 893B
kafka-reassign-partitions.bat 888B
kafka-replica-verification.bat 886B
kafka-delegation-tokens.bat 885B
kafka-broker-api-versions.bat 885B
kafka-leader-election.bat 884B
kafka-delete-records.bat 883B
kafka-consumer-groups.bat 883B
kafka-dump-log.bat 878B
kafka-log-dirs.bat 877B
kafka-get-offsets.bat 877B
kafka-configs.bat 876B
kafka-topics.bat 875B
kafka-mirror-maker.bat 874B
kafka-storage.bat 874B
kafka-acls.bat 873B
classgraph-MIT 1KB
trogdor.conf 1KB
DWTFYWTPL 484B
rocksdbjni-7.1.2.jar 52.34MB
scala-library-2.13.10.jar 5.67MB
zstd-jni-1.5.2-1.jar 5.61MB
kafka_2.13-3.4.0.jar 5.29MB
kafka-clients-3.4.0.jar 4.82MB
scala-reflect-2.13.10.jar 3.57MB
snappy-java-1.1.8.4.jar 1.88MB
kafka-streams-3.4.0.jar 1.64MB
jackson-databind-2.13.4.2.jar 1.46MB
zookeeper-3.6.3.jar 1.2MB
jersey-common-2.34.jar 1.13MB
jline-3.21.0.jar 971KB
jersey-server-2.34.jar 925KB
javassist-3.27.0-GA.jar 764KB
jetty-server-9.4.48.v20220622.jar 715KB
connect-runtime-3.4.0.jar 678KB
lz4-java-1.8.0.jar 667KB
netty-common-4.1.78.Final.jar 638KB
scala-java8-compat_2.13-1.0.2.jar 625KB
jetty-util-9.4.48.v20220622.jar 569KB
kafka-metadata-3.4.0.jar 560KB
netty-handler-4.1.78.Final.jar 518KB
commons-lang3-3.8.1.jar 490KB
netty-transport-4.1.78.Final.jar 470KB
jackson-module-scala_2.13-2.13.4.jar 452KB
jackson-core-2.13.4.jar 366KB
trogdor-3.4.0.jar 334KB
netty-codec-4.1.78.Final.jar 329KB
reload4j-1.2.19.jar 326KB
jetty-client-9.4.48.v20220622.jar 318KB
netty-buffer-4.1.78.Final.jar 297KB
jose4j-0.7.9.jar 269KB
plexus-utils-3.3.0.jar 257KB
jersey-client-2.34.jar 253KB
zookeeper-jute-3.6.3.jar 245KB
jetty-http-9.4.48.v20220622.jar 229KB
hk2-locator-2.6.1.jar 199KB
hk2-api-2.6.1.jar 196KB
kafka-raft-3.4.0.jar 184KB
jetty-io-9.4.48.v20220622.jar 179KB
kafka-streams-scala_2.13-3.4.0.jar 161KB
kafka-storage-3.4.0.jar 151KB
jetty-servlet-9.4.48.v20220622.jar 143KB
jakarta.ws.rs-api-2.1.6.jar 137KB
netty-transport-classes-epoll-4.1.78.Final.jar 136KB
kafka-tools-3.4.0.jar 130KB
hk2-utils-2.6.1.jar 129KB
javax.ws.rs-api-2.1.1.jar 124KB
jaxb-api-2.3.0.jar 123KB
jetty-security-9.4.48.v20220622.jar 116KB
jakarta.xml.bind-api-2.3.3.jar 113KB
jetty-servlets-9.4.48.v20220622.jar 105KB
connect-mirror-3.4.0.jar 104KB
reflections-0.9.12.jar 103KB
jackson-dataformat-csv-2.13.4.jar 103KB
connect-transforms-3.4.0.jar 103KB
metrics-core-4.1.12.1.jar 103KB
connect-api-3.4.0.jar 100KB
kafka-server-common-3.4.0.jar 95KB
javax.servlet-api-3.1.0.jar 94KB
jakarta.validation-api-2.0.2.jar 90KB
argparse4j-0.7.0.jar 88KB
metrics-core-2.2.0.jar 80KB
共 203 条
- 1
- 2
- 3
资源推荐
资源预览
资源评论
2023-12-19 上传
2020-08-08 上传
158 浏览量
183 浏览量
2021-11-15 上传
103 浏览量
2022-02-17 上传
2022-02-17 上传
2022-07-01 上传
2022-02-17 上传
156 浏览量
2022-06-12 上传
181 浏览量
5星 · 资源好评率100%
122 浏览量
5星 · 资源好评率100%
资源评论
- #完美解决问题
- #运行顺畅
- #内容详尽
- #全网独家
- #注释完整
qxmjava
- 粉丝: 24
- 资源: 708
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 健康与健身追踪数据集,3,000名参与者为期一年的数据
- lbm耦合相场法,模拟等轴晶生长,仅供学习参考,大小可自行调节,包括规则生长以及不规则生长 软件:MATLAB 雪花枝晶模拟 软件:comsol
- 胶合板带锯sw16全套技术资料100%好用.zip
- 2- 深蓝词库转换imewlconverter-v3.1.0 支持新版搜狗用户bin词库解析
- Fluent中udf应用案例讲解-录制3节 1.渐缩渐扩管非定常模拟-出口压力随udf加载,随时间变化的函数; 2.液态金属流通模拟-利用udf自定义物性参数; 3.多孔介质模拟-利用udf函数功
- Sim-EKB-Install-2024-12-07-Run-Admin 博途 V20授权
- 船舶fossen模型,基于模型预测控制算法的船舶轨迹跟踪控制,MPC船舶轨迹跟踪 1、跟踪五边形轨迹 2、sin型轨迹 3、直线估计 备注:提供m文件matlab仿真程序、不辅导、代码注释详细、不 款
- 胶条自动组装机sw18可编辑全套技术资料100%好用.zip
- 开关件检测sw18可编辑全套技术资料100%好用.zip
- 2-AsrTools:智能语音转文字工具
- 2023年全球摩托车液压减震器市场规模大约为1,255.9百万美元
- 预计2030年全球串口屏市场规模将达到6.9亿美元
- 电动机,发电机的参数灵敏度分析 步骤一,基于有限元法采集数据 步骤二,基于Matlab程序进行参数灵敏度分析 步骤三,分析结果绘图
- 可旋转的平面移动平台sw18全套技术资料100%好用.zip
- 沥青搅拌设备sw18全套技术资料100%好用.zip
- 预计2030年全球放疗设备市场规模将达到42亿美元
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功