Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][Sort] Table not found when Iceberg commit Hive table #4732

Closed
2 tasks done
thesumery opened this issue Jun 22, 2022 · 1 comment · Fixed by #4733
Closed
2 tasks done

[Bug][Sort] Table not found when Iceberg commit Hive table #4732

thesumery opened this issue Jun 22, 2022 · 1 comment · Fixed by #4733
Assignees
Labels
component/sort type/bug Something is wrong
Milestone

Comments

@thesumery
Copy link
Contributor

thesumery commented Jun 22, 2022

What happened

45d74df8bf128bb4857d9da3

What you expected to happen

succesful to commit hive table

How to reproduce

  1. prepare an environment:inlong 1.3.0-snapshot、flink 1.13.5、hive metastore 2.3.7、hive server 2.3.7、mysql 5.7
  2. In Mysql, create a table and open binlog
create table if not exists `stu` (
    `age` INT,
    `id` INT,
    `name` VARCHAR(63),
    PRIMARY KEY(id)
);
  1. In Hive server, beeline to connect it and create a iceberg table
 CREATE EXTERNAL TABLE `stu_ice`(                   
   `id` int COMMENT 'from deserializer',            
   `name` string COMMENT 'from deserializer',       
   `age` int COMMENT 'from deserializer')           
 ROW FORMAT SERDE                                   
   'org.apache.iceberg.mr.hive.HiveIcebergSerDe'    
 STORED BY                                          
   'org.apache.iceberg.mr.hive.HiveIcebergStorageHandler'                                    
 LOCATION                                           
   'hdfs://loaclhost:4007/usr/hive/warehouse/cran_test.db/stu' 
 TBLPROPERTIES (                                    
   'engine.hive.enabled'='true',                    
   'external.table.purge'='TRUE',                   
   'format-version'='2',                            
   'property-version'='2',                          
   'table_type'='ICEBERG')
  1. In Flink sql client,in memory catalog create a mysql table and iceberg table, load data into iceberg from mysql.
CREATE TABLE `table_913053` (
    `age` INT,
    `id` INT,
    `name` STRING,
    `PROCESS_TIME` AS PROCTIME()
) WITH (
    'scan.incremental.snapshot.enabled' = 'false',
    'connector' = 'mysql-cdc-inlong',
    'hostname' = 'localhost',
    'username' = 'inlong',
    'password' = 'inlong',
    'database-name' = 'test',
    'port' = '3306',
    'server-time-zone' = 'Asia/Shanghai',
    'table-name' = 'stu'
);
CREATE TABLE `stu_ice`(
    PRIMARY KEY(`id`),
    `id` INT,
    `name` STRING,
    `age` INT)
WITH (
    'connector' = 'iceberg',
    'catalog-database' = 'test',
    'catalog-table' = 'stu_ice',
    'catalog-type' = 'HIVE',
    'catalog-name' = 'HIVE',
    'uri' = 'thrift://localhost:7004',  -- hive metastore uri
    'warehouse' = '/usr/hive/warehouse'
);
insert into `stu` 
    select `id`, `age`, `name`
    from `table_913053`;

Environment

CentOS Linux release 7.2

InLong version

master

InLong Component

InLong Sort

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@thesumery thesumery added the type/bug Something is wrong label Jun 22, 2022
@github-actions
Copy link

Thanks a lot for opening your first issue with us! 🧡 We'll get back to you shortly! ⏳

@healchow healchow changed the title [Bug][Sort] Iceberg commit hive table table not found [Bug][Sort] Table not found when Iceberg commit Hive table Jun 22, 2022
@healchow healchow added this to the 1.3.0 milestone Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/sort type/bug Something is wrong
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants