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

[fix][doc] Workaround Go Yaml issue go-yaml/yaml#789 in docker-compose example #24040

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Feb 28, 2025

Fixes #24039

Motivation

docker-compose examples don't work due to go-yaml/yaml#789 issue.
It's necessary to replace command: > with command: |. More details in #24039 comments.
Similar change was made to website docs in apache/pulsar-site@0df29a62.

Modifications

  • replace command: > with command: | in the docker-compose example

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@lhotari lhotari added this to the 4.1.0 milestone Feb 28, 2025
@lhotari lhotari self-assigned this Feb 28, 2025
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Feb 28, 2025
@lhotari
Copy link
Member Author

lhotari commented Feb 28, 2025

/pulsarbot rerun-failure-checks

Copy link
Member

@visortelle visortelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes LGTM, but the SQL worker container restarts in a loop:

# sql1
# Restarting (1) 42 seconds ago  
...
sql1         | 
sql1         | -- Invalid command 'sql-worker' -- Use '/pulsar/bin/pulsar help' to get a list of valid commands
sql1         | 
sql1 exited with code 1

Pulsar SQL was removed a while ago: #23435
Maybe we should also remove this container in docker-compose.yml?

Also, we probably can remove the version attribute because of this warning:

WARN[0000] /home/xxxxxxxxxxxxxxxx/apache/pulsar/docker-compose/kitchen-sink/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 

@visortelle visortelle self-requested a review March 1, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Unable to start cluster in compose (4.0.2)
3 participants