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

Development Process

This section describes how to use Java APIs to develop IoTDB applications.

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

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

Phase

Description

Reference

Prepare the development environment

Before you start development, prepare the development environment. You are advised to use the Java language and IntelliJ IDEA tool to develop applications, and complete initial configurations of JDK and Maven.

Preparing the Development and Running Environment

Prepare the configuration files for connecting to the cluster

During the development or a test run of the program, you will need cluster configuration files to connect to an MRS cluster. These files usually include the cluster component information file and user files for security authentication. You can obtain the required information from the created MRS cluster.

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

Preparing the Configuration Files for Connecting to the Cluster

Prepare projects.

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

Configuring and Importing a Sample Project

Write program code for a service scenario.

Sample projects of the Java language are provided, including JDBC and Session connection modes. A sample project covers the entire process from creating a storage group, creating a time sequence, inserting data, to deleting a storage group.

Application Development

Compile and run the application.

Compile the developed application and submit it for running.

Application Commissioning