flink-streaming-platform-web/docs/sql_demo/demo_batch.md
2025-03-28 17:52:09 +08:00

384 B

提前先在hive test的库下创建好test的表

create table  test(
id int,
name string
)
ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t';
CREATE CATALOG testmyhive WITH (
    'type' = 'hive',
    'default-database' = 'test',
    'hive-conf-dir' = '/alidata/server/zhp/catalog/config'
);
USE CATALOG testmyhive;

insert into test.test values(4,'n2');