longquanzheng opened a new issue, #21276:
URL: https://github.com/apache/pulsar/issues/21276

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Version
   
   Pulsar 3.1
   
   Tested in both MacOS and Docker-compose
   
   ### Minimal reproduce step
   
   Follow the steps in 
   https://pulsar.apache.org/docs/3.1.x/io-cdc-debezium/#configuration-2
   
   but change pulsar.service.url to something else, e.g. 
`pulsar://pulsar-server:6650` for docker-compose 
   
   
   ### What did you expect to see?
   
   Its is always "pulsar://localhost:6650" no matter what I change the config 
to…
   
   
   
   
   I can see logs:
   2023-09-28T16:31:36,502-0700 [pulsar-client-io-1-3] INFO  
org.apache.pulsar.client.impl.ConsumerStatsRecorderImpl - Pulsar client config: 
{"serviceUrl":"pulsar://localhost:6650","authPluginClassName":null,"authParams":null,"authParamMap":null,"operationTimeoutMs":30000,"lookupTimeoutMs":30000,"statsIntervalSeconds":60,"numIoThreads":8,"numListenerThreads":8,"
   and
   2023-09-28 16:33:46 2023-09-28T23:33:46,136+0000 [pulsar-client-io-1-2] WARN 
 org.apache.pulsar.client.impl.ConnectionPool - Failed to open connection to 
localhost/<unresolved>:6650 : 
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: 
localhost/127.0.0.1:6650
   I need to change the url to something else so that I can work in 
docker-compose or production.
   
   Thanks!
   
   ### What did you see instead?
   
   I had to use `network_mode: host` for now as workaround
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to