Hive Jobs Fail - SocketTimeoutException: Read timed out


When executing a Hive, creating a Hive Connection or editing an existing Hive connection, a is thrown. The initial content in the stacktrace is as follows:

WARN [2015-01-01 10:25:48.314] [239779852@qtp-69190395-5] ( - connection fails: Can't read table names: Can't read table names: Read timed out
java.lang.RuntimeException: Can't read table names: Can't read table names: Read timed out
        at datameer.das.plugin.hive.HiveDataStoreModel.testConnect(
        at datameer.dap.sdk.entity.DataStore.validate(
        at datameer.dap.conductor.webapp.commandObject.ConnectionCommand.validateConnection(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.springmodules.validation.bean.rule.ValidationMethodValidationRule$MethodCondition.doCheck(ValidationMethodValidationRule.ja\
        at org.springmodules.validation.util.condition.AbstractCondition.check(
        at org.springmodules.validation.bean.BeanValidator.validateAndShortCircuitRules(
        at org.springmodules.validation.bean.BeanValidator.applyPropertiesValidationRules(
        at org.springmodules.validation.bean.BeanValidator.applyBeanValidation(
        at org.springmodules.validation.bean.BeanValidator.validateObjectGraphConstraints(
        at org.springmodules.validation.bean.BeanValidator.validate(

This issue is only observed in environments that are using MySQL to store the Hive Metastore information.


This issue is caused by a misconfiguration of a Hive connection. Specifically, the Hive connection is pointed directly to the Hive Server or Hive Server 2 port. The correct configuration requires pointing Datameer at the Hive Metastore port, 9083 by default.


To resolve this issue, ensure that the Datameer Hive Connection is pointed at the Hive Metastore port. This value is determined by the "hive.metastore.uris" parameter on the Hive Server.

The Hive Metastore port is available in the hive-site.xml configuration file of the Hive server. If unknown, please contact the Hive Administrator to confirm the active port for the Hive Metastore.