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.

JDBC HIVE Driver

JDBC HIVE Driver

New Contributor

hi,

 

I am trying to use Cloudera JDBC-Hive Driver. It is able to do teh connection sucessfully but it is giving error while executing the query. 

 

java.sql.SQLException: [Cloudera][HiveJDBCDriver](500051) ERROR processing query/statement. Error Code: ERROR_STATE, SQL state: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask, Query: select test from team limit 10.
at com.cloudera.hive.hivecommon.api.HS2Client.executeStatementInternal(Unknown Source)
at com.cloudera.hive.hivecommon.api.HS2Client.executeStatement(Unknown Source)
at com.cloudera.hive.hivecommon.dataengine.HiveJDBCNativeQueryExecutor.executeQuery(Unknown Source)
at com.cloudera.hive.hivecommon.dataengine.HiveJDBCNativeQueryExecutor.<init>(Unknown Source)
at com.cloudera.hive.hivecommon.dataengine.HiveJDBCDataEngine.prepare(Unknown Source)
at com.cloudera.hive.jdbc.common.SStatement.executeNoParams(Unknown Source)
at com.cloudera.hive.jdbc.common.SStatement.executeQuery(Unknown Source)
Caused by: com.cloudera.hive.support.exceptions.GeneralException: [Cloudera][HiveJDBCDriver](500051) ERROR processing query/statement. Error Code: ERROR_STATE, SQL state: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask, Query: select test from team limit 10.

 

Please provide solution of the same.

 

Thanks,

Abhishek

 

Don't have an account?
Coming from Hortonworks? Activate your account here