Data Lakehouse integration
Last updated
Was this helpful?
Was this helpful?
# Connector
connector.name=iceberg
# Catalog
iceberg.catalog.type=hive_metastore
hive.metastore.uri=thrift://hive-metastore:9083
# Name of you hive catalog if you support multi catalogs
# (Not necessarily the same as the trino catalogue...)
hive.metastore.thrift.catalog-name=hive
# S3 Configuration
fs.native-s3.enabled=true
s3.endpoint=http://my-bucket:9000
s3.aws-access-key=KAWA
s3.aws-secret-key=***********
s3.path-style-access=true
s3.region=us-east-1CREATE SCHEMA IF NOT EXISTS kawa.kawa_sandboxexport KAWA_TRINO_USER=....
export KAWA_TRINO_PASSWORD=....
export KAWA_TRINO_JDBC_URL=jdbc:trino://host:port
export KAWA_WAREHOUSE_TYPE=TRINO# Use the TRINO catalog name (kawa in the previous paragraph)
export KAWA_TRINO_WRITER_CATALOG=....
# Use the schema name you created in paragraph 2.1.2
export KAWA_TRINO_WRITER_SCHEMA=....
# Any string that will serve as a prefix for all tables created by KAWA
export KAWA_TRINO_WRITER_TABLE_PREFIX=__KAWA__
from kywy.client.kawa_client import KawaClient as K
kawa = K(kawa_api_url='https://your-domain:your-port')
kawa.set_api_key(api_key='kawa-****')
kawa.commands.replace_configuration('IcebergConfiguration', {
# Must match hive.metastore.thrift.catalog-name
# in Trino catalogue
"hiveCatalog": "hive",
# Options for the iceberg API when loading the hive catalogue.
# These options will be passed when the Iceberg API
# initializes the Hive catalogue.
# cf: https://iceberg.apache.org/docs/1.8.0/
"options": {
# Hive metastore URI
"uri": "thrift://localhost:9083",
# S3 configuration, must match the ones specified in the
# Trino catalogue
"s3.region": "us-east-1",
"s3.endpoint": "http://localhost:9999",
"s3.path-style-access": "true",
"s3.access-key-id": "KAWA",
"s3.secret-access-key": "**********",
}
})