Hi,
- I’m following the link to establish a connection with Dremio:JDBC Driver for Arrow Flight SQL | Dremio Documentation
- I’m connecting to spark while giving the jar for apache flight : flight-sql-jdbc-driver-16.1.0.jar
- Spark version : 3.4.3
- Java version : jdk-1.8
- Using the below code to connect to Dremio:
val connectionProperties = new java.util.Properties()
connectionProperties.setProperty(“user”, username)
connectionProperties.setProperty(“password”, password)
connectionProperties.setProperty(“driver”, “org.apache.arrow.driver.jdbc.ArrowFlightJdbcDriver”)
val jdbcUrl = “jdbc:arrow-flight-sql://10.61.196.**:32010/?useEncryption%3Dfalse&disableCertificateVerification%3Dtrue&useSSL%3Dfalse”
spark.read.jdbc(jdbcUrl, tableName_nessie_bronze, connectionProperties).show()
- Getting the below error:
Caused by: org.apache.arrow.driver.jdbc.shaded.io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record: 00001204000000000000037fffffff000400100000000600002000000004080000000000000f00010000860700000000007fffffff00000001485454502f3220636c69656e74207072656661636520737472696e67206d697373696e67206f7220636f72727570742e204865782064756d7020666f722072656365697665642062797465733a20313630333033303132643031303030313239303330336235396538306634303464313130643435366332346339353363
at org.apache.arrow.driver.jdbc.shaded.io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1314) at org.apache.arrow.driver.jdbc.shaded.io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1387) at org.apache.arrow.driver.jdbc.shaded.io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:530) at org.apache.arrow.driver.jdbc.shaded.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:469) at org.apache.arrow.driver.jdbc.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290) at org.apache.arrow.driver.jdbc.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) at org.apache.arrow.driver.jdbc.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) at org.apache.arrow.driver.jdbc.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) at org.apache.arrow.driver.jdbc.shaded.io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) at org.apache.arrow.driver.jdbc.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) at org.apache.arrow.driver.jdbc.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) at org.apache.arrow.driver.jdbc.shaded.io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) at org.apache.arrow.driver.jdbc.shaded.io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) at org.apache.arrow.driver.jdbc.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) at org.apache.arrow.driver.jdbc.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) at org.apache.arrow.driver.jdbc.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) at org.apache.arrow.driver.jdbc.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) at org.apache.arrow.driver.jdbc.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) at org.apache.arrow.driver.jdbc.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at org.apache.arrow.driver.jdbc.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:750)
24/09/13 11:19:50 ERROR ClientHandshakeWrapper: Failed with unknown
org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.flight.FlightRuntimeException: UNAVAILABLE: io exception
- I’ve followed all the steps even then I’m getting the error, am I missing something?