I'm trying to connect to my Biginsights Enterprise cluster from RJDBC:
hiveconnection <- dbConnect(drv,
"jdbc:hive2://xxxxx:10001/default",
"xxxxx",
"xxxxx",
ssl="true",
sslTrustStore="mytruststore.jks",
trustStorePassword="xxxxx",
hive.server2.transport.mode="http",
hive.server2.thrift.http.path="gateway/default/hive
)
However, I'm hitting the issue:
Could not open client transport with JDBC Uri
This works for me:
Setup Steps
I used gradle to download all the hive jdbc dependencies to a folder. I next created a
build.gradlefile:Then in the terminal window I changed to directory of my build.gradle file, I executed:
I created the truststore with: