You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Sergey Shelukhin <se...@hortonworks.com> on 2018/08/14 20:20:27 UTC

ptests fail due to a port conflict

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]


Re: ptests fail due to a port conflict

Posted by Vihang Karajgaonkar <vi...@cloudera.com.INVALID>.
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 <se...@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]
>
>