mc table config
The mc table config command generates query engine configuration for connecting to an Iceberg catalog on an AIStor cluster.
The generated configuration includes the catalog endpoint, warehouse, and credentials from the mc alias.
This simplifies setting up query engines like Trino or Spark to work with AIStor Tables.
Parameters
ALIAS
Required
The alias of an AIStor cluster.
WAREHOUSE
Required
The name of the warehouse to generate configuration for.
--spark
Optional
Generate Spark session configuration. The output includes properties suitable for configuring a Spark session to connect to the Iceberg catalog.
Mutually exclusive with --trino.
You must specify either --spark or --trino but not both.
--trino
Optional
Generate Trino connector configuration. The output includes properties suitable for a Trino catalog configuration file.
Mutually exclusive with --spark.
You must specify either --trino or --spark but not both.
Global flags
This command supports any of the global flags.
Examples
Generate Trino connector configuration
Use the --trino flag to generate configuration for Trino:
mc table config myaistor my-warehouse --trino
Generate Spark session configuration
Use the --spark flag to generate configuration for Spark:
mc table config myaistor my-warehouse --spark
Generate Trino config with JSON output
Use the --json global flag to output the results in JSON format:
mc table config myaistor my-warehouse --trino --json