Skip to main content

Create catalog

POST 

/metalakes/:metalake/catalogs

Creates a catalog in the metalake and returns it, including its properties and audit information.

Sign in with a bearer token or a local user's password; see Authentication.

Request​

Path Parameters

    metalake stringrequired

    The name of the metalake

Body

    name stringrequired

    The name of the catalog

    type stringrequired

    Possible values: [relational, fileset, messaging, model]

    The type of the catalog

    provider string

    Possible values: [hive, lakehouse-iceberg, lakehouse-paimon, lakehouse-hudi, lakehouse-generic, glue, jdbc-mysql, jdbc-postgresql, jdbc-doris, jdbc-starrocks, jdbc-oracle, jdbc-sqlserver, jdbc-bigquery, jdbc-maxcompute, jdbc-oceanbase, jdbc-clickhouse, jdbc-hologres, fileset, kafka, model]

    The provider of the catalog. Each provider serves one catalog type: fileset serves fileset, kafka serves messaging, model serves model, and every other provider serves relational. The provider is optional for fileset and model catalogs, where the server uses the catalog type as the provider. The legacy value hadoop is still accepted and is replaced by the catalog type, so a fileset catalog created with hadoop is stored with provider fileset.

    comment stringnullable

    A comment for the catalog

    properties

    object

    nullable

    A map of properties for the catalog

    property name* string

Responses​

The catalog, with its type, provider, comment, properties and audit information.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    catalog

    object

    A catalog

    name stringrequired

    The name of the catalog

    type stringrequired

    Possible values: [relational, fileset, messaging, model]

    The type of the catalog

    provider stringrequired

    Possible values: [hive, lakehouse-iceberg, lakehouse-paimon, lakehouse-hudi, lakehouse-generic, glue, jdbc-mysql, jdbc-postgresql, jdbc-doris, jdbc-starrocks, jdbc-oracle, jdbc-sqlserver, jdbc-bigquery, jdbc-maxcompute, jdbc-oceanbase, jdbc-clickhouse, jdbc-hologres, fileset, kafka, model]

    The provider of the catalog. Each provider serves one catalog type: fileset serves fileset, kafka serves messaging, model serves model, and every other provider serves relational.

    comment stringnullable

    A comment about the catalog

    audit

    object

    required

    Audit information for a Gravitino resource.

    creator string

    The user who created the resource

    createTime date-time

    The time the resource was created

    lastModifier string

    The user who last modified the resource

    lastModifiedTime date-time

    The time the resource was last modified

    properties

    object

    Configured string to string map of properties for the catalog

    property name* string
Loading...