MiniHS2 retries upto 10 times to find a free port from what I see here <https://github.com/apache/hive/blob/master/itests/util/src/main/java/org/apache/hive/jdbc/miniHS2/MiniHS2.java#L384> , unless this particular test is not using that.
On Tue, Aug 14, 2018 at 1:20 PM, Sergey Shelukhin <ser...@hortonworks.com> wrote: > Could this be related to some tests running in parallel? > > https://builds.apache.org/job/PreCommit-HIVE-Build/13209/ > testReport/org.apa > che.hive.jdbc/TestActivePassiveHA/testManualFailoverUnauthorized/ > > > 2018-08-14T04:11:45,837 ERROR [Thread-10] server.HiveServer2: Error > starting Web UI: > java.net.BindException: Address already in use > at sun.nio.ch.Net.bind0(Native Method) ~[?:1.8.0_102] > ... > at org.apache.hive.http.HttpServer.start(HttpServer.java:254) > ~[hive-common-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] > at org.apache.hive.service.server.HiveServer2.start( > HiveServer2.java:732) > [hive-service-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] > at org.apache.hive.jdbc.miniHS2.MiniHS2.start(MiniHS2.java:371) > [hive-it-util-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT] > >