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

【異常解決】The coordinator is not available

這篇具有很好參考價(jià)值的文章主要介紹了【異常解決】The coordinator is not available。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

問題

最近上線跑了一個(gè)flink任務(wù),運(yùn)行不久,就會(huì)掛掉,初步查看日志報(bào)錯(cuò)如下

WARN  org.apache.flink.connector.kafka.source.reader.KafkaSourceReader [] - Failed to commit consumer offsets for checkpoint 1
org.apache.kafka.clients.consumer.RetriableCommitFailedException: Offset commit failed with a retriable exception. You should retry committing the latest consumed offsets.
Caused by: org.apache.kafka.common.errors.CoordinatorNotAvailableException: The coordinator is not available.

報(bào)錯(cuò)原因?yàn)門he coordinator is not available.
報(bào)錯(cuò)在網(wǎng)上搜了一下,根據(jù)網(wǎng)友的經(jīng)驗(yàn),是消費(fèi)組協(xié)調(diào)leader不存在導(dǎo)致
查看kafka __consumer_offsets topic
【異常解決】The coordinator is not available

kafka-topics.sh -bootstrap-server node1:9092,node2:9092,node3:9092,node4:9092,node5:9092 --topic __consumer_offsets --describe

【異常解決】The coordinator is not available
發(fā)現(xiàn)確實(shí)有Leader:none的

可能原因是 __consumer_offset topic的默認(rèn)分區(qū)是50,但是備份只有1份; kafka集群部署了5臺(tái),也就是5個(gè)brokers
消費(fèi)者組連接kafka,并會(huì)請(qǐng)求某一臺(tái)來查找Coordinator(協(xié)調(diào)者),如果連接的機(jī)器上沒有備份就不會(huì)有Leader,就會(huì)出現(xiàn)
找不到Coordinator(協(xié)調(diào)者)
查看offsets.topic.replication.factor默認(rèn)配置

cat kafak/config/server.properties | grep offsets.topic.replication.factor

默認(rèn)值果然只是1;文章來源地址http://www.zghlxwxcb.cn/news/detail-483981.html

解決方式

  • 1、停止kafka, 修改kafka配置 config/server.properties添加
    修改成broker的數(shù)量
offsets.topic.replication.factor=3
  • 2、刪除zookeeper配置信息
./bin/zkCli.sh -server 127.0.0.1:2181
  • 刪除/config/topics/__consumer_offsets
delete /config/topics/__consumer_offsets
  • 刪除/brokers/topics/__consumer_offsets
deleteall /brokers/topics/__consumer_offsets
  • 3、重啟kafka

到了這里,關(guān)于【異常解決】The coordinator is not available的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • Vite解決報(bào)錯(cuò)(Top-level await is not available in the configured target environment)

    Vite解決報(bào)錯(cuò)(Top-level await is not available in the configured target environment)

    項(xiàng)目在用vite打包時(shí)報(bào)錯(cuò) 報(bào)錯(cuò)信息:“Top-level await is not available in the configured target environmen“ 翻譯 “頂級(jí)等待在配置的目標(biāo)環(huán)境中不可用” 解決問題 npm安裝vite-plugin-top-level-await插件 配置vite.config.js文件 之后在plugins中添加topLevelAwait方法 最后重新打包即可

    2024年02月10日
    瀏覽(23)
  • 解決錯(cuò)誤:pip is configured with locations that require TLS/SSL,the ssl module in Python is not available

    解決錯(cuò)誤:pip is configured with locations that require TLS/SSL,the ssl module in Python is not available。 pip安裝包出現(xiàn)錯(cuò)誤類似如下: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting protobuf=4.25.2 (fr

    2024年02月19日
    瀏覽(24)
  • maven打包失?。簍he pom for XXX is missing, no dependency information available 問題解決

    maven打包失?。簍he pom for XXX is missing, no dependency information available 問題解決

    問題描述:springcloud項(xiàng)目,idea打包pacake、compile時(shí)報(bào)錯(cuò),THE POM for ... is missing,no dependency information available,此時(shí)清理緩存,和clean之后還是會(huì)報(bào)這個(gè)錯(cuò)。 查詢報(bào)錯(cuò)信息是因?yàn)閜om文件丟失才會(huì)報(bào)這個(gè)錯(cuò),但是項(xiàng)目中pom文件是存在的,并非丟失。 由于是多項(xiàng)目管理,項(xiàng)目是有相互依

    2024年02月11日
    瀏覽(22)
  • Flink CDC報(bào)The connector is trying to read binlog starting at xxx but this is no longer available問題解決

    Flink CDC報(bào)The connector is trying to read binlog starting at xxx but this is no longer available問題解決

    問題是筆者最近在使用FlinkCDC 2.3.0 捕獲MySQL binlog日志時(shí)遇到的,MySQL使用的阿里云的RDS, MysqlCDC 使用讀賬號(hào)以 Initinal 模式,任務(wù)已經(jīng)運(yùn)行了一段時(shí)間突然報(bào)的錯(cuò),之前在使用FlinkCDC時(shí)也曾遇到過,設(shè)置了一些參數(shù)后沒有再出現(xiàn)過,一直比較忙沒有來得及總結(jié)下來。但是今天同

    2024年02月07日
    瀏覽(23)
  • 解決啟用proc_open時(shí)提示The Process class relies on proc_open, which is not available on your PHP i nstall.

    有時(shí)候在Ubuntu部署laravel項(xiàng)目的時(shí)候安裝composer install會(huì)提示The Process class relies on proc_open, which is not available on your PHP installation.這種問題有兩種解決方: 第一種就是網(wǎng)上說的刪除php.ini文件里的disable_functions選項(xiàng)中的proc_open 詳細(xì)命令如下: 每個(gè)人安裝的PHP版本都不同,安裝的路

    2024年02月04日
    瀏覽(28)
  • Visual studio community 2013過期,登錄賬號(hào)顯示The online service is not available.

    Visual studio community 2013過期,登錄賬號(hào)顯示The online service is not available.

    community 2013 with update 5 社區(qū)版本的是免費(fèi)版,只需要登錄賬號(hào)就能繼續(xù)使用,但是點(diǎn)擊登錄賬號(hào)時(shí)總是跳出 The online service is not available. 在任務(wù)欄上的搜索框中,鍵入 regedit ,然后選擇\\\"注冊(cè)表編輯器 打開注冊(cè)表編輯器找到如下路徑 HKEY_LOCAL_MACHINESOFTWAREWOW6432NodeMicrosoft.NETFra

    2024年02月07日
    瀏覽(97)
  • 解決Ubuntu中“is not in the sudoers file“問題

    在Ubuntu中,使用sudo命令可以以超級(jí)用戶的權(quán)限執(zhí)行特權(quán)操作。然而,有時(shí)在運(yùn)行sudo命令時(shí),可能會(huì)遇到類似于\\\"username is not in the sudoers file\\\"的錯(cuò)誤消息,這意味著當(dāng)前用戶沒有被授權(quán)執(zhí)行sudo命令。 這個(gè)問題通常可以通過以下步驟解決: 步驟 1: 切換到具有管理員權(quán)限的用戶

    2024年02月05日
    瀏覽(16)
  • pip安裝成功,但下載依賴時(shí)報(bào)錯(cuò)the ssl module in Python is not available

    執(zhí)行命令,能夠正確得展示pip當(dāng)前版本,證明pip安裝沒有問題,但是使用pip下載依賴時(shí)就會(huì)報(bào)錯(cuò): WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 很好理解,就是the ssl module 這個(gè)ssl模塊版本太低了 python版本需要和openssl的版本需要相對(duì)匹

    2024年02月05日
    瀏覽(14)
  • IDEA git項(xiàng)目 tomcat Tomcat出現(xiàn)404,The requested resource is not available 原因分析

    IDEA git項(xiàng)目 tomcat Tomcat出現(xiàn)404,The requested resource is not available 原因分析

    剛用 idea 來寫java Web項(xiàng)目的時(shí)候 經(jīng)常遇到Tomcat配置相關(guān)的問題,其中404 算是比較好解決的問題 目前我吧這幾種情況歸納了主要4種情況 這種情況 新手最容易出現(xiàn)的問題, 解決方案也簡(jiǎn)單我們右鍵先澤進(jìn)入項(xiàng)目 ModulesSetting 查看配置的是否有問題 這主要看下 我們 Web項(xiàng)目根目錄

    2024年02月04日
    瀏覽(23)
  • Can‘t connect to HTTPS URL because the SSL module is not available

    miniconda自帶的python3.8 在使用pip安裝包的時(shí)候報(bào)錯(cuò) 將conda的安裝目錄下的 復(fù)制到DLLs目錄下 https://github.com/conda/conda/issues/8273 https://blog.csdn.net/Sky_Tree_Delivery/article/details/109078288

    2024年02月13日
    瀏覽(53)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包