为什么在分布式引擎表目录中创建的碎片目录中输入密码?
我已经设置了3个碎片,包括簇上的本地碎片,如下所示。
<log>
<secret>users</secret>
<shard>
<replica>
<host>127.0.0.1</host>
<port>9000</port>
</replica>
</shard>
<shard>
<replica>
<host>remote1</host>
<port>9000</port>
</replica>
</shard>
<shard>
<replica>
<host>remote2</host>
<port>9000</port>
</replica>
</shard>
</log>
我创建了一个分布式引擎表,包括SHRDing密钥。
当在分布式表上执行插入查询时, 在“ ClickHouse Data Dilectory”中的“分布式表目录”中创建了包含密码的碎片目录。
例如,如果ClickHouse数据目录为
/etc/clickhouse-server/data/
,并且在本地DB中创建了名为log_total
的分布式表。
当我执行时,将其插入local.log_total .....
查询。
在此路径中 如下所示,创建了三个目录。
default:password@127%2E0%2E0%2E1:9000#dbname
default:password@remote1:9000#dbname
default:password@remote2:9000#dbname
我希望此目录不包含密码。
我认为使用秘密标签可以解决它,但事实并非如此。
有什么好方法吗?
请分享您的经验。
谢谢。
I have set up 3 shards including local shards on the cluster as shown below.
<log>
<secret>users</secret>
<shard>
<replica>
<host>127.0.0.1</host>
<port>9000</port>
</replica>
</shard>
<shard>
<replica>
<host>remote1</host>
<port>9000</port>
</replica>
</shard>
<shard>
<replica>
<host>remote2</host>
<port>9000</port>
</replica>
</shard>
</log>
And I created a distributed engine table including the shrding key.
When INSERT Query is executed on a distributed table,
a directory of shards containing passwords is created in the 'distributed table directory' in the 'ClickHouse data directory'.
For example, if the ClickHouse data directory is
/etc/clickhouse-server/data/
and a distributed table named log_total
is created in the local db.
When I execute INSERT INTO local.log_total .....
query.
In this path (/etc/clickhouse-server/data/local/log_total/)
three directories are created as shown below.
default:password@127%2E0%2E0%2E1:9000#dbname
default:password@remote1:9000#dbname
default:password@remote2:9000#dbname
I wish this directories didn't contain passwords.
I thought using the secret tag would solve it, but it wasn't.
Is there any good way?
Please share your experience.
thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个设置
,如果use_compact_in_in_distributed_parts_names = 1,则默认情况下启用了它,
然后文件夹名称变为
shard_1_replica_1
而没有用户名/密码。您使用什么CH版本?
There is a setting for this
and it's enabled by default
If use_compact_format_in_distributed_parts_names=1 then folder name became
shard_1_replica_1
without username/password.What CH version do you use?