Masatake Iwasaki created BIGTOP-4432:
----------------------------------------
Summary: Fix flaky smoke-test of Hive executing command before
HiveServer2 is ready
Key: BIGTOP-4432
URL: https://issues.apache.org/jira/browse/BIGTOP-4432
Project: Bigtop
Issue Type: Bug
Reporter: Masatake Iwasaki
smoke-tests of Hive intermittently fails due to "connection refused". Retrying
the test succeeded after waiting for HiveServer2 startup.
{noformat}
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)]
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert$assertTrue.callStatic(Unknown Source)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:55)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:196)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:216)
at
org.apache.bigtop.itest.hive.TestHiveSmoke.test(TestHiveSimple.groovy:55)
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)