我有一個運行DCOS的小型集羣。我可以在this指南中成功安裝kafka。運行在mesos上運行kafka發佈消息的問題DCOS
$ dcos kafka connection
給
{
"address": [
"10.131.17.126:9475",
"10.131.24.6:9655",
"10.131.14.192:9181"
],
"zookeeper": "master.mesos:2181/dcos-service-kafka",
"dns": [
"broker-0.kafka.mesos:9475",
"broker-1.kafka.mesos:9655",
"broker-2.kafka.mesos:9181"
]
}
我可以創建主題,我已經研究飼養員用CLI工具和狀態似乎不錯
get /dcos-service-kafka/brokers/ids/0
{"jmx_port":-1,"timestamp":"1474206074029","endpoints":["PLAINTEXT://10.131.17.126:9475"],"host":"10.131.17.126","version":3,"port":9475}
get /dcos-service-kafka/brokers/ids/1
{"jmx_port":-1,"timestamp":"1474206120002","endpoints":["PLAINTEXT://10.131.24.6:9655"],"host":"10.131.24.6","version":3,"port":9655}
get /dcos-service-kafka/brokers/ids/2
{"jmx_port":-1,"timestamp":"1474206122985","endpoints":["PLAINTEXT://10.131.14.192:9181"],"host":"10.131.14.192","version":3,"port":9181}
然而,當我嘗試發佈
echo "Hello, World." | ./kafka-console-producer.sh --broker-list 10.131.17.126:9475, 10.131.24.6:9655, 10.131.14.192:9181 --topic topic1
我得到
[2016-09-18 18:49:32,909] ERROR Error when sending message to topic topic1 with key: null, value: 13 bytes with error: Failed to update metadata after 60000 ms. (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
我懷疑這可能是與私人與公共IP地址,也許host.name在server.properties。
任何人都可以提出一些建議,我可能會調試(並希望修復!)的問題,所以我可以成功地發佈消息?
感謝
AJ
我已經更新到1.8了,謝謝。我按照用戶指南'dcos node ssh --master-proxy --leader' ssh'ing到其中一個代理節點。我可以從那裏和從碼頭集裝箱內ping所有內部端口 –
應該添加它仍然不工作。不確定使用VPN會解決這個問題,如果我錯了,請糾正我。 –
感謝您的幫助。不幸的是,這仍然不適合我。如果我遵循上面的步驟,我會得到: –