ClickHouse Overview
The Hydrolix system is a data lake solution built on top of the ClickHouse engine. Most ClickHouse tools interoperate with the Hydrolix query system.
Clients may authenticate with credentials or present an authorization token.
ClickHouse native protocol⚓︎
The ClickHouse server interface supports clients and libraries capable of the ClickHouse native protocol.
The tunables native_port with default of 9000 and native_tls_port with a default of 9440, control the TCP port on which the server listens.
The examples on this page use the latter as most clusters are secured by TLS. See also Enable TLS.
Use tunable disable_traefik_native_port to turn off the server.
Authenticate with credentials⚓︎
If the credentials are valid, the ClickHouse server starts an interactive session.
If the credentials are invalid, the server sends the following error message. This includes the response from the Config API used by the ClickHouse server to authenticate the user.
Present an authorization token⚓︎
The ClickHouse server recognizes authorization tokens, which are issued to authenticated users.
The auth token is communicated over the ClickHouse protocol to the server in the password field. The username required for this feature is __api_token__.
Acquire a token⚓︎
Get the bearer token, which is good for the next 24 hours, to authenticate future API calls. This command assumes you've set the $HDX_HOSTNAME, $HDX_USER and $HDX_PASSWORD environment variables:
If the token is valid, the ClickHouse server starts an interactive session.
If the token is invalid, the following error message is returned.
Version mismatch warning⚓︎
Hydrolix ClickHouse engine versioning
Your ClickHouse client may report server version mismatch. The Hydrolix fork of the ClickHouse engine follows upstream, so isn't synchronized.