Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Cannot use non-default value for pulsar.service url #21276

Open
2 tasks done
longquanzheng opened this issue Sep 29, 2023 · 3 comments · May be fixed by cognitree/pulsar#7 or #22523
Open
2 tasks done

[Bug] Cannot use non-default value for pulsar.service url #21276

longquanzheng opened this issue Sep 29, 2023 · 3 comments · May be fixed by cognitree/pulsar#7 or #22523
Labels
Stale type/bug The PR fixed a bug or issue reported a bug

Comments

@longquanzheng
Copy link

longquanzheng commented Sep 29, 2023

Search before asking

  • I searched in the 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/: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 in xcherryio/xcherry#25

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@longquanzheng longquanzheng added the type/bug The PR fixed a bug or issue reported a bug label Sep 29, 2023
@longquanzheng longquanzheng changed the title [Bug] Cannot use [Bug] Cannot use non-default value for pulsar.service url Sep 29, 2023
@github-actions
Copy link

The issue had no activity for 30 days, mark with Stale label.

@github-actions github-actions bot added the Stale label Oct 30, 2023
@easyu
Copy link

easyu commented Jan 11, 2024

I also encountered the same problem,

@easyu
Copy link

easyu commented Jan 11, 2024

Do you have any good solutions on your end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
2 participants