هذه الصفحة غير متوفرة حاليًا بلغتك المحلية. نحن نعمل جاهدين على إضافة المزيد من اللغات. شاكرين تفهمك ودعمك المستمر لنا.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page
Help Center/ Data Ingestion Service/ Getting Started/ Step 2: Preparing a DIS Application Development Environment

Step 2: Preparing a DIS Application Development Environment

Updated on 2023-07-14 GMT+08:00

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

  1. Configure a JDK using Eclipse.

    1. Start Eclipse and choose Window > Preferences. The Preferences dialog box is displayed.
    2. In the navigation tree, choose Java. On the Java page, configure general settings for Java development and then click OK.
      Figure 1 Preferences
    3. 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
      1. Select the installed JDK and click OK.
      2. Click Add. The Add JRE dialog box is displayed.
        Figure 3 JRE Type
      3. Select a JRE type and click Next.
        Figure 4 JRE Definition
      4. Configure the basic information about JDK and click Finish.
        • JRE home: JDK installation path.
        • Default VM arguments: JDK running parameters.

  2. 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.

  3. Import the Eclipse project.

    1. Start Eclipse. Choose File > Import. The Import dialog box is displayed.
    1. Choose Maven > Existing Maven Projects, and click Next. The Import dialog box is displayed.
    2. 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
    3. Click Finish to import the project.

  4. Configure the demo project.

    1. Set the project code to UTF-8.
      1. 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.
      2. In the navigation tree, choose Resource. The Resource page is displayed in the right pane.
      3. In the Other drop-down list, select UTF-8.
      4. Click Apply and Close.
    2. Add the JDK.
      1. In the navigation pane, choose Project Explorer. Right-click the chosen project and choose Properties from the shortcut menu.
      2. In the navigation tree, choose Java Build Path. The Java Build Path page is displayed in the right pane.
      3. Click the Libraries tab, and then click Add Library. The Add Library dialog box is displayed.
      4. Select JRE System Library and click Next. Verify that the version of Workspace default JRE is jdk1.8 or later.
      5. Click Finish to exit the Add Library dialog box.
      6. Click Apply and Close.

  5. Initialize a DIS client sample. For details about endpoint, ak, sk, region, and projectId, see Obtaining Authentication Information.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback