How to connect Hive using JDBC reader


(Srinivas Gade) #1

I’m trying to connect Hive using the Hive JDBC reader and it always throwing an error java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://hostname:21050/default: java.net.SocketTimeoutException: Read timed out

It uses kerberos authentication.

I tried writing the java program by passing the keytab, it works fine.