Clickhouse 集群字典 - 无法正常工作

Clickhouse cluster dictionary - having not work

提问人:Александр Коваленко 提问时间:8/2/2023 更新时间:8/2/2023 访问量:75

问:

有一个由 3 台服务器组成的集群。目前,已在底部创建了一个分布式product_log_dist表。因此,每个服务器上都有一个product_dict_full词典。字典参与对表的查询,效果很好。但是,如果将 HAVING 添加到查询列中,则字典中的查询错误

查询错误:代码:279。DB::Exception:从 node4:9000 接收。DB::NetException。DB::NetException:所有连接尝试都失败。日志:

代码:210。DB::NetException:SSL 异常:error:100000f7:SSL 例程:OPENSSL_internal:WRONG_VERSION_NUMBER (IP_ADDRESS:9000)。(NETWORK_ERROR)(版本 23.4.2.11(官方版本)) 代码:210。DB::NetException:SSL 异常:error:100000f7:SSL 例程:OPENSSL_internal:WRONG_VERSION_NUMBER (IP_ADDRESS:9000)。(NETWORK_ERROR)(版本 23.4.2.11(官方版本)) 代码:210。DB::NetException:SSL 异常:error:100000f7:SSL 例程:OPENSSL_internal:WRONG_VERSION_NUMBER (IP_ADDRESS:9000)。(NETWORK_ERROR)(版本 23.4.2.11(官方版本))

: 执行 Remote 时:执行 'FUNCTION and(and(equals(seller_id, 1233949), equals(is_show, true)) :: 0, and(greaterOrEquals(created_at, '2023-06-03'), lessOrEquals(created_at, '2023-08-01'), equals(dictGet('likestats.product_dict_full', 'is_new', product_id), true)) :: 1) -> and(and(equals(seller_id, 1233949), equals(is_show, true)), and(greaterOrEquals(created_at, '2023-06-03'), lessOrEquals(created_at, '2023-08-01'), equals(dictGet('likestats.product_dict_full', 'is_new', product_id), true))) UInt8 : 11'.(ALL_CONNECTION_TRIES_FAILED)(版本 22.10.2.11(正式版))

请求示例

enter image description here

enter image description here

表的说明

create table product_dist
(
    id                UInt32,
    name              String,
    updated_at        Date,
    pics              UInt8,
    is_new            Bool,
    comment           UInt16,
    rating            UInt8,
    price             UInt32,
    price_discount    UInt32,
    kind_id           UInt8,
    subject_id        UInt32,
    subject_parent_id UInt32,
    seller_id         Int32,
    brand_id          Int32,
    root              UInt32 default 0
)
    engine = Distributed('cluster', 'loc', 'product_local', id);


create table product_dict_full
(
    id                UInt64,
    name              String,
    pics              UInt8,
    is_new            Bool,
    comment           UInt16,
    rating            UInt8,
    price             UInt32,
    price_discount    UInt32,
    kind_id           UInt8,
    subject_id        UInt32,
    subject_parent_id UInt32,
    seller_id         Int32,
    brand_id          Int32
)
    engine = Dictionary;
字典 点击屋 拥有

评论

0赞 Slach 8/3/2023
你的字典的SOURCE是什么? 意味着您尝试通过 TLS 连接到 9000 端口,但通常 9000 端口仅用于非 TLS 连接 TCP 本机协议OPENSSL_internal:WRONG_VERSION_NUMBER (IP_ADDRESS:9000)

答: 暂无答案