Preparations
Before using the Java SDK to access DataArts Fabric SQL, you need to prepare both the service environment and the development environment. Preparing the service environment involves setting up an account and obtaining access keys, which are essential for interacting with DataArts Fabric SQL through the SDK. Preparing the development environment requires configuring the local setup beforehand to facilitate smooth installation of the SDK, as well as enabling code development and execution based on the SDK. This includes tasks like downloading and installing dependency software and development tools.
Preparing a HUAWEI ID
To use DataArts Fabric SQL, you first require a HUAWEI ID. For details about how to create a HUAWEI ID and enable Huawei Cloud services, see Signing Up for a HUAWEI ID and Enabling Huawei Cloud Services.
Obtaining Access Keys
The DataArts Fabric SQL SDK uses the provided HUAWEI ID's access key ID (AK) and secret access key (SK) for signature authentication when accessing services, thereby safeguarding against unauthorized usage of DataArts Fabric SQL resources and data. Access keys, comprising an AK and an SK, serve as your enduring identity credentials within Huawei Cloud. They allow you to sign requests made to Huawei Cloud APIs. Huawei Cloud uses AKs to authenticate user identities and SKs to verify request signatures, ensuring the confidentiality, integrity, and correctness of both the requests and the requesting parties' identities.
Access keys come in two forms: permanent access keys (AK/SK) and temporary access keys (AK/SK along with security tokens). Refer to Managing IAM User Access Keys for instructions on acquiring permanent access keys. Additionally, you can generate temporary access keys by referring to Creating Temporary Access Keys.

- Federated users can only create temporary access credentials (temporary AKs/SKs and security tokens). For details, see Temporary Access Keys.
- Administrators can manage IAM users' access keys on the Security Settings page of the IAM console. Users can also manage access keys on the My Credentials page post-login to the console, allowing self-management of these credentials.
- Both the administrator and IAM users possess distinct sets of access keys, meaning each must use their own unique access keys for API calls.
Obtaining the Java SDK
You can obtain the Java SDK as follows:
- Use the Maven central repository and a Maven project to download and install the Java SDK.
Add the following dependency to the pom.xml file in your Maven project:
<dependency> <groupId>com.huaweicloud.dws</groupId> <artifactId>dws-rest-api</artifactId> <version>[Latest version]</version> </dependency>
Replace [Latest version] with the actual version. For details, see Table 1.
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