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.
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. |
|
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. |
|
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. |
|
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