最近更新时间:2024.04.09 16:07:34
首次发布时间:2024.04.09 16:07:34
CREATE EXTERNAL CATALOG hive_catalog PROPERTIES ( "hive.metastore.uris"="thrift://{hms_ip:hms_port}", "type" = "hive");
select * from hive_catalog.db_1.table1 limit 1;
CREATE EXTERNAL CATALOG hive_tos_catalog PROPERTIES ( 'type'='hive', 'hive.metastore.uris' = 'thrift://{hms_ip:hms_port}', "aws.s3.access_key"="xxx", "aws.s3.secret_key"="xxx==", "aws.s3.endpoint"="tos-s3-cn-beijing.ivolces.com", "aws.s3.enable_ssl" = "false" );
select * from hive_tos_catalog.hive.hive_tos;
CREATE EXTERNAL CATALOG hudi_catalog PROPERTIES ( 'type'='hudi', 'hive.metastore.uris' = 'thrift://{hms_ip:hms_port}' );
select * from hudi_catalog.db_1.table1 limit 1;
CREATE EXTERNAL CATALOG hudi_tos_catalog PROPERTIES ( 'type'='hudi', 'hive.metastore.uris' = 'thrift://{hms_ip:hms_port}', "aws.s3.access_key"="xx", "aws.s3.secret_key"="xxx==", "aws.s3.endpoint"="tos-s3-cn-beijing.ivolces.com", "aws.s3.enable_ssl" = "false" );
select * from hudi_tos_catalog.db_1.table1 limit 1;
CREATE EXTERNAL CATALOG iceberg_catalog PROPERTIES ( 'type'='iceberg', 'iceberg.catalog.type' = 'hive', 'iceberg.catalog.hive.metastore.uris' = 'thrift://{hms_ip:hms_port}' );
select * from iceberg_catalog.iceberg.iceberg_hdfs;
CREATE EXTERNAL CATALOG iceberg_tos_catalog PROPERTIES ( 'type'='iceberg', 'iceberg.catalog.type' = 'hive', 'hive.metastore.uris' = 'thrift://{hms_ip:hms_port}', "aws.s3.access_key"="xxx", "aws.s3.secret_key"="xxxx==", "aws.s3.endpoint"="tos-s3-cn-beijing.ivolces.com", "aws.s3.enable_ssl" = "false" );
select * from iceberg_tos_catalog.iceberg.iceberg_tos;
CREATE EXTERNAL CATALOG paimon_catalog_hdfs PROPERTIES ( "type" = "paimon", "paimon.catalog.type" = "hive", "paimon.catalog.warehouse" = "hdfs://master-1-1.emr-xxx.offline-cn-beijing.emr-volces.com:8020/sr-qa/paimon-warehouse", "hive.metastore.uris" = "thrift://{hms_ip:hms_port}" );
set catalog paimon_catalog_hdfs; show databases; use test_db_hdfs; show tables; select * from paimon_catalog_hdfs.test_db_hdfs.test_tbl_hdfs;
CREATE EXTERNAL CATALOG paimon_catalog_fs PROPERTIES ( "type" = "paimon", "paimon.catalog.type" = "filesystem", "paimon.catalog.warehouse" = "s3://sr-qa/xxx", "aws.s3.enable_ssl" = "false", "aws.s3.endpoint" = "tos-s3-cn-beijing.ivolces.com", "aws.s3.access_key" = "xxx", "aws.s3.secret_key" = "xxx==" );
set catalog paimon_catalog_fs; show databases; use test_db_fs; show tables; select * from paimon_catalog_fs.test_db_fs.test_tbl_fs;