<?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: Pyodbc Impala not able to find external hive tables created. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/290826#M215130</link>
    <description>&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;If you run SHOW TABLES in the Impala ODBC session do you see the list of tables? Are only the external tables missing? Can you try running SHOW CURRENT ROLES to see if the lost of Sentry roles matches what you expect. I would also recommend checking the Impala logs, these will shed some more light on whether the table is not visible or if you are being denied access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2020 22:25:06 GMT</pubDate>
    <dc:creator>Jim Halfpenny</dc:creator>
    <dc:date>2020-03-02T22:25:06Z</dc:date>
    <item>
      <title>Pyodbc Impala not able to find external hive tables created.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/290811#M215120</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm writing a Python script, and connect through the 64-bit odbc driver to Hive and Impala. I'm interested in creating an external table using the Hive connection, and then run some faster-than-hive queries using an Impala connection. After table creation, I am able to see and query the external tables in both hive and impala editors in HUE. However, these newly created tables are not visible nor available through the Impala connection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tried the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;invalidate metadata &amp;lt;table_name&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but it's not working either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any pointers would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Luis&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 16:33:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/290811#M215120</guid>
      <dc:creator>luisv</dc:creator>
      <dc:date>2020-03-02T16:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pyodbc Impala not able to find external hive tables created.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/290812#M215121</link>
      <description>&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;There are a couple of suggestions I can make to help narrow down what the cause may be.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are you able to run queries against these tables in Hue using both Impala and Hive? More than just seeing the tables in the navigation on the left are you actually able to SELECT from them using both engines?&lt;/LI&gt;&lt;LI&gt;Are you using the same user in both Hue and the ODBC connection? I ask because if user is not allowed to access a table by Sentry then that table will not appear when you run SHOW TABLES.&lt;/LI&gt;&lt;LI&gt;Have you run SELECT &amp;lt;db_name&amp;gt; in your ODBC SEL session prior to running SHOW TABLES or running a SQL query?&lt;/LI&gt;&lt;LI&gt;Have you tried a SELECT statement on the table even if the metadata is not showing when you run SHOW TABLES? Try prefixing the database name to the table e.g. db_name.table_name.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As always you should also check the logs to see if there are any clues as to why it is not working. Check to ensure that the version of the ODBC driver is compatible with the version of Impala you are using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 16:35:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/290812#M215121</guid>
      <dc:creator>Jim Halfpenny</dc:creator>
      <dc:date>2020-03-02T16:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pyodbc Impala not able to find external hive tables created.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/290813#M215122</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the quick response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are you able to run queries against these tables in Hue using both Impala and Hive? More than just seeing the tables in the navigation on the left are you actually able to SELECT from them using both engines?&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;YES&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Are you using the same user in both Hue and the ODBC connection? I ask because if user is not allowed to access a table by Sentry then that table will not appear when you run SHOW TABLES.&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Using a service account that has full access for both Impala and Hive. Same service account that creates the table in Hive.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Have you run SELECT &amp;lt;db_name&amp;gt; in your ODBC SEL session prior to running SHOW TABLES or running a SQL query?&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;All I'm doing is within a single DB, specified in the connection string. I have tried querying using the FROM &amp;lt;db.table&amp;gt; notation and simply the table name without luck.&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Have you tried a SELECT statement on the table even if the metadata is not showing when you run SHOW TABLES? Try prefixing the database name to the table e.g. db_name.table_name.&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;^^&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 02 Mar 2020 16:44:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/290813#M215122</guid>
      <dc:creator>luisv</dc:creator>
      <dc:date>2020-03-02T16:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pyodbc Impala not able to find external hive tables created.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/290814#M215123</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/6772"&gt;@Jim Halfpenny&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the message that I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ProgrammingError: ('42000', "[42000] [Cloudera][ImpalaODBC] (360) Syntax error occurred during query execution: [HY000] : AnalysisException: Could not resolve table reference: 'rpm_usawt.repl_ionprogress_patient_assignment'\n (360) (SQLExecDirectW)")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 Mar 2020 16:53:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/290814#M215123</guid>
      <dc:creator>luisv</dc:creator>
      <dc:date>2020-03-02T16:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pyodbc Impala not able to find external hive tables created.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/290826#M215130</link>
      <description>&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;If you run SHOW TABLES in the Impala ODBC session do you see the list of tables? Are only the external tables missing? Can you try running SHOW CURRENT ROLES to see if the lost of Sentry roles matches what you expect. I would also recommend checking the Impala logs, these will shed some more light on whether the table is not visible or if you are being denied access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 22:25:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/290826#M215130</guid>
      <dc:creator>Jim Halfpenny</dc:creator>
      <dc:date>2020-03-02T22:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pyodbc Impala not able to find external hive tables created.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/290830#M215134</link>
      <description>&lt;P&gt;Yes, only the recently created tables are missing. When I run SHOW CURRENT ROLES I get:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;s_cfyu_aim_admin&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which should have all credentials in place.&lt;/P&gt;&lt;P&gt;This is what I get in the Logs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;I0302 17:10:54.746717 45191 webserver.cc:361] Webserver: error reading: Resource temporarily unavailable
I0302 17:10:54.994223  9563 thrift-util.cc:123] TAcceptQueueServer: Caught TException: No more data to read.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are not very telling to me...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 23:15:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/290830#M215134</guid>
      <dc:creator>luisv</dc:creator>
      <dc:date>2020-03-02T23:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pyodbc Impala not able to find external hive tables created.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/292142#M215917</link>
      <description>&lt;P&gt;Sorry for the late response. After giving up for a few days, I realized my mistake was that in the .odbc.ini file where I have my Hive and Impala DSNs, Hive host was pointing to dev and Impala host to prod.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Silly me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the quick response community.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 20:28:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Pyodbc-Impala-not-able-to-find-external-hive-tables-created/m-p/292142#M215917</guid>
      <dc:creator>luisv</dc:creator>
      <dc:date>2020-03-19T20:28:58Z</dc:date>
    </item>
  </channel>
</rss>

