このページは、お客様の言語ではご利用いただけません。Huawei Cloudは、より多くの言語バージョンを追加するために懸命に取り組んでいます。ご協力ありがとうございました。
Data Ingestion Service
Data Ingestion Service
- What's New
- Service Overview
- Getting Started
-
User Guide
- IAM Permissions Management
- Getting Started
- Managing DIS Streams
-
Using DIS
- Checking and Configuring DNS Information
- Uploading Data by Using Agent
- Using DIS Flume Plugin to Upload and Download Data
- Using a DIS Logstash Plugin to Upload and Download Data
- Using Kafka Adapter to Upload and Download Data
- Using SparkStreaming SDK to Download Data
- Using a DIS Flink Connector to Upload and Download Data
- Managing a Dump Task
- Managing Enterprise Projects
- Notifying Events
- Monitoring
- Best Practices
-
SDK Reference
- Overview
- Related Resources
- Enabling DIS
- Creating a DIS Stream
- Obtaining Authentication Information
-
Getting Started with SDK
-
Using the Java SDK
- Preparing the Environment
- Configuring a Sample Project
- Initializing a DIS SDK Client Instance
- Creating a Stream
- Creating a Dump Task
- Updating a Dump Task
- Deleting a Dump Task
- Querying a Dump Task List
- Querying Dump Details
- Deleting a Stream
- Querying a Stream List
- Querying Stream Details
- Downloading Streaming Data
- Uploading Streaming Data
- Obtaining the Data Cursor
- Creating an Application
- Deleting an Application
- Adding a Checkpoint
- Querying a Checkpoint
- Changing Partition Quantity
- Using Kafka Adapter to Upload and Download Data
-
Using the Python SDK
- Preparing the Installation Environment
- Configuring a Sample Project
- Initializing a DIS SDK Client Instance
- Creating a Stream
- Creating a Dump Task
- Deleting a Stream
- Deleting a Dump Task
- Querying a Stream List
- Querying a Dump Task List
- Querying Stream Details
- Querying Dump Details
- Uploading Streaming Data in JSON Format
- Uploading Streaming Data in Protobuf Format
- Downloading Streaming Data
- Creating an Application
- Deleting an Application
- Viewing Application Details
- Querying an Application List
- Adding a Checkpoint
- Querying a Checkpoint
- Changing Partition Quantity
- Obtaining a Data Cursor
-
Using the Java SDK
- Error Codes
- Change History
- API Reference
-
FAQs
-
General Questions
- What Is DIS?
- What Is a Partition?
- What Can I Do with DIS?
- What Advantages Does DIS Have?
- Which Modules Do DIS Have?
- How Do I Create a DIS Stream?
- What Is the Difference Between Storing Data into DIS and Dumping Data Elsewhere?
- How Do I Check Software Package Integrity?
- How Do I Send and Retrieve Data Using DIS?
- What Is Data Control?
- Dump Questions
- DIS Agent Questions
-
General Questions
- General Reference
On this page
Show all
Help Center/
Data Ingestion Service/
Getting Started/
Step 2: Preparing a DIS Application Development Environment
Copied.
Step 2: Preparing a DIS Application Development Environment
Before developing DIS applications, prepare an application development environment, and then obtain a software development kit (SDK) and sample project and import them to the development environment.
Prerequisites
- JDK 1.8 or later has been installed.
- Eclipse has been installed.
Procedure
- Configure a JDK using Eclipse.
- Start Eclipse and choose Window > Preferences. The Preferences dialog box is displayed.
- In the navigation tree, choose Java. On the Java page, configure general settings for Java development and then click OK.
Figure 1 Preferences
- In the navigation tree, choose Java > Installed JREs.
- Ensure that configured JDK environmental variables are displayed on the Installed JREs page. Then go to 1.c.i.
- To configure different variables for different versions of JDK, perform 1.c.ii to 1.c.iv.
Figure 2 Installed JREs- Select the installed JDK and click OK.
- Click Add. The Add JRE dialog box is displayed.
Figure 3 JRE Type
- Select a JRE type and click Next.
Figure 4 JRE Definition
- Configure the basic information about JDK and click Finish.
- JRE home: JDK installation path.
- Default VM arguments: JDK running parameters.
- Download resource packages.
Download the DIS Java SDK from https://github.com/huaweicloud/huaweicloud-sdk-java-dis.
Obtain huaweicloud-sdk-dis-java-X.X.X.zip from the DIS SDK. The package contains the demo package of the sample project.
- Import the Eclipse project.
- Start Eclipse. Choose File > Import. The Import dialog box is displayed.
- Choose Maven > Existing Maven Projects, and click Next. The Import dialog box is displayed.
- Click Browse and select a save location for the dis-sdk-demo sample project. In the Projects area, select a sample project.
Figure 5 Importing a project
- Click Finish to import the project.
- Configure the demo project.
- Set the project code to UTF-8.
- In the navigation tree, right-click the required project under Project Explorer and choose Properties from the shortcut menu. The Properties for dis-sdk-demo dialog box is displayed.
- In the navigation tree, choose Resource. The Resource page is displayed in the right pane.
- In the Other drop-down list, select UTF-8.
- Click Apply and Close.
- Add the JDK.
- In the navigation pane, choose Project Explorer. Right-click the chosen project and choose Properties from the shortcut menu.
- In the navigation tree, choose Java Build Path. The Java Build Path page is displayed in the right pane.
- Click the Libraries tab, and then click Add Library. The Add Library dialog box is displayed.
- Select JRE System Library and click Next. Verify that the version of Workspace default JRE is jdk1.8 or later.
- Click Finish to exit the Add Library dialog box.
- Click Apply and Close.
- Set the project code to UTF-8.
- Initialize a DIS client sample. For details about endpoint, ak, sk, region, and projectId, see Obtaining Authentication Information.
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot