clickhouse-java
clickhouse-java copied to clipboard
[Bug] Always thrown `StreamingQueryException: No client available` when shaded jar is assembled with spark 2.4.5 (JDK1.8)
I'm testing clickhouse-jdbc with Spark 2.4.5, but org.apache.spark.sql.streaming.StreamingQueryException: No client available
is always thrown.
I swear that I added the classifier "all" like this(sbt):
"com.clickhouse" % "clickhouse-jdbc" % "0.4.0" classifier "all"
After jar -xf
the assembled jar file, I could find the http client related class file:

Then I looked into the source code of clickhouse-http-client, and found this:
CONNECTION_PROVIDER("http_connection_provider", HttpConnectionProvider.HTTP_URL_CONNECTION,
"HTTP connection provider. HTTP_CLIENT is only supported in JDK 11 or above."),
I'm not sure if this is related, so I'm asking for help. Thanks for any advice.