1.没有副本的分布式引擎表
1.1 修改文件/etc/clcikhouse-server/config.xml,
<listen_host>::</listen_host>
115 <!-- Same for hosts with disabled ipv6: -->
116 <!-- <listen_host>0.0.0.0</listen_host> -->
117
118 <!-- Default values - try listen localhost on ipv4 and ipv6: -->
119 <!-- <listen_host>::1</listen_host> -->
120 <!-- <listen_host>127.0.0.1</listen_host> -->
1.2修改/etc/metrika.xml
<yandex>
<clickhouse_remote_servers>
<linux>
<shard>
<internal_replication>true</internal_replication>
<replica>
<host>linux01</host>
<port>9000</port>
</replica>
</shard>
<shard>
<replica>