Hi All,
I am unable to post a message from filebeat as an external producer (outside k8s cluster) to kafka-inside kubernetes cluster. The topic "test_topic" is already created.
Error from filebeat:
2017/12/27 09:26:03.225021 log.go:16: WARN kafka message: Initializing new client
2017/12/27 09:26:03.225076 log.go:12: WARN client/metadata fetching metadata for all topics from broker 10.19.166.10:30094
{
"@timestamp": "2017-12-27T09:26:00.224Z",
"beat": {
"hostname": "",
"name": "",
"version": "5.5.1"
},
"input_type": "log",
"message": "test message",
"offset": 15,
"source": "/root/fb/input_logs/art.log",
"type": "log"
}
2017/12/27 09:26:03.264764 log.go:12: WARN Connected to broker at 10.19.166.10:30094 (unregistered)
2017/12/27 09:26:03.265964 log.go:12: WARN client/brokers registered new broker #0 at 192.168.1.13:9094
2017/12/27 09:26:03.266037 log.go:16: WARN kafka message: Successfully initialized new client
2017/12/27 09:26:03.266198 log.go:12: WARN client/metadata fetching metadata for [test_topic] from broker 10.19.166.10:30094
2017/12/27 09:26:03.266995 log.go:16: WARN kafka message: client/metadata found some partitions to be leaderless
2017/12/27 09:26:03.267009 log.go:12: WARN client/metadata retrying after 250ms... (3 attempts remaining)
Debugging steps followed:
Step1:
kubectl exec kafka-0 -n elk -c kafka curl 10.19.166.10:30094
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14 0 14 0 0 3879 0 --:--:-- --:--:-- --:--:-- 4666
Step2:
kubectl exec kafka-0 -n elk -c kafka curl 192.168.1.13:9094
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14 0 14 0 0 9575 0 --:--:-- --:--:-- --:--:-- 14000
Step3:
kafka - server.properties
listeners=SASL_PLAINTEXT://192.168.1.13:9092,PLAINTEXT://192.168.1.13:9093,SSL://192.168.1.13:9094
Step4:
kubectl get ep -n elk
kafka-headless-external 192.168.1.13:9094
kubectl get svc -n elk -o wide
kafka-headless-external 172.31.38.80 9094:30094/TCP