iwasakims opened a new pull request, #1365:
URL: https://github.com/apache/bigtop/pull/1365

   https://issues.apache.org/jira/browse/BIGTOP-4432
   
   smoke-tests of Hive intermittently fails due to "connection refused". 
Retrying the test succeeded after waiting for HiveServer2 startup.
   
   ```
   org.apache.bigtop.itest.hive.TestHiveSmoke > test FAILED
       java.lang.AssertionError: Example hive count failed. [] [SLF4J: Class 
path contains multiple SLF4J bindings., SLF4J: Found binding in 
[jar:file:/usr/lib/hive/lib/log4j-slf4j-impl-2.18.0.jar!/org/slf4j/impl/StaticLoggerBinder.class],
 SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-re\
   load4j-1.7.36.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], SLF4J: 
Class path contains multiple SLF4J bindings., SLF4J: Found binding in\
    
[jar:file:/usr/lib/hive/lib/log4j-slf4j-impl-2.18.0.jar!/org/slf4j/impl/StaticLoggerBinder.class],
 SLF4J: Found binding in 
[jar:file:/usr/lib/hadoop/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class],
 SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanat\
   ion., SLF4J: Actual binding is of type 
[org.apache.logging.slf4j.Log4jLoggerFactory], Connecting to 
jdbc:hive2://localhost:10000/default, 25/05/22 13:33:41 [main]: WARN 
jdbc.HiveConnection: Failed to connect to localhost:10000, Could not open 
connection to the HS2 server. Please check the server UR\
   I and if the URI is correct, then ask the administrator to check the server 
status. Enable verbose error messages (--verbose=true) for more information., 
Error: Could not open client transport with JDBC Uri: 
jdbc:hive2://localhost:10000/default: java.net.ConnectException: Connection 
refused (Connec\
   tion refused) (state=08S01,code=0)]
   ```
   
   [HiveServer2 sleeps 60s if it fails to connect to HDFS on 
startup](https://github.com/apache/hive/blob/rel/release-4.0.1/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java#L3903-L3905).
 Starting HiveServer2 after HDFS is ready should mitigate the issue.
   
   ```
   2025-05-25T11:42:21,331  WARN [main] server.HiveServer2: Error starting 
HiveServer2 on attempt 1, will retry in 60000ms
   java.lang.RuntimeException: Error applying authorization policy on hive 
configuration: java.net.ConnectException: Call From 
df7e4a3bc0d2.bigtop.apache.org/172.19.0.2 to 
df7e4a3bc0d2.bigtop.apache.org:8020 failed on connection exception: 
java.net.ConnectException: Connection refused; For more detail\
   s
    see:  http://wiki.apache.org/hadoop/ConnectionRefused
   ```
   
   This PR change the sleep interval from 60s to 1s for quick start on 
smoke-tests.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to