<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; clickhouse</title>
	<atom:link href="http://www.osyunwei.com/archives/category/framework/bigdata/clickhouse/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>clickhouse集群中某个节点的数据表变成只读状态修复办法</title>
		<link>https://www.osyunwei.com/archives/16696.html</link>
		<comments>https://www.osyunwei.com/archives/16696.html#comments</comments>
		<pubDate>Wed, 27 Aug 2025 03:11:33 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[clickhouse]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=16696</guid>
		<description><![CDATA[情况说明： ClickHouse 是5个节点的集群，其中一个节点10.103.128.198的数据库ckdata_devops中的network_config_backup表变成只读状态了，导致程序无法写入数据，日志报错。 修复思路： 由于修复元数据状态非常困难，最简单、最可靠的也是ClickHouse官方推荐的恢复方式是在坏掉的节点上，删除并重新创建表，让集群自动同步即可。 具体操作： 1、手动清理 ZooKeeper 中的副本节点 数据表已处于异常状态，但是直接删掉表后重新创建会报错，这是因为ZooKeeper 中的副本节点 /replicas/10.103.128.198 仍然存在（防止重复注册） 进入ZooKeeper集群的其中1个节点进行操作 cd /data/server/zookeeper/bin ./zkCli.sh #查看 replicas 下的所有副本 ls /clickhouse/tables/01/network_config_backup/replicas #删除故障节点 delete /clickhouse/tables/01/network_config_backup/replicas/10.103.128.198 #退出 quit 2、在正常节点10.103.128.196上面操作 进入控制台：clickhouse-client --password show databases; #查看数据库 use ckdata_devops; #进入数据库 show tables; #查看表 #查看表结构 SHOW CREATE TABLE ckdata_devops.network_config_backup; novalocal SHOW CREATE TABLE ckdata_devops.network_config_backup; SHOW CREATE TABLE ckdata_devops.network_config_backup Query id: [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/16696.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/16696.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>clickhouse集群硬件故障导致节点无法启动修复办法</title>
		<link>https://www.osyunwei.com/archives/16566.html</link>
		<comments>https://www.osyunwei.com/archives/16566.html#comments</comments>
		<pubDate>Thu, 17 Jul 2025 17:23:46 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[clickhouse]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=16566</guid>
		<description><![CDATA[问题描述： 线上5节点的clickhouse集群，其中有1个节点服务器内存坏掉了，导致服务器无故重启，更换新的内存启动服务器后，clickhouse服务无法启动，节点故障。 排查解决： 1、登录故障节点服务器，开启clickhouse日志 vi /etc/clickhouse-server/config.xml &#60;log&#62;/data/server/clickhouse/log/clickhouse-server.log&#60;/log&#62; #主日志文件，记录 ClickHouse 的运行日志（包括启动、查询、加载表等） &#60;errorlog&#62;/data/server/clickhouse/log/clickhouse-server.err.log&#60;/errorlog&#62; #错误日志文件，记录严重错误、异常堆栈等信息 :wq! #保存退出 chmod 755 /etc/clickhouse-server -R #设置权限 2、启动并查看最新的日志 systemctl stop clickhouse-server #关闭 systemctl start clickhouse-server #启动服务 tail -n 200 /data/server/clickhouse/log/clickhouse-server.err.log #查看最新的200条错误日志记录 #日志如下 7. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:1440: void std::__function::__policy_invoker&#60;void ()&#62;::__call_impl&#60;std::__function::__default_alloc_func&#60;DB::MergeTreeData::loadDataPartsFromDisk(ThreadPoolImpl&#60;ThreadFromGlobalPoolImpl&#60;false&#62;&#62;&#38;, unsigned long, std::queue&#60;std::vector&#60;std::shared_ptr&#60;DB::MergeTreeData::PartLoadingTree::Node&#62;, std::allocator&#60;std::shared_ptr&#60;DB::MergeTreeData::PartLoadingTree::Node&#62;&#62;&#62;, std::deque&#60;std::vector&#60;std::shared_ptr&#60;DB::MergeTreeData::PartLoadingTree::Node&#62;, std::allocator&#60;std::shared_ptr&#60;DB::MergeTreeData::PartLoadingTree::Node&#62;&#62;&#62;, std::allocator&#60;std::vector&#60;std::shared_ptr&#60;DB::MergeTreeData::PartLoadingTree::Node&#62;, std::allocator&#60;std::shared_ptr&#60;DB::MergeTreeData::PartLoadingTree::Node&#62;&#62;&#62;&#62;&#62;&#62;&#38;, std::shared_ptr&#60;DB::MergeTreeSettings const&#62; const&#38;)::$_19, void ()&#62;&#62;(std::__function::__policy_storage const*) @ 0x14594b44 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/16566.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/16566.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下ClickHouse集群安装部署</title>
		<link>https://www.osyunwei.com/archives/13535.html</link>
		<comments>https://www.osyunwei.com/archives/13535.html#comments</comments>
		<pubDate>Sat, 06 May 2023 02:17:21 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[clickhouse]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13535</guid>
		<description><![CDATA[ClickHouse是一个用于联机分析(OLAP)的列式数据库管理系统(DBMS)。 官方网站：https://clickhouse.com/ 官方文档：https://clickhouse.com/docs/zh 下载地址：https://packages.clickhouse.com/rpm/stable/ #稳定版本 或者：https://packages.clickhouse.com/rpm/lts/ #长期支持版 准备篇 操作系统：CentOS-7.x 3台服务器：192.168.21.100,192.168.21.101,192.168.21.128 1、关闭selinux sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config setenforce 0 2、关闭防火墙 ClickHouse提供两个网络端口: TCP 默认9000，HTTP 默认8123，建议在内网环境下部署ClickHouse，关闭服务器防火墙。 CentOS-7.x默认使用的是firewall作为防火墙，关闭 systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 3、配置系统打开文件数限制 vi  /etc/security/limits.conf #文件句柄数量的配置 * soft nofile 65536 * hard nofile 65536 * soft nproc [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13535.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13535.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下ClickHouse单节点安装部署</title>
		<link>https://www.osyunwei.com/archives/13496.html</link>
		<comments>https://www.osyunwei.com/archives/13496.html#comments</comments>
		<pubDate>Mon, 01 May 2023 18:22:57 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[clickhouse]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13496</guid>
		<description><![CDATA[ClickHouse是一个用于联机分析(OLAP)的列式数据库管理系统(DBMS)。 官方网站：https://clickhouse.com/ 官方文档：https://clickhouse.com/docs/zh 下载地址：https://packages.clickhouse.com/rpm/stable/ #稳定版本 或者：https://packages.clickhouse.com/rpm/lts/ #长期支持版 1、关闭selinux sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config setenforce 0 2、关闭防火墙 ClickHouse提供两个网络端口: TCP 默认9000，HTTP 默认8123，建议在内网环境下部署ClickHouse，关闭服务器防火墙。 CentOS-7.x默认使用的是firewall作为防火墙，关闭 systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 3、配置系统文件句柄数量 vi /etc/security/limits.d/clickhouse.conf #文件句柄数量的配置 clickhouse soft nofile 1048576 clickhouse hard nofile 1048576 :wq! #保存退出 4、安装ClickHouse 4.1、安装ClickHouse所需的依赖包 yum install [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13496.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13496.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
