Preparations
Configuring the pom.xml File
If a maven project exists, use the following dependency in pom.xml:
<dependency>
<groupId>com.huaweicloud.dis</groupId>
<artifactId>huaweicloud-dis-kafka-adapter</artifactId>
<version>1.2.18</version>
</dependency> Using the DIS Sample Project
Download the package from https://dis-publish.obs-website.cn-north-1.myhuaweicloud.com/.
The .zip package contains two directories.
- The huaweicloud-dis-kafka-adapter-X.X.X directory contains all JAR packages. If a non-maven project is used, import all JAR packages in the lib directory to the environment.
- huaweicloud-dis-kafka-adapter-X.X.X-demo is a sample project and is compiled using maven.
You can use IntelliJ IDEA to import the sample project as follows:
- Run IntelliJ IDEA and choose File > Open.
In the displayed dialog box, expand huaweicloud-dis-kafka-adapter-X.X.X-demo and double-click pom.xml.
- When the following dialog box is displayed, select Open as Project.

- Click New Window to open the project in a new window.

- Wait when IntelliJ IDEA is building the project. After the project is built, the directory and files are displayed.

Checking Authentication Information
- AK/SK file
Access Key ID/Secret Access Key (AK/SK) files are created by the Identity and Access Management (IAM) service to authenticate calls to application programming interfaces (APIs) on the public cloud.
To obtain an access key, perform the following steps:- Log in to the management console, move the cursor to the username in the upper right corner, and select My Credentials from the drop-down list.
- On the My Credentials page, choose . Figure 1 Clicking Create Access Key

- Click OK and save the access key file. The access key file will be saved to the default download location in your browser. Open the credentials.csv file to view Access Key Id and Secret Access Key.

- Up to two access keys can be created for each user.
- For security purposes, access keys are automatically downloaded only when they are generated for the first time and cannot be obtained from the console later. Keep them properly.
- Project ID A project is a group of tenant resources, and an account ID corresponds to the current account. The IAM ID corresponds to the current user. You can view the project IDs, account IDs, and user IDs in different regions on the corresponding pages.
- Register with and log in to the management console.
- Hover the cursor on the username in the upper right corner and select My Credentials from the drop-down list.
- On the API Credentials page, obtain the account name, account ID, IAM username, and IAM user ID, and obtain the project and its ID from the project list.
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
