看到Confluent 2.0.0 Kafka 0.9的一些奇怪行爲,想知道是否有人有任何想法。我於9092年與PLAINTEXT的聽衆一起創辦了一個經紀人。工作很好。我正試圖改變它來聽取不同的端口。我試圖9095.在啓動時我看到這在日誌中:Confluent 2.0.0中的端口改動麻煩Kafka 0.9
[2016-01-14 18:11:43,511] INFO Awaiting socket connections on 0.0.0.0:9095. (kafka.network.Acceptor)
但後來,我看到這個
[2016-01-14 18:11:43,906] INFO Registered broker 0 at path /brokers/ids/0 with addresses: PLAINTEXT -> EndPoint(ec2-54-164-3-183.compute-1.amazonaws.com,9092,PLAINTEXT) (kafka.utils.ZkUtils)
這是關於,爲什麼它仍然登記在9092 ???
在這一點上,如果我嘗試將發佈9095我得到噸的這些,直到我殺了它:
[2016-01-14 18:14:42,614] WARN Error while fetching metadata with correlation id 0 : {plaintext=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
[2016-01-14 18:14:42,745] WARN Error while fetching metadata with correlation id 1 : {plaintext=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
[2016-01-14 18:14:42,850] WARN Error while fetching metadata with correlation id 2 : {plaintext=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
...
如果我嘗試在9092產生之後1分鐘,此操作失敗:
[2016-01-14 18:30:11,845] ERROR Error when sending message to topic plaintext with key: null, value: 10 bytes with error: Failed to update metadata after 60000 ms. (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
我想這可能與我的主機名沒有正確設置有關......但我不知道該怎麼做...... FYI這是一個EC2實例。主機名是ip-10-0-0-22。/etc/hosts有
127.0.0.1 localhost
公共DNS是ec2-54-164-3-183.compute-1.amazonaws.com。而在我的server.properties我有
advertised.host.name=ec2-54-164-3-183.compute-1.amazonaws.com
(最後我發現我已經設置爲能夠從亞馬遜的外部連接到代理)。
那麼......任何卡夫卡專家的建議?