{"rsdb":{"rid":"309151","subhead":"","postdate":"0","aid":"224313","fid":"120","uid":"1","topic":"1","content":"
\n
\n \n \u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u672a\u7ecf\u535a\u4e3b\u5141\u8bb8\u4e0d\u5f97\u8f6c\u8f7d\u3002 https:\/\/blog.csdn.net\/luozhonghua2014\/article\/details\/80369469 <\/div>\n \n \n
\n

kafka\u51fa\u73b0:<\/p>

Error while fetching metadata with correlation id : {LEADER_NOT_AVAILABLE}
<\/p>

\u8868\u793a\u65e0\u6cd5\u8bc6\u522bkafka hostname<\/p>

\u6b63\u786e\u5904\u7406\u59ff\u52bf<\/strong><\/p>

1\u3001\u4fee\u6539server.properties\u5982\u4e0b\uff0c\u76ee\u7684\u662f\u8ba9kafka\u76d1\u542c\u7684\u5230<\/p>

vi \/opt\/kafka\/kafka\/config\/server.properties<\/p>

<\/p>

\"\"
<\/p>


<\/p>

2 ps -ef | grep kafka<\/p>

kill -9 kafka\u7684pid<\/p>

3 ps -ef | grep zookeeper<\/p>

kill -9 zookeeper\u7684pid<\/p>

4 \u542f\u52a8service zookeeper start<\/p>

\u542f\u52a8kafka :bin\/kafka-server-start.sh config\/server.properties<\/p>

5 \u6d4b\u8bd5<\/p>

bin\/kafka-console-producer.sh --broker-list localhost:9092 --topic test7
<\/p>

\"\"<\/p>

bin\/kafka-console-consumer.sh --zookeeper localhost:2181 --topic test7 --from-beginning
<\/p>

\"\"
<\/p>


<\/p>

\u4ee5\u4e0a\u4ec5\u4e3a\u672c\u5730\u670d\u52a1\u5668\u64cd\u4f5c\u53ef\u884c\uff0c\u8fdc\u7a0b\u8bbf\u95ee\u5c31\u4f1a\u62a5<\/p>

o.a.kafka.common.network.Selector - Connection with \/192.168.176.136 disconnected
java<\/a>.net.ConnectException: Connection refused: no further information<\/span><\/strong>
<\/p>


<\/p>

\u5982\u679c\u8981\u672c\u5730\u548c\u8fdc\u7a0b\u8bbf\u95ee\u90fd\u6ca1\u6709\u95ee\u9898\uff0c\u89e3\u51b3\u5982\u4e0b<\/p>

\u91cd\u590d2\u30013\u64cd\u4f5c<\/p>

\u7136\u540e\u589e\u52a0\u548c\u4fee\u6539\u5982\u4e0b<\/p>

vi \/opt\/kafka\/kafka\/config\/server.properties
<\/p>

\"\"
<\/p>


<\/p>

\u8fdb\u884c\u8fdc\u7a0btelnet\u6d4b\u8bd5<\/p>

telnet 192.168.176.136 9092<\/p>

\"\"
<\/p>

\u6d4b\u8bd5\u6210\u529f<\/p>


<\/p>

\u8fdb\u884c\u672c\u5730\u6d4b\u8bd5<\/p>

\"\"
<\/p>

\"\"
<\/p>


<\/p>

\u8fdb\u884c\u8fdc\u7a0b\u7a0b\u5e8f\u8bbf\u95ee\uff0c\u6210\u529f\u8bbf\u95ee<\/p>

\"\"
<\/p>


<\/p>

\u53c2\u8003<\/p>

https:\/\/www.2cto.com\/net\/201801\/712758.html \u6ce8\u610f\u8fd9\u4e2a\u4e0e\u89e3\u51b3\u7684\u7248\u672c\u4e0d\u540c
<\/p>

http:\/\/www.mamicode.com\/info-detail-2031083.html
<\/p>


<\/p> <\/div>\n <\/div>","orderid":"0","title":"Error while fetching metadata with correlation id   : {LEADER_NOT_AVAILABLE} \u6b63\u786e\u5904\u7406\u59ff\u52bf","smalltitle":"","mid":"0","fname":"Kafka","special_id":"0","bak_id":"0","info":"0","hits":"886","pages":"1","comments":"0","posttime":"2019-05-16 02:18:45","list":"1557944325","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"
Error<\/A> while<\/A> fetching<\/A> metadata<\/A> with<\/A> correlation<\/A>  <\/A> LEADER_NOT_AVAILABLE<\/A> \u6b63\u786e<\/A> \u5904\u7406<\/A> \u59ff\u52bf<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";s:4:\"head\";s:0:\"\";}","target":"0","ip":"47.106.78.186","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":" \u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u672a\u7ecf\u535a\u4e3b\u5141\u8bb8\u4e0d\u5f97\u8f6c\u8f7d\u3002 https:\/\/blog.csdn.net\/luozhonghua2014\/article\/details\/80369469 kafka\u51fa\u73b0:Error w..","lastview":"1714156878","digg_num":"619","digg_time":"1714133008","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}