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.
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. |
|
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. |
|
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. |
|
Compile and run the application. |
Compile the developed application and submit it for running. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot