Updated on 2022-11-18 GMT+08:00

Commissioning Applications on Windows

Scenario

After the program code is developed, you can compile the program in the Windows environment. If the network between the local and the cluster service plane is normal, you can perform the commissioning on the local host.

Procedure

  1. In the IntelliJ IDEA development environment on Windows, click Maven on the right of IDEA to import the dependency.

    Figure 1 Importing the dependency

  2. (Optional) If the SSL authentication communication function of ZooKeeper is enabled for the interconnected cluster, add the JVM configuration

    -Dzookeeper.clientCnxnSocket=org.apache.zookeeper.ClientCnxnSocketNetty -Dzookeeper.client.secure=true.

  3. Right-click the JDBCExampleZK.java file and choose Run'JDBCExampleZK.main()' from the shortcut menu.

    Figure 2 Running the program
    You can view the output result on the console of the IDEA.
    Figure 3 Outputs