Skip to content
Live $100 credit at signup, up to $300 total Offer ends December 31, 2026 Get started →

ClickHouse

ClickHouse is an open-source, column-oriented database management system built for online analytical processing (OLAP). It ingests and queries large volumes of data with very low latency, which makes it a strong fit for real-time analytics, dashboards, observability, and log storage. The HTTP interface runs on port 8123 and the native protocol on port 9000.

ComponentVersion
ClickHouse Server26.6.1.1193
ClickHouse Client26.6.1.1193
Ubuntu24.04 LTS

Set these optionally when you deploy from the marketplace. Leave a field blank to have a secure value generated.

VariableDescription
CLICKHOUSE_USERClickHouse username
CLICKHOUSE_PASSWORDClickHouse password
ssh ubuntu@<your-vm-ip>

On the first boot, a setup script generates the password, configures the built-in default user, and starts ClickHouse. This takes one or two minutes. Track progress:

journalctl -u clickhouse-first-boot.service -f

The login message (MOTD) confirms when ClickHouse is ready.

systemctl status clickhouse-server

Retrieve the generated credentials:

sudo cat /etc/clickhouse/credentials.txt
FieldValue
Usernamedefault
PasswordFrom /etc/clickhouse/credentials.txt

Connect with the native client:

clickhouse-client --user default --password

The HTTP and native endpoints are:

http://<your-vm-ip>:8123
<your-vm-ip>:9000
# Check service status
systemctl status clickhouse-server
# Restart
sudo systemctl restart clickhouse-server
# View logs
sudo journalctl -u clickhouse-server -f
PathPurpose
/etc/clickhouse-server/Server configuration
/etc/clickhouse/credentials.txtGenerated connection credentials
/var/lib/clickhouse/Database data
/var/log/clickhouse-server/Server log files

Ports 8123 and 9000 are accessible on the VM’s network interface. UFW is enabled and allows SSH (port 22) only by default.

To allow access from a specific IP:

sudo ufw allow from <trusted-ip> to any port 8123
sudo ufw allow from <trusted-ip> to any port 9000

To access ClickHouse without opening the firewall, use an SSH tunnel:

# Run this on your local machine
ssh -L 8123:localhost:8123 -L 9000:localhost:9000 ubuntu@<your-vm-ip>

For production use, place the HTTP interface behind a reverse proxy so you can serve it with a TLS certificate. Configure encrypted native connections separately, and restrict both ports to trusted application and administrator networks.

Last updated: