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

[Doc] Running pulsar using docker compose as documented fails--“Unmatched arguments from index 0” #23722

Open
2 tasks done
yingh0ng opened this issue Dec 12, 2024 · 2 comments
Labels
doc-required Your PR changes impact docs and you will update later.

Comments

@yingh0ng
Copy link

Search before asking

  • I searched in the issues and found nothing similar.

What issue do you find in Pulsar docs?

problem

Follow the steps in this https://pulsar.apache.org/docs/4.0.x/getting-started-docker-compose/ to start pulsar, and then report an error

image

env

system: Debian on wsl
Docker version: 25.03

What is your suggestion?

reason

The format of the command operation of pulsar-init is wrong and the newline characters cannot be converted correctly.
image

How i fixed

Use Json array on command operation.
image

Any reference?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@yingh0ng yingh0ng added the doc-required Your PR changes impact docs and you will update later. label Dec 12, 2024
@nodece
Copy link
Member

nodece commented Dec 17, 2024

Thanks for your report. The latest Pulsar uses picocli to parse the command, it is more strict than jcommander. I reported this issue to the picocli a long time ago, go to remkop/picocli#2348.

Could you use /bin/sh/ -c "COMMAND" in the docker-compose.yml? You can check apache/pulsar-client-go#1304, it works fine.

@nodece
Copy link
Member

nodece commented Dec 17, 2024

I submitted apache/pulsar-site#979 to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-required Your PR changes impact docs and you will update later.
Projects
None yet
Development

No branches or pull requests

2 participants