Skip to main content
Creates resources. The following types of resources can be created: Apache Spark™, Apache Hive™, Apache Iceberg, Apache Hudi, and JDBC. Spark resources are used in Spark Load to manage loading information, such as YARN configurations, storage path of intermediate data, and Broker configurations. Hive, Iceberg, Hudi, and JDBC resources are used for managing data source access information involved in querying External tables. Tip
  • Only users with the SYSTEM-level CREATE RESOURCE privilege can perform this operation.
  • You can create JDBC resources only in StarRocks v2.3 and later.

Syntax

Parameters

  • resource_name: the name of the resource to create. For the naming conventions, see System limits.
  • PROPERTIES: specifies the properties of the resource type. The PROPERTIES vary depending on the resource type. See Examples for details.

Examples

  1. Create a Spark resource named spark0 in yarn Cluster mode.
    Parameters related to Spark are as follows:
    text
    If Spark is used for ETL, working_DIR and broker need to be specified. The instructions are as follows:
    text
  2. Create a Hive resource named hive0.