用hdfs做存储介质,建表时副本数已经设置成1,为什么插入数据后副本数还是3?是否可以建立外部表访问hdfs已有的数据

Viewed 47
  1. 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
    image.png
  2. 是否可以建立外部表访问hdfs已有的数据?
1 Answers