You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker run -itd --network host grepplabs/kafka-proxy:latest server --bootstrap-server-mapping "192.168.13.188:9092,0.0.0.0:4000" --dynamic-advertised-listener "192.168.1.244:9999" --debug-enable,其中192.168.13.188:9092是A主机kafka,192.168.10.65:4000是B主机运行这个docker-proxy的,现在192.168.10.65上使用frp将4000端口映射到了远端主机C的9999端口,C的ip是192.168.1.244,然后我用192.168.1.22这台个人电脑去运行kafka消费者,它提示kafka-console-consumer.sh --topic test-topic--from-beginning --bootstrap-server 192.168.1.244:9999 --group klec-test-group --max-messages 10
[2024-12-24 07:52:31,565] WARN [Consumer clientId=console-consumer, groupId=klec-test-group] Connection to node 2147483647 (/127.0.0.1:4000) could not be established. Node may not be available. (org.apache.kafka.clients.NetworkClient)
[2024-12-24 07:52:31,645] WARN [Consumer clientId=console-consumer, groupId=klec-test-group] Connection to node 0 (/127.0.0.1:4000) could not be established. Node may not be available. (org.apache.kafka.clients.NetworkClient)
[2024-12-24 07:52:31,740] WARN [Consumer clientId=console-consumer, groupId=klec-test-group] Connection to node 0 (/127.0.0.1:4000) could not be established. Node may not be available. (org.apache.kafka.clients.NetworkClient)
The text was updated successfully, but these errors were encountered:
root@klec-ECS-1844:~# docker logs -f f72
INFO[2024-12-24T07:52:18Z] Starting kafka-proxy version v0.3.12
INFO[2024-12-24T07:52:18Z] Bootstrap server 192.168.13.188:9092 advertised as 0.0.0.0:4000
INFO[2024-12-24T07:52:18Z] Listening on 0.0.0.0:4000 ([::]:4000) for remote 192.168.13.188:9092
INFO[2024-12-24T07:52:18Z] Ready for new connections
INFO[2024-12-24T07:52:31Z] New connection for 192.168.13.188:9092
INFO[2024-12-24T07:52:34Z] Client closed local connection on 127.0.0.1:4000 from 127.0.0.1:52926 (192.168.13.188:9092) 这是docker-proxy的信息
已解决,可以使用docker run -itd --network host grepplabs/kafka-proxy:latest server --bootstrap-server-mapping "192.168.13.188:9092,0.0.0.0:4000,192.168.1.244:9999" --dynamic-listeners-disable来解决
docker run -itd --network host grepplabs/kafka-proxy:latest server --bootstrap-server-mapping "192.168.13.188:9092,0.0.0.0:4000" --dynamic-advertised-listener "192.168.1.244:9999" --debug-enable,其中192.168.13.188:9092是A主机kafka,192.168.10.65:4000是B主机运行这个docker-proxy的,现在192.168.10.65上使用frp将4000端口映射到了远端主机C的9999端口,C的ip是192.168.1.244,然后我用192.168.1.22这台个人电脑去运行kafka消费者,它提示kafka-console-consumer.sh --topic test-topic--from-beginning --bootstrap-server 192.168.1.244:9999 --group klec-test-group --max-messages 10
[2024-12-24 07:52:31,565] WARN [Consumer clientId=console-consumer, groupId=klec-test-group] Connection to node 2147483647 (/127.0.0.1:4000) could not be established. Node may not be available. (org.apache.kafka.clients.NetworkClient)
[2024-12-24 07:52:31,645] WARN [Consumer clientId=console-consumer, groupId=klec-test-group] Connection to node 0 (/127.0.0.1:4000) could not be established. Node may not be available. (org.apache.kafka.clients.NetworkClient)
[2024-12-24 07:52:31,740] WARN [Consumer clientId=console-consumer, groupId=klec-test-group] Connection to node 0 (/127.0.0.1:4000) could not be established. Node may not be available. (org.apache.kafka.clients.NetworkClient)
The text was updated successfully, but these errors were encountered: