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

Using HiveQL Editor on the Hue Web UI

Updated on 2024-07-19 GMT+08:00

Scenario

Users can use the Hue web UI to execute HiveQL statements in a cluster.

Accessing Query Editors

  1. Access the Hue web UI.
  2. Choose Query Editors > Hive. The Hive page is displayed.

    Hive supports the following functions:

    • Executes and manages HiveQL statements.
    • View the HiveQL statements saved by the current user in Saved Queries.
    • Query HiveQL statements executed by the current user in Query History.
    • Click to display all databases included in Databases of Hive.

Executing HiveQL Statements

  1. Choose Query Editors > Hive. The Hive page is displayed.
  2. Click and select a database from Databases. The default database is default.

    The system displays all available tables in the database. You can enter a keyword of the table name to search for the desired table.

  3. Click the desired table name. All columns in the table are displayed.

    Move the cursor to the row of the table and click . Column details are displayed.

  4. Enter the query statements in the area for editing HiveQL statements.

    Click and select Explain. The editor checks the syntax and execution plan of the entered statements. If the statements have syntax errors, the editor reports Error while compiling statement.

  5. Click and select the engine for executing the HiveQL statements.

    • mr: MapReduce computing framework
    • spark: Spark computing framework
    • tez: Tez computing framework
      NOTE:

      Tez is applicable to MRS 1.9.x and later versions.

  6. Click to execute the HiveQL statements.

    NOTE:
    • If you want to use the entered HiveQL statements again, click to save them.
    • To format HiveQL statements, click and select Format.
    • To delete an entered HiveQL statement, click and select Clear.
    • Clear the entered statement and execute a new statement. Click and select New query.
    • Viewing history:

      Click Query History to view the HiveQL running status. You can view the history of all the statements or only the saved statements. If many historical records exist, you can enter keywords in the text box to search for desired records.

    • Advanced query configuration:

      Click in the upper right corner to configure information such as files, functions, and settings.

    • Viewing the information of shortcut keys:

      Click in the upper right corner to view all shortcut keys.

Viewing Execution Results

  1. In the Hive execution area, Query History is displayed by default.
  2. Click Results to view the execution result of the executed statement.

Managing Query Statements

  1. Choose Query Editors > Hive. The Hive page is displayed.
  2. Click Saved Queries.

    Click a saved statement. The system automatically adds the statement to the editing area.

Modifying Query Editors Settings

  1. On the Hive tab page, click .
  2. Click next to Files and click to specify the directory for storing the file.

    You can click to add a file resource.

  3. Click next to Functions and enter the names of user-defined function and function class.

    You can click to add a customized function.

  4. Click next to Settings, enter the Hive parameter name in Key, and the value in Value. The current Hive session connects to Hive based on the customized configuration.

    You can click to add a parameter.

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