Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hive JDBC connection refused

Highlighted

Hive JDBC connection refused

Explorer

Getting java heap error when trying to connect my Hive database from java code.

java code for connection. DriverManager.getConnection("jdbc:hive2://servername:port/default", "username", "");

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:181)

Is it server heap size to be increased ?

1 REPLY 1

Re: Hive JDBC connection refused

New Contributor

Are you getting the OOME in your Java application or on the Hive server? What is the heap size for your Java app and your Hive server?