Create a REST Catalog configuration file and set the Impala startup flags to connect Impala to an external Iceberg REST Catalog server.
- You have a running Iceberg REST Catalog service endpoint.
- You have administrative access to set the Impala startup flags.
- If you use environment variable substitution in the configuration files, the environment variables are set before you start Impala.
-
Create a directory for the REST Catalog configuration files, for example, /path/to/config/directory.
-
In the configuration directory, create one .properties file for each REST Catalog, and add the required properties.
For example, create /path/to/config/directory/rest.properties with the following content:
connector.name=iceberg
iceberg.catalog.type=rest
iceberg.rest-catalog.uri=http://rest-catalog-server:9084
- Optional:
Add the optional warehouse, catalog prefix, or OAuth2 properties to the configuration file.
-
Set the startup flags for the deployment mode that you want to use.
-
Standalone REST Catalog (No HMSor Catalogd): set the following impalad flags:
--use_local_catalog=true
--catalogd_deployed=false
--catalog_config_dir=/path/to/config/directory
-
Multi-Catalog (REST Catalog(s) and HMS): set the following impalad flags:
--use_local_catalog=true
--catalog_config_dir=/path/to/config/directory
Set the following catalogd flag:
--catalog_topic_mode=minimal
-
Restart the Impala service.
Impala connects to the Iceberg REST Catalog servers that are defined in the configuration directory. For the features that are not supported, see Limitations and unsupported features.