<?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: Create Impala table from existing Parquet file in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60807#M69224</link>
    <description>&lt;P&gt;Huh... the SHOW CREATE TABLE indicated STORED AS TEXTFILE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going to guess this is a Stupid User Trick and that I mistyped something. Dropping and recreating the table appears to have resolved the issue, although I had limited time to look at it today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help, everyone. Getting the SHOW CREATE TABLE hint was key. I learned something today!&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2017 21:02:57 GMT</pubDate>
    <dc:creator>Nevo</dc:creator>
    <dc:date>2017-10-10T21:02:57Z</dc:date>
    <item>
      <title>Create Impala table from existing Parquet file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60753#M69219</link>
      <description>&lt;DIV class="post-text"&gt;&lt;P&gt;I have a Parquet file that has 5,000 records in it.&lt;/P&gt;&lt;P&gt;I moved it to HDFS and ran the Impala command:&lt;/P&gt;&lt;PRE&gt;CREATE EXTERNAL TABLE mytable LIKE PARQUET '/user/hive/MyDataFolder/MyData.Parquet'
STORED AS PARQUET
LOCATION '/user/hive/MyDataFolder';&lt;/PRE&gt;&lt;P&gt;Impala creates the table, and I can see the correct schema in Hue.&lt;/P&gt;&lt;P&gt;I know that this Parquet file has 5,000 records in it. I know this because I put 5,000 records in it when I created it, and because I can query it with Drill and see 5,000 records. However, when I perform a query in Impala:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM mytable;&lt;/PRE&gt;&lt;P&gt;I get back 0 rows.&lt;/P&gt;&lt;P&gt;Why? How do I tell Impala to 'see' those 5,000 records in the file I gave it?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:22:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60753#M69219</guid>
      <dc:creator>Nevo</dc:creator>
      <dc:date>2022-09-16T12:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create Impala table from existing Parquet file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60769#M69220</link>
      <description>&lt;P&gt;Sorry for the trouble - this is expected to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide the query profile of the query that returned 0 rows?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 01:32:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60769#M69220</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2017-10-10T01:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create Impala table from existing Parquet file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60771#M69221</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/24180"&gt;@Nevo&lt;/a&gt;&amp;nbsp; Its costly but could you fire the below command and see if that fixes&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;REFRESH [db_name.]table_name



REFRESH DATABASE_NAME.TABLE_NAME&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 05:04:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60771#M69221</guid>
      <dc:creator>csguna</dc:creator>
      <dc:date>2017-10-10T05:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create Impala table from existing Parquet file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60792#M69222</link>
      <description>&lt;P&gt;Well, even to an idiot like me who's never used Impala, this is suspicious....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;EXPLAIN SELECT * FROM nrtest2;

1	Per-Host Resource Reservation: Memory=0B
2	Per-Host Resource Estimates: Memory=10.00MB
3	WARNING: The following tables are missing relevant table and/or column statistics.
4	default.nrtest2
5	
6	PLAN-ROOT SINK
7	|
8	01:EXCHANGE [UNPARTITIONED]
9	|
10	00:SCAN HDFS [default.nrtest2]
11	   partitions=1/1 files=0 size=0B&lt;/PRE&gt;&lt;P&gt;How do I get Impala to tell me where on disk it's looking for files? DESCRIBE gives me the schema for the table but not the location of the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:17:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60792#M69222</guid>
      <dc:creator>Nevo</dc:creator>
      <dc:date>2017-10-10T14:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create Impala table from existing Parquet file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60800#M69223</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Your steps were perfectly reasonable - this flow should work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Agree, the EXPLAIN definitely looks suspicious.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can get the location via SHOW CREATE TABLE &amp;lt;table&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps there is an issue with mixed-case HDFS paths. You might try converting everything to lower case to see if it works. I'd love to know either way so I can file a bug and fix it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 16:00:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60800#M69223</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2017-10-10T16:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create Impala table from existing Parquet file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60807#M69224</link>
      <description>&lt;P&gt;Huh... the SHOW CREATE TABLE indicated STORED AS TEXTFILE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going to guess this is a Stupid User Trick and that I mistyped something. Dropping and recreating the table appears to have resolved the issue, although I had limited time to look at it today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help, everyone. Getting the SHOW CREATE TABLE hint was key. I learned something today!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 21:02:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60807#M69224</guid>
      <dc:creator>Nevo</dc:creator>
      <dc:date>2017-10-10T21:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create Impala table from existing Parquet file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60811#M69225</link>
      <description>&lt;P&gt;Thanks for following up! Glad you got it working.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 03:08:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Impala-table-from-existing-Parquet-file/m-p/60811#M69225</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2017-10-11T03:08:50Z</dc:date>
    </item>
  </channel>
</rss>

