Downloading and Installing the SDK
The service plane SDK supports two programming languages: Java and Python. For Java SDK, there are two scenarios:
- Maven source available: A Maven source is configured and can download JAR files from open source repositories.
- Maven source unavailable: There is no Maven source configured or it cannot download JAR files from open source repositories.
Downloading the SDK
Download the SDK and driver. For details, see Managing Connections . The SDK package named huaweicloud-ges-sdk-java-xxx.zip is obtained.
Installing the Java SDK When the Maven Source Is Available
- Extract huaweicloud-ges-sdk-java-xxx.zip, go to the maven-install directory, and run the ges-sdk-java-maven-install.bat or ges-sdk-java-maven-install.sh file to install graph-sdk-xxx.jar and cypher-jdbc-driver-xxx.jar to the local Maven repository.
- Create a Maven project and add the following dependency to the POM file. Use Maven to download JAR files on which the SDK depends from other open source repositories.
<dependency> <groupId>com.huawei.ges.graph</groupId> <artifactId>graph-sdk</artifactId> <version>xxx</version> // Enter the version number of the current service-plane SDK. </dependency>
Installing the Java SDK When the Maven Source Is Unavailable
Create a project, extract huaweicloud-ges-sdk-java-xxx.zip, and import graph-sdk-xxx-jar-with-dependencies.jar in the jars directory to the project or import all packages in the graph-sdk-xxx.jar and graph-sdk-lib directories to the project.
Installing the Python SDK
Extract huaweicloud-ges-sdk-java-xxx.zip, go to the huaweicloud-ges-sdk-java-xxx directory, and run the pip install command to install the .whl file in the pip_install directory. Then, you can use the Python SDK locally.
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