- STORAGE VAULT创建语句:
CREATE STORAGE VAULT IF NOT EXISTS doris_hdfs
PROPERTIES (
"type"="hdfs",
"fs.defaultFS"="hdfs://bigdatahdfs:8020",
"path_prefix"="doris/data"
);
建表语句:
CREATE TABLE IF NOT EXISTS supplier (
s_suppkey int(11) NOT NULL COMMENT ""
)
UNIQUE KEY (s_suppkey)
DISTRIBUTED BY HASH(s_suppkey) BUCKETS 1
PROPERTIES (
"replication_num" = "1",
"storage_vault_name" = "doris_hdfs"
插入语句:
insert into supplier select 3
- 是否可以建立外部表访问hdfs已有的数据?