All Products
Search
Document Center

Lindorm:Access Hive data

Last Updated:Mar 28, 2026

The Lindorm compute engine provides comprehensive Hive data warehouse capabilities. You can use Hive or Spark SQL to define data warehouse processing logic and develop jobs. This topic shows how to activate Hive Metastore and query data using SQL.

Prerequisites

Before you begin, ensure that you have:

Activate Hive Metastore

  1. Log on to the Lindorm console.

  2. In the upper-left corner of the page, select the region where the instance is deployed.

  3. On the Instances page, click the ID of the target instance, or click View Instance Details in the Actions column.

  4. In the navigation pane on the left, choose Compute Engine > Service Management.

  5. On the Hive Metastore tab, click Activate Now.

    开通Hive服务

Query data with SQL

All examples use spark_catalog as the catalog and demonstrate a complete table lifecycle: create, insert, and query. For the full SQL syntax reference, see Spark SQL reference.

USE spark_catalog;

CREATE TABLE test (id INT, name STRING, score DOUBLE);

INSERT INTO test VALUES (0, 'Jay', 90.8);

SELECT * FROM test;