Updated on 2024-08-12 GMT+08:00

ClickHouse Application Development Process

Figure 1 and Table 1 describe the phases in the development process.

Figure 1 ClickHouse application development process
Table 1 Description of the ClickHouse application development process

Phase

Description

Reference

Preparing the development environment

ClickHouse applications can be developed in a variety of languages. You are advised to use the Java language and IntelliJ IDEA tool, and complete initial configurations of JDK and Maven.

Preparing a ClickHouse Application Development Environment

Preparing the configuration files for connecting to the cluster

During the development or a test run of the program, you need to use cluster configuration files to connect to an MRS cluster. The configuration files usually contain cluster component information. You can obtain the required information from the created MRS cluster.

Nodes used for program debugging or running must be able to communicate with the nodes within the MRS cluster, and the hosts domain name must be configured.

Preparing a ClickHouse Application Running Environment

Configuring and importing sample projects

ClickHouse provides a range of sample projects for different scenarios. You can obtain a sample project and import it to the local development environment.

Importing and Configuring ClickHouse Sample Projects

Writing program code for a service scenario

Sample projects are provided to help you quickly understand APIs of ClickHouse components.

Developing a ClickHouse Application

Compiling and running applications

Compile and run the program. You can debug and run the program in the local Windows development environment, or compile the program into a JAR package and submit it to a Linux node.

Commissioning a ClickHouse Application in a Local Windows Environment

Commissioning a ClickHouse Application in a Linux Environment