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 phases 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 developing an application, you need to prepare the development environment. You are advised to use the Java language and IntelliJ IDEA tool for development. In addition, you need to complete the initial configuration of the JDK and Maven.

Preparing the Environment

Prepare the Configuration File for Connecting to the Cluster.

During application development or running, you need to connect to the MRS cluster through cluster configuration files. Configuration files include cluster component information files and user files used for security authentication. You can obtain related content from the created MRS cluster.

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

Preparing the Configuration Files for Connecting to the Cluster

Configure and import the sample project.

IoTDB provides multiple sample programs in different scenarios. You can obtain sample projects and import them to the local development environment for program learning.

Configuring and Importing a Sample Projects

Develop programs based on business scenarios.

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