<?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: Creating Iceberg table in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/389003#M246856</link>
    <description>&lt;P&gt;So I figured something out:&lt;/P&gt;&lt;P&gt;use my_db;&lt;BR /&gt;CREATE EXTERNAL TABLE IF NOT EXISTS a_iceberg_1 (the_month STRING, the_day INT, the_time INT, host STRING, message STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY ' ' STORED AS TEXTFILE LOCATION 'ofs://path/to/file' TBLPROPERTIES('iceberg.catalog'='hadoop.tables')&lt;/P&gt;&lt;P&gt;Only now I have to figure out how to delimit the fields properly:&lt;BR /&gt;Jun 4 03:10:01 host&amp;nbsp;rsyslogd: [origin software="rsyslogd" swVersion="8.24.0-57.el7_9.3" x-pid="3829" x-info="&lt;A href="http://www.rsyslog.com" target="_blank"&gt;http://www.rsyslog.com&lt;/A&gt;"] rsyslogd was HUPed&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 06:52:12 GMT</pubDate>
    <dc:creator>EFasdfSDfaSDFG</dc:creator>
    <dc:date>2024-06-11T06:52:12Z</dc:date>
    <item>
      <title>Creating Iceberg table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/388753#M246759</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Complete noob here.&lt;/P&gt;&lt;P&gt;I have a file, and have created an iceberg table over it (via Hue). However, I can't select any data. How do I set the schema up correctly?&lt;/P&gt;&lt;P&gt;CREATE TABLE iceberg_test_1 (month STRING, day STRING, time STRING, host STRING, source STRING, body STRING) PARTITIONED BY(event_day INT, event_month INT, event_year INT) STORED BY ICEBERG LOCATION 'ofs://ozone/user/logs/test';&lt;/P&gt;&lt;P&gt;The file is:&lt;BR /&gt;Jun 4 08:26:57 host smartd[2657]: Device: /dev/bus/0 [megaraid_disk_05], SMART Failure: DATA CHANNEL IMPENDING FAILURE GENERAL HARD DRIVE FAILURE&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 07:18:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/388753#M246759</guid>
      <dc:creator>EFasdfSDfaSDFG</dc:creator>
      <dc:date>2024-06-04T07:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Iceberg table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/388755#M246760</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;Can you confirm with the version details also let us know you are using Hue--Hive Editor or Hue--Impala editor to create the iceberg table?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 10:27:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/388755#M246760</guid>
      <dc:creator>Mounika_Reddy</dc:creator>
      <dc:date>2024-06-04T10:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Iceberg table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/388761#M246765</link>
      <description>&lt;P&gt;I created the table using the Impala editor&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 12:22:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/388761#M246765</guid>
      <dc:creator>EFasdfSDfaSDFG</dc:creator>
      <dc:date>2024-06-04T12:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Iceberg table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/388770#M246770</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;Below is the syntax for creating iceberg tables using impala&lt;BR /&gt;1)create table test(id int, name string) stored by iceberg;&lt;BR /&gt;insert into test values(1,"M");&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)create table test_iceberg (id int, name string) stored by iceberg;&lt;BR /&gt;LOAD DATA INPATH '&amp;lt;path_of_file&amp;gt;' INTO TABLE test_iceberg;&lt;/P&gt;&lt;P&gt;3)CREATE EXTERNAL TABLE test_iceberg_1&lt;BR /&gt;STORED AS ICEBERG&lt;BR /&gt;LOCATION '/path/to/table'&lt;BR /&gt;TBLPROPERTIES('iceberg.catalog'='hadoop.tables');&lt;/P&gt;&lt;P&gt;If the data exits in ozone make sure you have the enough privileges to access the same&lt;/P&gt;&lt;P&gt;For more info ,we suggest you to refer the &lt;A href="https://impala.apache.org/docs/build/html/topics/impala_iceberg.html" target="_blank"&gt;https://impala.apache.org/docs/build/html/topics/impala_iceberg.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope the info helps.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 15:23:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/388770#M246770</guid>
      <dc:creator>Mounika_Reddy</dc:creator>
      <dc:date>2024-06-04T15:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Iceberg table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/388794#M246783</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95024"&gt;@EFasdfSDfaSDFG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the following syntax to create a Iceberg table using Impala Editor in Hue:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Impala:

CREATE TABLE IF NOT EXISTS ice_t (i int, s string, ts timestamp, d date) STORED BY ICEBERG;
INSERT INTO ice_t VALUES(1, 'Ranga', '2015-05-15 12:00:00', '2015-05-15');
select * from ice_t;

CREATE TABLE IF NOT EXISTS ice_ext (i int, s string, ts timestamp, d date)
PARTITIONED BY (state string) STORED BY ICEBERG;
INSERT INTO ice_ext SELECT 1, 'Ranga', '2015-05-15 12:00:00', '2015-05-15', 'Andhra';
select * from ice_ext;

CREATE TABLE ice_t2 ( i int, s string, ts timestamp, d date ) STORED AS ICEBERG LOCATION '/warehouse/tablespace/external/hive/ice_t2';
INSERT INTO ice_t2 VALUES(1, 'Ranga', '2015-05-15 12:00:00', '2015-05-15');
select * from ice_t2;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Jun 2024 09:03:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/388794#M246783</guid>
      <dc:creator>RangaReddy</dc:creator>
      <dc:date>2024-06-05T09:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Iceberg table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/388996#M246850</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95024"&gt;@EFasdfSDfaSDFG&lt;/a&gt;,&amp;nbsp;Did the response assist in resolving your query? If it did, kindly mark the relevant reply as the solution, as it will aid others in locating the answer more easily in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 05:26:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/388996#M246850</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2024-06-11T05:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Iceberg table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/389001#M246854</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;From those examples, can I create an external Iceberg table over a file/directory the same way that Hive is able to?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 06:15:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/389001#M246854</guid>
      <dc:creator>EFasdfSDfaSDFG</dc:creator>
      <dc:date>2024-06-11T06:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Iceberg table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/389003#M246856</link>
      <description>&lt;P&gt;So I figured something out:&lt;/P&gt;&lt;P&gt;use my_db;&lt;BR /&gt;CREATE EXTERNAL TABLE IF NOT EXISTS a_iceberg_1 (the_month STRING, the_day INT, the_time INT, host STRING, message STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY ' ' STORED AS TEXTFILE LOCATION 'ofs://path/to/file' TBLPROPERTIES('iceberg.catalog'='hadoop.tables')&lt;/P&gt;&lt;P&gt;Only now I have to figure out how to delimit the fields properly:&lt;BR /&gt;Jun 4 03:10:01 host&amp;nbsp;rsyslogd: [origin software="rsyslogd" swVersion="8.24.0-57.el7_9.3" x-pid="3829" x-info="&lt;A href="http://www.rsyslog.com" target="_blank"&gt;http://www.rsyslog.com&lt;/A&gt;"] rsyslogd was HUPed&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 06:52:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/389003#M246856</guid>
      <dc:creator>EFasdfSDfaSDFG</dc:creator>
      <dc:date>2024-06-11T06:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Iceberg table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/389304#M246948</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95024"&gt;@EFasdfSDfaSDFG&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;From Hive the&amp;nbsp; following formats supported&amp;nbsp;&amp;nbsp;: Parquet (default), Avro, ORC&lt;BR /&gt;Create table examples:&lt;BR /&gt;CREATE EXTERNAL TABLE test_ice_1 ( i INT, t TIMESTAMP, j BIGINT) STORED BY ICEBERG;&lt;BR /&gt;CREATE EXTERNAL TABLE test_ice_2 (i INT, t TIMESTAMP) PARTITIONED BY (j BIGINT) STORED BY ICEBERG;&lt;BR /&gt;CREATE EXTERNAL TABLE test_ice_3 (i int) STORED AS ORC STORED BY ICEBERG LOCATION '';&lt;BR /&gt;CREATE EXTERNAL TABLE test_ice_4 (i int) STORED BY ICEBERG TBLPROPERTIES ('key'='value', 'key'='value')&lt;BR /&gt;CREATE EXTERNAL TABLE test_ice_1 (i int) STORED AS ORC STORED BY ICEBERG TBLPROPERTIES ('format-version' = '2');&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 14:30:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Creating-Iceberg-table/m-p/389304#M246948</guid>
      <dc:creator>Mounika_Reddy</dc:creator>
      <dc:date>2024-06-17T14:30:19Z</dc:date>
    </item>
  </channel>
</rss>

