Fix Invalid use of BasicClientConnManager error in client-less approach

Description

xception in thread "Thread-17" org.apache.spark.h2o.backends.external.H2OClusterNotReachableException: External H2O cluster 192.168.254.2:54321 - t24556 is not reachable,

[2019-12-14T00:04:15.068Z] H2OContext has been closed! Please create a new H2OContext to a healthy and reachable (web enabled)

[2019-12-14T00:04:15.068Z] external H2O cluster.

[2019-12-14T00:04:15.068Z] at org.apache.spark.h2o.H2OContext$H2OContextRestAPIBased.getSparklingWaterHeartBeatEvent(H2OContext.scala:501)

[2019-12-14T00:04:15.068Z] at org.apache.spark.h2o.H2OContext$$anon$1.run(H2OContext.scala:69)

[2019-12-14T00:04:15.068Z] Caused by: org.apache.spark.h2o.backends.external.RestApiNotReachableException: External H2O node 192.168.254.2:54321 is not reachable.

[2019-12-14T00:04:15.068Z] Please verify that you are passing ip and port of existing cluster node and the cluster

[2019-12-14T00:04:15.068Z] is running with web enabled.

[2019-12-14T00:04:15.068Z] at org.apache.spark.h2o.backends.external.RestApiUtils$class.readURLContent(RestApiUtils.scala:300)

[2019-12-14T00:04:15.068Z] at org.apache.spark.h2o.backends.external.RestApiUtils$class.request(RestApiUtils.scala:230)

[2019-12-14T00:04:15.068Z] at org.apache.spark.h2o.backends.external.RestApiUtils$class.query(RestApiUtils.scala:202)

[2019-12-14T00:04:15.068Z] at org.apache.spark.h2o.backends.external.RestApiUtils$class.getPingInfo(RestApiUtils.scala:87)

[2019-12-14T00:04:15.068Z] at org.apache.spark.h2o.H2OContext$H2OContextRestAPIBased.getPingInfo(H2OContext.scala:473)

[2019-12-14T00:04:15.068Z] at org.apache.spark.h2o.H2OContext$H2OContextRestAPIBased.getSparklingWaterHeartBeatEvent(H2OContext.scala:495)

[2019-12-14T00:04:15.068Z] ... 1 more

[2019-12-14T00:04:15.068Z] Caused by: java.lang.IllegalStateException: Invalid use of BasicClientConnManager: connection still allocated.

[2019-12-14T00:04:15.068Z] Make sure to release the connection before allocating another one.

[2019-12-14T00:04:15.068Z] at org.apache.http.util.Asserts.check(Asserts.java:34)

[2019-12-14T00:04:15.069Z] at org.apache.http.impl.conn.BasicClientConnectionManager.getConnection(BasicClientConnectionManager.java:166)

[2019-12-14T00:04:15.069Z] at org.apache.http.impl.conn.BasicClientConnectionManager$1.getConnection(BasicClientConnectionManager.java:148)

[2019-12-14T00:04:15.069Z] at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:424)

[2019-12-14T00:04:15.069Z] at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:884)

[2019-12-14T00:04:15.069Z] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)

[2019-12-14T00:04:15.069Z] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)

[2019-12-14T00:04:15.069Z] at org.apache.spark.h2o.backends.external.RestApiUtils$class.readURLContent(RestApiUtils.scala:287)

[2019-12-14T00:04:15.069Z] ... 6 more

Assignee

Jakub Hava

Reporter

Jakub Hava

Labels

None

CustomerVisible

No

testcase 1

None

testcase 2

None

testcase 3

None

h2ostream link

None

Affected Spark version

None

AffectedContact

None

AffectedCustomers

None

AffectedPilots

None

AffectedOpenSource

None

Support Assessment

None

Customer Request Type

None

Support ticket URL

None

End date

None

Baseline start date

None

Baseline end date

None

Task progress

None

Task mode

None

ReleaseNotesHidden

None

Fix versions

Priority

Major
Configure