国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Kafka3.3.1最新版安裝教程(無需zookeeper)

這篇具有很好參考價值的文章主要介紹了Kafka3.3.1最新版安裝教程(無需zookeeper)。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

下載地址

  • kafka下載地址

KRaft配置文件,可直接使用

路徑:kafka/3.3.1_1/libexec/config/kraft/server.properties

  ############################# Server Basics #############################

# The role of this server. Setting this puts us in KRaft mode
process.roles=broker,controller

# The node id associated with this instance's roles
node.id=1

# The connect string for the controller quorum
controller.quorum.voters=1@localhost:9093

############################# Socket Server Settings #############################

# The address the socket server listens on.
# Combined nodes (i.e. those with `process.roles=broker,controller`) must list the controller listener here at a minimum.
# If the broker listener is not defined, the default listener will use a host name that is 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://localhost:9092,CONTROLLER://localhost:9093

# Name of listener used for communication between brokers.
inter.broker.listener.name=PLAINTEXT

# Listener name, hostname and port the broker will advertise to clients.
# If not set, it uses the value for "listeners".
advertised.listeners=PLAINTEXT://localhost:9092

# A comma-separated list of the names of the listeners used by the controller.
# If no explicit mapping set in `listener.security.protocol.map`, default will be using PLAINTEXT protocol
# This is required if running in KRaft mode.
controller.listener.names=CONTROLLER

# 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=CONTROLLER:PLAINTEXT,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=/opt/homebrew/var/lib/kraft-combined-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

kafka命令

./bin/kafka-storage.sh random-uuid 會得到一個uuid

將uuid寫入配置文件中 ./bin/kafka-storage.sh format -t uuid -c ./config/kraft/server.properties

啟動命令 ./bin/kafka-server-start.sh ./config/kraft/server.properties

如果需要后臺啟動./bin/kafka-server-start.sh ./config/kraft/server.properties &

創(chuàng)建topic的命令bin/kafka-topics.sh --create --topic myfirsttopic --partitions 1 --replication-factor 1 --bootstrap-server localhost:9092

創(chuàng)建生產(chǎn)者的命令bin/kafka-console-producer.sh --broker-list localhost:9092 --topic myfirsttopic

創(chuàng)建消費者的命令bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic myfirsttopic --from-beginning

效果圖:

kafka無zookeeper安裝,java,kafka文章來源地址http://www.zghlxwxcb.cn/news/detail-519480.html

到了這里,關(guān)于Kafka3.3.1最新版安裝教程(無需zookeeper)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權(quán),不承擔相關(guān)法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務器費用

相關(guān)文章

  • 2023年最新版kali linux安裝教程

    2023年最新版kali linux安裝教程

    一、前期準備 前排提醒,文末有 綠色版 安裝包免費領(lǐng)??! 二、VMware虛擬機配置 1、打開vmware,點擊創(chuàng)建新的虛擬機 2、選擇自定義(高級)選項,點擊下一步 3、繼續(xù)下一步 4、選擇【稍后安裝操作系統(tǒng)】,然后點擊下一步 5、客戶機操作系統(tǒng)選擇【Linux】,版本選擇【Debian】,

    2023年04月16日
    瀏覽(31)
  • Linux安裝最新版Docker完整教程(建議收藏)

    Linux安裝最新版Docker完整教程(建議收藏)

    1.1 查看服務器系統(tǒng)版本以及內(nèi)核版本 1.2 查看服務器內(nèi)核版本 這里我們使用的是CentOS 7.4 系統(tǒng),內(nèi)核版本為3.10 1.3 安裝依賴包 1.4 設置阿里云鏡像源 2.1 Docker版本說明 2.2 docker-ce安裝 2.3 啟動docker并設置開機自啟 3.1 倉庫 (repository) 3.2 鏡像(Image) 3.3 容器(Container) 5.1 搜索鏡像 5.2

    2023年04月16日
    瀏覽(26)
  • Win11 系統(tǒng)Java17的安裝教程:最新版JDK 17.07下載、安裝、卸載詳解(最新版安裝包點擊文末名片免費獲取)

    Win11 系統(tǒng)Java17的安裝教程:最新版JDK 17.07下載、安裝、卸載詳解(最新版安裝包點擊文末名片免費獲取)

    博主貓頭虎的技術(shù)世界 ?? 歡迎來到貓頭虎的博客 — 探索技術(shù)的無限可能! 專欄鏈接 : ?? 精選專欄 : 《面試題大全》 — 面試準備的寶典! 《IDEA開發(fā)秘籍》 — 提升你的IDEA技能! 《100天精通Golang》 — Go語言學習之旅! 領(lǐng)域矩陣 : ?? 貓頭虎技術(shù)領(lǐng)域矩陣 : 深入探索

    2024年02月02日
    瀏覽(94)
  • (2023 最新版)IntelliJ IDEA 下載安裝及配置教程

    (2023 最新版)IntelliJ IDEA 下載安裝及配置教程

    IntelliJ IDEA 簡稱 IDEA,由 JetBrains 公司開發(fā),是 Java 編程語言開發(fā)的集成環(huán)境,具有美觀,高效等眾多特點。在智能代碼助手、代碼自動提示、重構(gòu)、J2EE 支持、各類版本工具(Git、SVN 等)、JUnit、CVS 整合、代碼分析、創(chuàng)新的 GUI 設計等方面都有很好的應用。 IntelliJ IDEA 提供了

    2024年02月07日
    瀏覽(19)
  • mathtype7.0最新版安裝下載及使用教程

    mathtype7.0最新版安裝下載及使用教程

    MathType是一款專業(yè)的數(shù)學公式編輯器,理科生專用的必備工具,可應用于教育教學、科研機構(gòu)、工程學、論文寫作、期刊排版、編輯理科試卷等領(lǐng)域。2014年11月,Design Science將MathType升級到MathType 6.9版本。在蘇州蘇杰思網(wǎng)絡有限公司與Design Science公司的共同努力下,2015年3月,

    2024年02月03日
    瀏覽(20)
  • AWVS-Linux最新版保姆級 安裝教程

    AWVS-Linux最新版保姆級 安裝教程

    免責聲明: 由于傳播、利用本文章所提供的信息而造成的任何直接或者間接的后果及損失,均由使用者本人負責,文章及作者不為此承擔任何責任,一旦造成后果請自行承擔!如有侵權(quán)煩請告知,我們會立即刪除并致歉。謝謝! Acunetix AWVS Version: 23.11.231123131 Version: 23.11.2311

    2024年01月21日
    瀏覽(20)
  • Qt 最新版本安裝教程及國內(nèi)鏡像加速方法

    Qt 最新版本安裝教程及國內(nèi)鏡像加速方法

    標題:Qt 最新版本安裝教程及國內(nèi)鏡像加速方法 導語:本文將為您介紹如何使用國內(nèi)鏡像加速安裝 Qt 最新版本。Qt 是一款跨平臺的 C++ 應用程序開發(fā)框架,具有強大的功能和豐富的工具集。通過以下步驟,您可以快速安裝 Qt,并利用國內(nèi)鏡像加速下載過程,提高安裝效率。

    2024年02月16日
    瀏覽(18)
  • Git2023最新版下載與安裝教程(Windows版)

    Git2023最新版下載與安裝教程(Windows版)

    打開Git官網(wǎng)下載地址: https://git-scm.com/downloads 點擊Download for Windows 選擇git版本進行下載 雙擊安裝包 點擊Next 選擇Git的安裝路徑,點擊Next 選擇組件,默認的就好,點擊Next 后面的步驟一直使用默認配置選項,無腦Next,直到安裝進度條出現(xiàn) 安裝完成之后,點擊Finshed 啟動git測試

    2024年02月12日
    瀏覽(48)
  • 最新版 Proteus 8.15 Professional 圖文安裝教程(附安裝包)

    最新版 Proteus 8.15 Professional 圖文安裝教程(附安裝包)

    大家好,我是梁國慶。 Proteus 是世界上唯一將電路仿真軟件、PCB設計軟件和虛擬模型仿真軟件三合一的設計平臺。 本篇博主將手把手帶領(lǐng)大家安裝最新版 Proteus 8.15。 若圖片加載超時,可點此鏈接跳轉(zhuǎn)進行閱讀。 https://mp.weixin.qq.com/s/pG8UpBzyEXkDS0r3fkTgRg Proteus 軟件是英國 Lab Ce

    2024年02月03日
    瀏覽(17)
  • 最新版海豚調(diào)度dolphinscheduler-3.1.3安裝部署詳細教程

    最新版海豚調(diào)度dolphinscheduler-3.1.3安裝部署詳細教程

    本文基于Ambari集群搭建最新版本的海豚調(diào)度dolphinscheduler-3.1.3版本,后續(xù)會嘗試整合到Ambari中。 安裝dolphinscheduler需要在環(huán)境中安裝如下依賴 ① JDK8 下載JDK (1.8+),安裝并配置 JAVA_HOME 環(huán)境變量,并將其下的 bin 目錄追加到 PATH 環(huán)境變量中 ② 數(shù)據(jù)庫:PostgreSQL (8.2.15+) 或者 MySQL

    2023年04月15日
    瀏覽(24)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包