<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Hive - ODBC driver - Error_State when querying with condition in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-ODBC-driver-Error-State-when-querying-with-condition/m-p/51309#M54878</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;Yes, that is what I'm thinking.&lt;/P&gt;&lt;P&gt;I have used the hdfs and hive users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since that time, I have solved the problem by executing the commands below (from the top of &lt;A href="https://www.cloudera.com/documentation/enterprise/5-6-x/topics/sg_sentry_service_config.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-6-x/topics/sg_sentry_service_config.html&lt;/A&gt;) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ sudo -u hdfs hdfs dfs -chmod -R 777 /user/hive/warehouse
$ sudo -u hdfs hdfs dfs -chown -R hive:hive /user/hive/warehouse&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Feb 2017 09:52:39 GMT</pubDate>
    <dc:creator>wooo</dc:creator>
    <dc:date>2017-02-22T09:52:39Z</dc:date>
    <item>
      <title>Hive - ODBC driver - Error_State when querying with condition</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-ODBC-driver-Error-State-when-querying-with-condition/m-p/51178#M54876</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on the cloudera quickstart docker et have the hive odbc installed (version 2.5.21) with unixodbc (version 2.3.4).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can perfom queries like :&lt;/P&gt;&lt;PRE&gt;select a from my_table;

select a from my_table where true;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I try to execute queries like&lt;/P&gt;&lt;PRE&gt;select a from my_table where b=value;&lt;/PRE&gt;&lt;P&gt;I get the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[Cloudera][Hardy] (35) Error from server: error code: '0' error message: 'ExecuteStatement finished with operation state: ERROR_STATE'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any ideas on what the problem could be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:07:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-ODBC-driver-Error-State-when-querying-with-condition/m-p/51178#M54876</guid>
      <dc:creator>wooo</dc:creator>
      <dc:date>2022-09-16T11:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - ODBC driver - Error_State when querying with condition</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-ODBC-driver-Error-State-when-querying-with-condition/m-p/51217#M54877</link>
      <description>Can you run this query in Hive w/o the driver?&lt;BR /&gt;&lt;BR /&gt;I believe the first two queries do not require MR job(s) and it is possible for it to work w/o proper user setup.&lt;BR /&gt;&lt;BR /&gt;The last query will require MR and that requires that the users exist.&lt;BR /&gt;&lt;BR /&gt;What user are you on when using the ODBC driver? Does that user exist in the docker quickstart container?</description>
      <pubDate>Tue, 21 Feb 2017 08:38:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-ODBC-driver-Error-State-when-querying-with-condition/m-p/51217#M54877</guid>
      <dc:creator>mbigelow</dc:creator>
      <dc:date>2017-02-21T08:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hive - ODBC driver - Error_State when querying with condition</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-ODBC-driver-Error-State-when-querying-with-condition/m-p/51309#M54878</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;Yes, that is what I'm thinking.&lt;/P&gt;&lt;P&gt;I have used the hdfs and hive users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since that time, I have solved the problem by executing the commands below (from the top of &lt;A href="https://www.cloudera.com/documentation/enterprise/5-6-x/topics/sg_sentry_service_config.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-6-x/topics/sg_sentry_service_config.html&lt;/A&gt;) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ sudo -u hdfs hdfs dfs -chmod -R 777 /user/hive/warehouse
$ sudo -u hdfs hdfs dfs -chown -R hive:hive /user/hive/warehouse&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Feb 2017 09:52:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-ODBC-driver-Error-State-when-querying-with-condition/m-p/51309#M54878</guid>
      <dc:creator>wooo</dc:creator>
      <dc:date>2017-02-22T09:52:39Z</dc:date>
    </item>
  </channel>
</rss>

