23 ] {} <Error> ConfigReloader: Error updating configuration from `/etc/clickhouse-server/config.xml' config.: Code: 137, e.displayText() = DB::Exception: Unknown element in config: replica, e.what() = DB::Exception, Stack trace:
0. /usr/bin/clickhouse-server(StackTrace::StackTrace()+0x16) [0x99ea5e6]
1. /usr/bin/clickhouse-server(DB::Exception::Exception(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)+0x22) [0x30873f2]
2. /usr/bin/clickhouse-server(DB::Cluster::Cluster(Poco::Util::AbstractConfiguration&, DB::Settings const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x2c03) [0x756a543]
3. /usr/bin/clickhouse-server(DB::Clusters::updateClusters(Poco::Util::AbstractConfiguration&, DB::Settings const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x244) [0x756ab34]
4. /usr/bin/clickhouse-server(DB::Clusters::Clusters(Poco::Util::AbstractConfiguration&, DB::Settings const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x46) [0x756ad86]
5. /usr/bin/clickhouse-server(DB::Context::setClustersConfig(Poco::AutoPtr<Poco::Util::AbstractConfiguration> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x118) [0x7579c28]
6. /usr/bin/clickhouse-server() [0x3085608]
7. /usr/bin/clickhouse-server(DB::ConfigReloader::reloadIfNewer(bool, bool, bool)+0x8e2) [0x7cab1d2]
8. /usr/bin/clickhouse-server(DB::ConfigReloader::run()+0x4f) [0x7cac0ff]
9. /usr/bin/clickhouse-server() [0xa3db8cf]
10. /lib/x86_64-linux-gnu/libpthread.so.0(+0x7494) [0x7f591da33494]
11. /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7f591d065acf]
Конфиг:
<yandex>
<remote_servers>
<shard>
<replica>
<default_database>db1</default_database>
<host>server0.com</host>
<user>serv</user>
<password>serv</password>
</replica>
</shard>
<shard>
<replica>
<default_database>db1</default_database>
<host>server1.com</host>
<user>serv</user>
<password>serv</password>
</replica>
</shard>
</remote_servers>
</yandex>
имя кластера пропустили?
нужен еще один уровень с названием между <remote_servers> <shard> - https://github.com/yandex/ClickHouse/blob/stable/dbms/tests/server-test.xml#L56
Обсуждают сегодня