Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix](case) Ensure Kerberos starts after other components (apache#46361)
### 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
- Loading branch information