I installed DataStax Enterprise Edition in Server. Then connected it using ODBC driver for Hive. It is working correctly.
When I tried to connect an existent database, I will receive an OdbcException with two error messages:
ERROR [HY000] [DataStax][Hardy] (22) Error from ThriftHiveClient: Query returned non-zero code: 9, cause: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
ERROR [HY000] [DataStax][Hardy] (22) Error from ThriftHiveClient: Query returned non-zero code: 9, cause: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
But I saw the really error messages in console of server are:
FAILED: Error in metadata: ERROR: The database thcp1 does not exist.
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
In other words, the first error message was lost.