This article provides an implementation plan for Flink integrating Iceberg scenarios, including configuration examples, execution steps, and parameter descriptions.

Case

Use flink to add, delete, modify and query Iceberg data

solution

Create Flink SQL query job and download dependencies

20250120182130

CREATE CATALOG hive_catalog WITH (
  'type'='iceberg',
  'catalog-type'='hive',
  'uri'='thrift://172.19.189.246:9083',
  'clients'='10',
  'property-version'='1',
  'warehouse'='hdfs://172.19.189.246:9000/user/hive/warehouse'
);

CREATE TABLE IF NOT EXISTS  `hive_catalog`.`ispong_db`.`iceberg_table2` (
    id BIGINT COMMENT 'unique id',
    data STRING
);

-- 删除。更新 需要走批处理模式
INSERT INTO `hive_catalog`.`ispong_db`.`iceberg_table2` VALUES (1, 'a');

INSERT INTO `hive_catalog`.`ispong_db`.`iceberg_table2` VALUES (2, 'b');