I’m getting the same kind of error seen here Issue with SSL connection from Docker
My code works fine when using AWS Lambda with java8 runtime. However, once switched to Corretto 8 (java8.al2) or Corretto 11 (java11), I get this:
java.sql.SQLException: Failure in connecting to Dremio: cdjd.com.dremio.exec.rpc.ConnectionFailedException: CONNECTION : SSL negotiation failed
…
Caused by: java.lang.UnsupportedOperationException: Allocator doesn’t support heap-based memory.
at cdjd.org.apache.arrow.memory.ArrowByteBufAllocator.fail(ArrowByteBufAllocator.java:159) ~[dremio-jdbc-driver-22.0.0-202206221430090603-1fa4049f-1fa4049f.jar:22.0.0-202206221430090603-1fa4049f]
at cdjd.org.apache.arrow.memory.ArrowByteBufAllocator.heapBuffer(ArrowByteBufAllocator.java:130) ~[dremio-jdbc-driver-22.0.0-202206221430090603-1fa4049f-1fa4049f.jar:22.0.0-202206221430090603-1fa4049f]
at cdjd.io.netty.handler.ssl.SslHandler$SslEngineType$3.allocateWrapBuffer(SslHandler.java:326) ~[dremio-jdbc-driver-22.0.0-202206221430090603-1fa4049f-1fa4049f.jar:22.0.0-202206221430090603-1fa4049f] …
In reference to answers from the thread above, I believe the Corretto runtimes do come with glibc. And the /tmp directory has execute permission.
Has anyone else run into this issue in AWS (Lambda or EC2)? Thanks in advance.