El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

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

Using Power BI to Access HetuEngine

Updated on 2024-11-29 GMT+08:00

Use Power BI 1.2.0 as an example to describe how to access HetuEngine in a security cluster.

Prerequisites

Procedure

  1. Use the default configuration to install the hetu-odbc-win64.msi driver. Download the driver from https://download.openlookeng.io/.

    Figure 1 Downloading the driver

  2. Configure data source driver.

    1. Run the following commands in the local command prompt to stop the ODBC service that is automatically started.

      cd C:\Program Files\openLooKeng\openLooKeng ODBC Driver 64-bit\odbc_gateway\mycat\bin

      mycat.bat stop

      If the following information is displayed, the ODBC service is stopped:

      wrapper  | Stopping the Mycat-server service...
      wrapper  | Mycat-server stopped.
    2. Replace the JDBC driver.

      Copy the JDBC JAR file obtained in 1 to the C:\Program Files\openLooKeng\openLooKeng ODBC Driver 64-bit\odbc_gateway\mycat\lib directory and delete the original hetu-jdbc-1.0.1.jar file from the directory.

    3. Edit the protocol prefix of the ODBC server.xml file.

      Change the property value of server.xml in the C:\Program Files\openLooKeng\openLooKeng ODBC Driver 64-bit\odbc_gateway\mycat\conf directory from <property name="jdbcUrlPrefix">jdbc:lk://</property> to

      <property name="jdbcUrlPrefix">jdbc:trino://</property>.

    4. Configure the connection mode of using the user name and password.
      Create a jdbc_param.properties file in a user-defined path, for example, C:\hetu, and add the following content to the file:
      user=admintest
      Password=Password
      NOTE:

      user: indicates the username of the created human-machine user, for example, admintest.

      password: indicates the password of the created human-machine user. Configuration files containing authentication passwords pose security risks. Delete such files after configuration or store them securely.

    5. Run the following commands to restart the ODBC service:

      cd C:\Program Files\openLooKeng\openLooKeng ODBC Driver 64-bit\odbc_gateway\mycat\bin

      mycat.bat restart

      If the following information is displayed, the ODBC service is restarted:

      wrapper  | The Mycat-server service was not running.
      wrapper  | Starting the Mycat-server service...
      wrapper  | Mycat-server started.
      NOTE:

      The ODBC service must be stopped each time the configuration is modified. After the modification is complete, restart the ODBC service.

  3. On the Windows Control Panel, enter odbc to search for the ODBC management program.

    Figure 2 Searching for ODBC

  4. Choose Add > openLookeng ODBC 1.2.0 Driver > Finish.

    Figure 3 Adding a driver

  5. Enter the name and description as shown in the following figure and click Next.

    Figure 4 Entering the name

  6. Configure parameters by referring to the following figure.

    1. Connect URL indicates the URL format of the ODBC connection for accessing the HetuEngine service. The HSFabric and HSBroker modes are supported.
      • HSFabric mode

        <HSFabricIP1:port1>,<HSFabricIP2:port2>,<HSFabricIP3:port3>/Catalog name/Schema name?serviceDiscoveryMode=hsfabric&tenant=Tenant name

        Example:

        192.168.8.37:29902,192.168.8.38:29902,192.168.8.39:29902/hive/default?serviceDiscoveryMode=hsfabric&tenant=default

      • HSBroker mode

        <HSBrokerIP1:port1>,<HSBrokerIP2:port2>,<HSBrokerIP3:port3>/Catalog name/Schema name?serviceDiscoveryMode=hsbroker&tenant=default

        Example:

        192.168.8.37:29860,192.168.8.38:29860,192.168.8.39:29860/hive/default?serviceDiscoveryMode=hsbroker&tenant=Tenant name

      NOTE:
      • To obtain the IP addresses and port numbers of the HSFabric and HSBroker nodes, perform the following operations:
        1. Log in to FusionInsight Manager.
        2. Choose Cluster > Services > HetuEngine. Click the Instance tab to obtain the service IP addresses of all HSFabric or HSBroker instances. You can select one or more normal instances for connection.
        3. To obtain the port numbers, choose Cluster > Services > HetuEngine. Click Configurations then All Configurations.

          Search for gateway.port to obtain the HSFabric port number. The default port number is 29902 in security mode and 29903 in normal mode.

          Search for server.port to obtain the HSBroker port number. The default port number is 29860 in security mode and 29861 in normal mode.

      • If the connection fails, disable the proxy and try again.
      • The tenant parameter is optional. If it is not configured, a random tenant is used.
    2. Connect Config: Select the jdbc_param.properties file prepared in 2.d.
    3. User name: Enter the username for downloading the credential.
    Figure 5 Configuring the user name

  7. Click Test DSN to test the connection. If the connection is successful and both Catalog and Schema contain content, the connection is successful. Click Next.

    Figure 6 Testing the connection
    Figure 7 Viewing the content

  8. Click Finish.

    Figure 8 Completing the connection

  9. To use Power BI for interconnection, choose Get data > All > ODBC > Connect.

    Figure 9 Selecting ODBC

  10. Select the data source to be added and click OK.

    Figure 10 Adding a data source

  11. Enter User name and Password of the user who downloads the credential, and click Connect.

    Figure 11 Entering the database username and password

  12. After the connection is successful, all table information is displayed, as shown in Figure 12.

    Figure 12 Successful connection

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback