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
Situation Awareness
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

Managing Tables

Updated on 2025-01-10 GMT+08:00

You can manage metadata databases and metadata tables in the data catalog and create data tables based on the service plan.

Prerequisites

  • A LakeFormation instance has been created and is running properly.
  • A catalog and a database have been created.
  • You have created an OBS parallel file system for storing tables by referring to Creating a Metadata Storage Path.

Managing Tables

  1. Log in to the LakeFormation console.
  2. In the upper left corner, click and choose Analytics > LakeFormation to access the LakeFormation console.
  3. Select a LakeFormation instance from the drop-down list box on the left, choose Metadata > Table, and select names of the target catalog and database from the Catalog and Database drop-down lists in the upper right corner. You can view the tables contained in the selected database.
  4. Click Create and set related parameters.

    1. In the Basic Information area, set the related parameters.
      Table 1 Parameters for creating a table

      Parameter

      Description

      Table Name

      Enter a metadata table name.

      The value should contain 1 to 256 characters. Only letters, numbers, and underscores (_) are allowed.

      Catalog

      Select the catalog to which the table to be created belongs.

      Database

      Select the database to which the table to be created belongs.

      Table Type

      Type of the table to be created. Currently, the following types are supported:

      • MANAGED_TABLE: management table. If a management table or partition is deleted, the data and metadata associated with the table or partition are deleted.
      • EXTERNAL_TABLE: external table. An external table is used when the file already exists or is stored in a remote location.
      • VIRTUAL_VIEW: virtual view. It does not store actual data or occupy physical space.
      • MATERIALIZED_VIEW: materialized view. It stores actual data and occupies physical space.

      Data Storage Location

      File directory of the OBS parallel file system to which the table is mapped.

      Click , select a location for storing the table in the OBS parallel file system, and click OK.
      • This parameter is optional. If it is not set, the table storage path is Upper-layer database storage path/Table name.
      • The selected location must start with obs:// and must contain one storage object. For example, select obs://lakeformation-test/catalog1/database1/table1. If no suitable parallel file system is available, click go to OBS and create one.
      • The path must be different from the storage path of the catalog and database to which the table belongs.
      • If a table storage path is added for the database to which the table belongs, set this parameter to the subpath of the table storage path or that of the path specified by Select Location during database creation.

      Compress Data

      Whether to compress a data table.

      By using table compression, you can store data in a compressed format and improve performance and storage space.

      Data Source Format

      Data source format of the table to be created. Currently, the following types are supported:

      • Avro
      • Json
      • Xml
      • Parquet
      • Csv
      • Orc
      • Text
      • Rc
      • Sequence
      • Custom

        Parameters Input Format, Output Format, Serde name, and SerializationLib are displayed if Data Source Format is set to Custom. Set these parameters based on the site requirements.

      Separator

      This parameter is displayed if Data Source Format is set to Csv. The values include:

      • Comma(,)
      • Vertical bar(|)
      • Semicolon(;)
      • Tab(\u0009)
      • Ctrl-A(\u0001)

      Description

      Description of the created table.

      The content length must be between 0 and 4000 bytes (3 bytes per Chinese character).

    2. (Optional) Click Add in the Table Field area. Manually add metadata table fields as required and click OK. Multiple fields can be added.

      A table field is an independent piece of information that forms a record in a table.

    3. (Optional) Click Add in the Partition Key area. Manually add the partition key of the metadata as required. Multiple keys can be added.

      A partition key is an ordered set of one or more table columns. The values in the table partition keys are used to determine the data partition that a row belongs to.

    4. (Optional) Click Add in the Table Attributes area. Add table attributes as required and click OK. Multiple attributes can be added.

      A table attribute enables you to tag table definitions with your own metadata key-value pairs.

    5. Click Submit.

  5. After the table is created, you can view the table name/ID, catalog, database, type, and storage location on the Table page.

    • Click Modify in the Operation column to modify the configurations of a table.
    • You can click More to grant permissions and view permissions on the current data table.
    • Click a table name to view its detailed metadata information.
      • The format and serialization information includes the storage format, input format, and output format.
      • The field information includes the table field name, type, and description, and the field name, type, and description of the partition key.
      • The table attribute information includes the name and value of each attribute in the table.

      Locate the row that contains the target table and click Edit to modify the fields in it.

  6. If you need to delete a data table, choose More > Delete, confirm the operation impact, determine whether to delete data stored in OBS, and click OK.

    NOTE:

    If files are also deleted when metadata is deleted, the metadata is moved to the recycle bin (OBS path lake-formation-trash-dir/table_id) of the corresponding OBS bucket.

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