GitHub user huangjun0124 added a comment to the discussion: java pulsar-client 
get broker returns localhost

Tried again, using the below command:
```
bin/pulsar-client produce \
    persistent://public/default/test \
    -n 1 \
    -m "Hello Pulsar"
```
would still pop error,:
```
2024-01-11T20:04:41,172+0800 [pulsar-client-io-1-1] INFO  
org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x8ad15e08, 
L:/192.168.1.220:47904 - R:192.168.1.122/192.168.1.122:6650]] Connected to 
server
2024-01-11T20:04:41,468+0800 [pulsar-client-io-1-1] INFO  
org.apache.pulsar.client.impl.ProducerStatsRecorderImpl - Pulsar client config: 
{"serviceUrl":"pulsar://192.168.1.122:6650/", ...}
2024-01-11T20:04:41,509+0800 [pulsar-client-io-1-1] WARN  
org.apache.pulsar.client.impl.ConnectionPool - Failed to open connection to 
localhost/<unresolved>:6650 : 
io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) 
failed: Connection refused: localhost/127.0.0.1:6650
```

GitHub link: 
https://github.com/apache/pulsar/discussions/21881#discussioncomment-8094157

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to