В
Size: a a a
В
ИМ
IS
clickhouse-client --param_order=id -n <<-EOSQLпадает с ошибкой
SELECT id, location_slugs_fr FROM listings
ORDER BY {order: Identifier}
limit 24 offset 0
EOSQL
DB::Exception: Unknown data type family: Identifier
версия клиента ClickHouse client version 20.8.13.15 (official build).AK
ВВ
MM
drop table XXX no delay;
ИМ
drop table XXX no delay;
MM
<remote_servers>
<cluster>
<shard>
<internal_replication>true</internal_replication>
<replica>
<host>node2</host>
<port>9000</port>
</replica>
<replica>
<host>node3</host>
<port>9000</port>
</replica>
</shard>
</cluster>
</remote_servers>
<zookeeper>
<node index="1">
<host>node1</host>
<port>2181</port>
</node>
<node index="2">
<host>node2</host>
<port>2181</port>
</node>
<node index="3">
<host>node3</host>
<port>2181</port>
</node>
<root>/prod</root>
</zookeeper>
DT
<remote_servers>
<cluster>
<shard>
<internal_replication>true</internal_replication>
<replica>
<host>node2</host>
<port>9000</port>
</replica>
<replica>
<host>node3</host>
<port>9000</port>
</replica>
</shard>
</cluster>
</remote_servers>
<zookeeper>
<node index="1">
<host>node1</host>
<port>2181</port>
</node>
<node index="2">
<host>node2</host>
<port>2181</port>
</node>
<node index="3">
<host>node3</host>
<port>2181</port>
</node>
<root>/prod</root>
</zookeeper>
MM
MM
2021.03.03 14:04:53.191682 [ 69 ] {} <Error> void DB::StorageKafka::threadFunc(size_t): Code: 242, e.displayText() = DB::Exception: Table is in readonly mode (zookeeper path: /clickhouse/tables/default/search_items), Stack trace (when copying this message, always include the lines below):
0. DB::Exception::Exception<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0x85494a1 in /usr/bin/clickhouse
1. DB::StorageReplicatedMergeTree::assertNotReadonly() const @ 0xf16cf79 in /usr/bin/clickhouse
2. DB::StorageReplicatedMergeTree::write(std::__1::shared_ptr<DB::IAST> const&, std::__1::shared_ptr<DB::StorageInMemoryMetadata const> const&, DB::Context const&) @ 0xf16d087 in /usr/bin/clickhouse
3. DB::PushingToViewsBlockOutputStream::PushingToViewsBlockOutputStream(std::__1::shared_ptr<DB::IStorage> const&, std::__1::shared_ptr<DB::StorageInMemoryMetadata const> const&, DB::Context const&, std::__1::shared_ptr<DB::IAST> const&, bool) @ 0xeb698a9 in /usr/bin/clickhouse
4. DB::InterpreterInsertQuery::execute() @ 0xeb62b08 in /usr/bin/clickhouse
5. DB::PushingToViewsBlockOutputStream::PushingToViewsBlockOutputStream(std::__1::shared_ptr<DB::IStorage> const&, std::__1::shared_ptr<DB::StorageInMemoryMetadata const> const&, DB::Context const&, std::__1::shared_ptr<DB::IAST> const&, bool) @ 0xeb6aa06 in /usr/bin/clickhouse
6. DB::InterpreterInsertQuery::execute() @ 0xeb62b08 in /usr/bin/clickhouse
7. DB::StorageKafka::streamToViews() @ 0xf2299f8 in /usr/bin/clickhouse
8. DB::StorageKafka::threadFunc(unsigned long) @ 0xf228c68 in /usr/bin/clickhouse
9. DB::BackgroundSchedulePoolTaskInfo::execute() @ 0xe85a180 in /usr/bin/clickhouse
10. DB::BackgroundSchedulePool::threadFunction() @ 0xe85c177 in /usr/bin/clickhouse
11. ? @ 0xe85cf42 in /usr/bin/clickhouse
12. ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0x84f6e4f in /usr/bin/clickhouse
13. ? @ 0x84fa8e3 in /usr/bin/clickhouse
14. start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
15. clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so
(version 21.2.4.6 (official build))
DT
DT
MM
MM
echo "mntr"|nc node2 2181вот mntr лидера
zk_version 3.5.8-f439ca583e70862c3068a1f2a7d4d068eec33315, built on 05/04/2020 15:53 GMT
zk_avg_latency 0
zk_max_latency 0
zk_min_latency 0
zk_packets_received 1388
zk_packets_sent 5
zk_num_alive_connections 2
zk_outstanding_requests 1382
zk_server_state leader
zk_znode_count 1977
zk_watch_count 0
zk_ephemerals_count 18
zk_approximate_data_size 295232
zk_open_file_descriptor_count 144
zk_max_file_descriptor_count 1048576
zk_followers 2
zk_synced_followers 2
zk_pending_syncs 0
zk_last_proposal_size 32
zk_max_proposal_size 36
zk_min_proposal_size 32
MM
zk_followers 2
zk_synced_followers 2
DT
zk_followers 2
zk_synced_followers 2
SYSTEM RESTART REPLICAS;И наверное дальше просто рестарт clickhouse-server можно сделать если не сработало
Ф
Ф
YV