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](case) Ensure Kerberos starts after other components #46361

Merged
merged 5 commits into from
Jan 5, 2025

Conversation

CalvinKirs
Copy link
Member

@CalvinKirs CalvinKirs commented Jan 3, 2025

What problem does this PR solve?

Init kerberos test data
WARNING: Use "yarn jar" to launch YARN applications.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/3.1.0.0-78/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/3.1.0.0-78/hadoop/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Connecting to jdbc:hive2://localhost:10000/default;password=root;principal=hive/[email protected];user=root
25/01/03 13:37:16 [main]: WARN jdbc.HiveConnection: Failed to connect to localhost:10000
Could not open connection to the HS2 server. Please check the server URI and if the URI is correct, then ask the administrator to check the server status.
Error: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10000/default;password=root;principal=hive/[email protected];user=root: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0)
beeline> CREATE DATABASE IF NOT EXISTS `test_krb_hive_db`;

Kerberos initialization depends on the startup of some other components
To avoid potential resource conflicts during parallel startup

  1. Keep parallel startup for other components
  2. Wait for all parallel components to complete
  3. Start Kerberos sequentially after other components
  4. Add error checking and logging for Kerberos startup

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

To avoid potential resource conflicts during parallel startup

1. Keep parallel startup for other components
2. Wait for all parallel components to complete
3. Start Kerberos sequentially after other components
4. Add error checking and logging for Kerberos startup
@Thearas
Copy link
Contributor

Thearas commented Jan 3, 2025

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@CalvinKirs
Copy link
Member Author

run buildall

@CalvinKirs
Copy link
Member Author

run buildall

@CalvinKirs
Copy link
Member Author

run buildall

@CalvinKirs
Copy link
Member Author

run buildall

@CalvinKirs
Copy link
Member Author

run buildall

1 similar comment
@CalvinKirs
Copy link
Member Author

run buildall

Copy link
Contributor

github-actions bot commented Jan 5, 2025

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added approved Indicates a PR has been approved by one committer. reviewed labels Jan 5, 2025
Copy link
Contributor

github-actions bot commented Jan 5, 2025

PR approved by anyone and no changes requested.

@CalvinKirs
Copy link
Member Author

run p0

@morningman morningman merged commit 4c40b4e into apache:master Jan 5, 2025
25 of 26 checks passed
@CalvinKirs CalvinKirs deleted the master-kerberos-case branch January 13, 2025 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants