Update on CentOS 7 [Документация VAS Experts]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:dpi:dpi_components:qoestor:install_and_update:update:centos7:start [2024/05/17 09:03] – created elena.krasnobryzhen:dpi:dpi_components:qoestor:install_and_update:update:centos7:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Update on CentOS 7 ====== 
-{{indexmenu_n>1}} 
- 
-<note warning>**Attention!** This guide is applicable **only for CentOS 7**. If you are using CentOS 8 or VEOS, ignore this guide.</note> 
- 
-Due to certain limitations in ClickHouse, changes were made to the dependencies of our fastor package. These changes ensure the correct functioning of the package on CentOS 8 and VEOS, but may cause issues on CentOS 7 due to the inability to handle the specified dependencies. 
- 
-===== Step-by-Step Guide ===== 
- 
-**Step 1.** If you are receiving large amounts of data, it is recommended to: 
-  - Stop the receivers: <code bash>fastor-stop</code> 
-  - Wait for the inserts to complete in the database: <code bash>clickhouse-client --query="select * from system.processes sp where sp.query like 'insert into%'" | wc -l</code> 
-  - Stop the database: <code bash>fastor-db-stop</code> 
- 
-**Step 2.** Clear the yum cache: 
-<code bash>yum clean all</code> 
- 
-**Step 3.** Run the installation script to update the repositories: 
-<code bash>source <(curl https://vasexperts.ru/install/fastor-rpm_install.sh)</code> 
- 
-<note important>The script will not be completed successfully. The script output will contain errors indicating that ClickHouse dependencies cannot be resolved.</note> 
- 
-**Step 4.** Check the output of the command: 
-<code bash>rpm -qa | grep clickhouse</code> 
- 
-If the output shows different states for all packages: 
-<code> 
-clickhouse-client-23.4.2.11-1.x86_64  
-clickhouse-server-23.4.2.11-1.x86_64  
-clickhouse-common-static-23.4.2.11-1.x86_64 
-</code> 
- 
-then you need to remove these packages: 
-<code bash>rpm -e fastor clickhouse-client-23.4.2.11-1.x86_64 clickhouse-server-23.4.2.11-1.x86_64 clickhouse-common-static-23.4.2.11-1.x86_64</code> 
- 
-**Step 5.** Update ClickHouse: 
-<code bash>yum install clickhouse-common-static-24.2.2.71 clickhouse-server-24.2.2.71 clickhouse-client-24.2.2.71</code> 
- 
-<note important>The package versions should be exactly as specified in the command</note> 
- 
-**Step 6.** If the file ''/usr/lib/systemd/system/clickhouse-server.service'' contains the parameter ''TimeoutStartSec=0'', it needs to be removed. This affects the startup of ClickHouse on CentOS 7. 
- 
-Then run the command: 
-<code bash>systemctl daemon-reload</code> 
- 
-**Step 7.** Install the latest version of fastor: 
-<code bash>yum install fastor</code> 
- 
-**Step 8.** Restart ClickHouse in repair mode: 
-<code bash>fastor-db-restart-repair</code> 
- 
-**Step 9.** Update the database schema: 
-<code bash>fastor-db-scheme</code> 
- 
-**Step 10.** Restore the .env file: 
-<code bash>mv "/var/qoestor/backend/.env.rpmsave" "/var/qoestor/backend/.env"</code> 
- 
-**Step 11.** Restart the receivers: 
-<code bash>fastor-restart</code>