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

Typical Scenario Description

Updated on 2023-08-31 GMT+08:00

Scenarios

A user develops a Hive data analysis application for managing employee information described in Table 1 and Table 2.

Procedure

  1. Prepare data.

    1. Create three tables: employee information table employees_info, contact table employees_contact, and extended employee information table employees_info_extended.
      • Fields in the employees_info table include the employee ID, name, salary currency, salary, tax category, work place, and hiring date. R indicates RMB, and D indicates USD.
      • Fields in the employees_contact table include the employee ID, mobile phone number, and e-mail address.
      • Fields in the employees_info_extended table include the employee ID, name, mobile phone number, e-mail address, salary currency, salary, tax category, and work place. The partition field is the hiring date.

        For table creation codes, see Creating a Table.

    2. Load employee information to employees_info.

      For data loading codes, see Loading Data.

      Table 1 describes employee information.

      Table 1 Employee information

      ID

      Name

      Salary Currency

      Salary

      Tax Category

      Work Place

      Hiring Date

      1

      Wang

      R

      8000.01

      personal income tax&0.05

      Country1:City1

      2014

      3

      Tom

      D

      12000.02

      personal income tax&0.09

      Country2:City2

      2014

      4

      Jack

      D

      24000.03

      personal income tax&0.09

      Country3:City3

      2014

      6

      Linda

      D

      36000.04

      personal income tax&0.09

      Country4:City4

      2014

      8

      Zhang

      R

      9000.05

      personal income tax&0.05

      Country5:City5

      2014

    3. Load employee contact information to employees_contact.

      Table 2 describes employee contact information.

      Table 2 Employee contact information

      ID

      Mobile Phone Number

      E-mail Address

      1

      135 XXXX XXXX

      xxxx@xx.com

      3

      159 XXXX XXXX

      xxxxx@xx.com.cn

      4

      186 XXXX XXXX

      xxxx@xx.org

      6

      189 XXXX XXXX

      xxxx@xxx.cn

      8

      134 XXXX XXXX

      xxxx@xxxx.cn

    4. Load extended employee information to employees_info_extended.

      Table 3 describes the extended employee information.

      Table 3 Extended employee information

      ID

      Name

      Mobile Phone Number

      E-mail Address

      Salary Currency

      Salary

      Tax Category

      Work Place

      Hiring Date

      1

      Wang

      135 XXXX XXXX

      xxxx@xx.com

      R

      8000.01

      personal income tax&0.05

      Country1:City1

      2014

      3

      Tom

      159 XXXX XXXX

      xxxxx@xx.com.cn

      D

      12000.02

      personal income tax&0.09

      Country2:City2

      2014

      4

      Jack

      186 XXXX XXXX

      xxxx@xx.org

      D

      24000.03

      personal income tax&0.09

      Country3:City3

      2014

      6

      Linda

      189 XXXX XXXX

      xxxx@xxx.cn

      D

      36000.04

      personal income tax&0.09

      Country4:City4

      2014

      8

      Zhang

      134 XXXX XXXX

      xxxx@xxxx.cn

      R

      9000.05

      personal income tax&0.05

      Country5:City5

      2014

  2. Analyze data.

    For data analysis codes, see Querying Data.

    • Query contact information of employees whose salaries are paid in USD.
    • Query the IDs and names of employees who were hired in 2014, and load query results to the partition with the hiring time of 2014 in employees_info_extended.
    • Collect statistics for the number of records in the employees_info table.
    • Query information about employees whose email addresses end with "cn".

  3. Submit a data analysis task to collect statistics for the number of records in the employees_info table.

    For details about the implementation, see Using the JDBC interface to submit a data analysis task.

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