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

Fixes Jaeger Hotrod demo failure on OpenSearch 2.16.0 #4921

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

linghengqian
Copy link
Contributor

Description

[Describe what this change achieves]

  • Fixes Jaeger Hotrod demo failure on OpenSearch 2.16.0.
  • Apparently, the old version of OpenSearch is using admin as the default password for the admin account, which is very dangerous. The new version of OpenSearch corrects this problem and requires the initial password to be greater than 8 digits.
  • In Docker Compose 2.29.2, the version field is deprecated. The Compose Spec is now dynamically updated at https://github.com/compose-spec/compose-spec .
  • The content of ../demo/root-ca.pem is exactly the same as the content of /usr/share/opensearch/config/root-ca.pem of the OpenSearch master node. Whether in the new version or the old version, there is no point in manually writing root-ca.pem, which will only confuse users.
  • IntelliJ IDEA always recommends to quote all PORT mappings, otherwise there will be a warning.
  • Mounting ../demo/demo-data-prepper.crt to /etc/demo-data-prepper.crt does not make any sense because SSL is turned off for otel-collector and data-prepper.
  • That being said, there are still some unanswered questions about the current PR. node-0.example.com is actually the default hostname for OpenSearch Docker Image, which surprised me. I don't understand why this is done.🤔
  • Use the admin and opensearchNode1Test accounts and passwords to log in to localhost:5601 for testing.
  • image
  • image
  • image
  • image

Issues Resolved

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

graytaylor0
graytaylor0 previously approved these changes Sep 10, 2024
Copy link
Member

@graytaylor0 graytaylor0 left a comment

Choose a reason for hiding this comment

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

Thank you for this contribution!

Copy link
Contributor Author

@linghengqian linghengqian left a comment

Choose a reason for hiding this comment

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

Is there a way to view Gradle's standard output on the log of Github Actions, like ASF Develocity? I am confused why is failed download log of https://github.com/opensearch-project/data-prepper/actions/runs/10756318242/job/29955010383#step:4:1 .

Copy link
Member

@dlvenable dlvenable left a comment

Choose a reason for hiding this comment

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

Thank you @linghengqian for this improvement! I have a few small comments and questions.

examples/jaeger-hotrod/docker-compose.yml Outdated Show resolved Hide resolved
examples/jaeger-hotrod/docker-compose.yml Show resolved Hide resolved
@dlvenable dlvenable merged commit 4e50f3b into opensearch-project:main Sep 12, 2024
45 of 46 checks passed
@dlvenable
Copy link
Member

Thank you @linghengqian for this contribution. This will help the community know how to use Data Prepper tracing with newer versions of OpenSearch.

@linghengqian linghengqian deleted the fix-example branch September 12, 2024 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Jaeger Hotrod demo does not work
3 participants