Altinity Stable Build Guide for ClickHouse
Organizations that prefer to build ClickHouse manually can use the Altinity Stable versions of ClickHouse directly from the source code.
Clone the Repo
Before using either the Docker or Direct build process, the Altinity Stable for ClickHouse must be downloaded from the Altinity Stable of ClickHouse repository, located at https://github.com/Altinity/clickhouse. The following procedure is used to update the source code to the most current version. For more information on downloading a specific version of the source code, see the GitHub documentation.
Hardware Recommendations
ClickHouse can run on the most minimum hardware to full clusters. The following hardware requirements are recommended for building and running ClickHouse:
- 16GB of RAM (32 GB recommende)
- Multiple cores (4+)
- 20-50 GB disk storage
Downloading Altinity Stable for ClickHouse
Before building ClickHouse, specify the verified version to download and build by specifying the Altinity Stable for ClickHouse tags. The `–recursive`` command will download all submodules part of the Altinity Stable project.
As of this writing, the most recent verified version is v21.8.10.19-altinitystable
, so the download command to download that version of Altinity Stable into the folder AltinityStableClickHouse
is:
git clone --recursive -b v21.8.10.19-altinitystable --single-branch https://github.com/Altinity/clickhouse.git AltinityStableClickHouse
.
Direct Build Instructions for Deb Based Linux
To build Altinity Stable for ClickHouse from the source code for Deb based Linux platforms:
-
Install the prerequisites:
sudo apt-get install git cmake python ninja-build
-
Install
clang-12
.sudo apt install clang-12
-
Create and enter the
build
directory within your AltinityStable directory.mkdir build && cd build
-
Set the compile variables to
clang-12
and initiate theninja
build.CC=clang-12 CXX=clang++-12 cmake .. -GNinja
-
Provide the
ninja
command to build your own Altinity Stable for ClickHouse:ninja clickhouse
-
Once complete, Altinity Stable for ClickHouse will be in the project’s
programs
folder, and can be run with the following commands:- ClickHouse Server:
clickhouse server
- ClickHouse Client:
clickhouse client
- ClickHouse Server: