Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

ODBC Driver - Error when joining tables

avatar
Frequent Visitor

I have the Cloudera ODBC driver installed on my machine (v2.5.19.1004).  

 

I receive the following error when I execute a query that joins two tables together

 

Error from server: error code: '0' error message: 'ExecuteStatement finished with operation state: ERROR_STATE

I can query each table individually without error.  It is only when I join them together do I get this error. Any thoughts on what the problem could be?

1 ACCEPTED SOLUTION

avatar
Frequent Visitor

I worked with Cloudera support and they found a solution

 

The issue

This issue is caused by the HiveServer2 failing to execute a MapReduce Local Task and it does not seem bound to queries submitted through ODBC

 

The solution

In the ODBC properties I set hive.auto.convert.join to false

 

View solution in original post

2 REPLIES 2

avatar
Expert Contributor

Hi,

 

Probably, you need to try the same operation from beeline. If that works then ODBC needs tuning. If not -- then your query needs tuning.

avatar
Frequent Visitor

I worked with Cloudera support and they found a solution

 

The issue

This issue is caused by the HiveServer2 failing to execute a MapReduce Local Task and it does not seem bound to queries submitted through ODBC

 

The solution

In the ODBC properties I set hive.auto.convert.join to false