Bu sayfa henüz yerel dilinizde mevcut değildir. Daha fazla dil seçeneği eklemek için yoğun bir şekilde çalışıyoruz. Desteğiniz için teşekkür ederiz.

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
Help Center/ Data Lake Insight/ Best Practices/ Connecting BI Tools to DLI for Data Analysis/ Configuring DBeaver to Connect to DLI for Data Query and Analysis

Configuring DBeaver to Connect to DLI for Data Query and Analysis

Updated on 2025-02-26 GMT+08:00

DBeaver is a free, open source, and visual database management tool that you can use to manage various types of databases, including viewing the database structure, executing SQL queries and scripts, and browsing and exporting data. This section describes how to configure DBeaver to connect to DLI.

Preparations

  • Toolkits
    • DLI JDBC driver:

      Download the JDBC driver huaweicloud-dli-jdbc-xxx-dependencies.jar from the DLI management console.

    • DBeaver client installation package:

      The DBeaver official website provides client installation packages for different OSs. Download the required DBeaver client installation package and install it on the local PC. DBeaver 24.0.3 is recommended.

  • Connection information:
    Table 1 Connection information

    Item

    Description

    How to Obtain

    DLI's AK/SK

    AK/SK-based authentication refers to the use of an AK/SK pair to sign requests for identity authentication.

    Obtaining an AK/SK

    DLI's endpoint address

    Endpoint of a cloud service in a region.

    Obtaining an Endpoint

    DLI's project ID

    Project ID, which is used for resource isolation.

    Obtaining a Project ID

    DLI's region information

    DLI's region information

    Regions and Endpoints

Step 1: Create a DLI JDBC Driver on DBeaver

  1. In DBeaver, choose Database > Driver Manager.

    Use the driver class to load DLI's JDBC driver. Make sure to use the JAR file huaweicloud-dli-jdbc-2.1.1-jar-with-dependencies.jar.

  2. Click New.
  3. In the displayed dialog box, set driver parameters and click OK.
    Set driver parameters based on Table 2.
    Table 2 Driver parameters

    Parameter

    Description

    Driver Name

    Enter a name that is easy to identify, for example, GaussDB Driver.

    Driver Type

    Set it to Generic.

    Class Name

    Java class name used to establish a database connection in the JDBC driver.

    URL Template

    Format of DLI's JDBC driver.

    For how to configure DLI's JDBC driver, see Format of DLI's JDBC driver and Example configuration of DLI's JDBC driver.

    jdbc:dli://<endPoint>/projectId?<key1>=<val1>;<key2>=<val2>...

    Default Port

    Port of the database to connect.

    Default Database

    Name of the database to connect.

    Default User

    Account name, which is root by default.

    • Format of DLI's JDBC driver
      jdbc:dli://<endPoint>/projectId?<key1>=<val1>;<key2>=<val2>...

      ? is followed by other configuration items, with each item listed in the "key=value" format and multiple items are separated by semicolons (;).

    • Example configuration of DLI's JDBC driver
      jdbc:dli://dli.ap-southeast-2.myhuaweicloud.com/0b33ea2a7e0010802fe4c009bb05076d?databasename=tpch;queuename=auto;accesskey=XXXX;secretkey=XXXXX;regionname=ap-southeast-2;enginetype=trino;catalog=lfcatalog

      Table 3 and Table 4 describe the parameters.

      Table 3 Driver configuration parameters

      Parameter

      Description

      How to Obtain

      endPoint

      Endpoint of a cloud service in a region.

      Obtaining an AK/SK

      projectId

      ID of the project where DLI resources are.

      Obtaining an Endpoint

      <key1>=<val1>

      ? is followed by other configuration items, with each item listed in the "key=value" format and multiple items are separated by semicolons (;).

      Table 4

      Table 4 key=value parameter description

      Parameter

      Description

      Mandatory

      Example Value

      queuename

      DLI queue name.

      Yes

      dli_test

      databasename

      Database name.

      Yes

      tpch

      accesskey and secretkey

      AK/SK that acts as the authentication key.

      Set them if authenticationmode is aksk.

      Yes

      accesskey=your-access-key

      secretkey=your-secret-key

      regionname

      Region name of DLI

      Set it if authenticationmode is aksk.

      Yes

      -

      charset

      Encoding method used by JDBC.

      The default value is UTF-8.

      No

      -

      enginetype

      DLI queue type. The options are:

      • spark: Spark queue.
      • hetuEngine: HetuEngine queue.

      The default value is spark.

      No

      spark

      catalog

      Metadata catalog name.

      • It is mandatory when a LakeFormation catalog is used. In this case, it indicates the name of the LakeFormation catalog used.

        When querying the LakeFormation catalog, there must be a default database under the catalog.

      • If left unset, a DLI catalog is used by default. You do not need to set this parameter when using the DLI catalog.

      No

      For example, if you use a LakeFormation catalog named lfcatalog, the configuration is as follows: catalog=lfcatalog.

  4. On the Libraries tab, click Add File and add dli-jdbc-xxx-dependencies.jar in 1.
  5. After the file is added, the driver class is empty. Click Find Class to set the driver class. The identified driver class must be the same as the class name specified on the Settings tab.
  6. Click OK to complete the driver settings.

Step 2: Test the Connection to the Database

  1. In the menu bar of the DBeaver client, choose Database > New Database Connection and select the data driver created in Step 1: Create a DLI JDBC Driver on DBeaver.
  2. Click Finish to connect to DLI. You can view information about the connected database in the Database Navigator view toolbar.
  3. Query data on DLI through the new connection.

Step 3: Compile SQL Queries on DBeaver

Once DBeaver is connected to DLI, you can compile SQL queries on DBeaver.

  1. Select a database object in Database Navigator on the left and write SQL statements in the SQL editor in the middle.
  2. Once a query is compiled, execute it by clicking the running button on the toolbar, which is usually represented by a green play icon.
  3. After the query is executed, the result is displayed in the data grid below the SQL editor.

Sitemizi ve deneyiminizi iyileştirmek için çerezleri kullanırız. Sitemizde tarama yapmaya devam ederek çerez politikamızı kabul etmiş olursunuz. Daha fazla bilgi edinin

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback