Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

9.3 KB
Raw Blame
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#  http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#

# THE CONFIGURATION FOR Gravitino SERVER
gravitino.server.shutdown.timeout = 3000
# Timeout in milliseconds for the entity-store readiness probe used by /api/health/ready
# gravitino.server.health.entityStore.probeTimeoutMs = 2000
# Maximum number of items allowed in a single bulk request
gravitino.server.bulk.maxItems = 100

# THE CONFIGURATION FOR Gravitino WEB SERVER
# The host name of the built-in web server
gravitino.server.webserver.host = 0.0.0.0
# The http port number of the built-in web server
gravitino.server.webserver.httpPort = 8090
# The min thread size of the built-in web server
gravitino.server.webserver.minThreads = 24
# The max thread size of the built-in web server
gravitino.server.webserver.maxThreads = 200
# The stop timeout of the built-in web server
gravitino.server.webserver.stopTimeout = 30000
# The timeout of idle connections
gravitino.server.webserver.idleTimeout = 30000
# The executor thread pool work queue size of the built-in web server
gravitino.server.webserver.threadPoolWorkQueueSize = 100
# The request header size of the built-in web server
gravitino.server.webserver.requestHeaderSize = 131072
# The response header size of the built-in web server
gravitino.server.webserver.responseHeaderSize = 131072
# Whether to include server-side stack traces in HTTP error responses. Set this to false in new
# deployments. It remains true by default only to avoid breaking legacy clients that expect stack.
gravitino.server.webserver.includeErrorStackTrace = true
# UI inactivity timeout in milliseconds. The UI environment variable
# NEXT_PUBLIC_IDLE_TIMEOUT_MS is used when this config is not set.
# gravitino.ui.sessionIdleTimeoutMs = 900000
# Maximum UI session duration in milliseconds, regardless of user activity. The UI environment
# variable NEXT_PUBLIC_MAX_SESSION_DURATION_MS is used when this config is not set.
# gravitino.ui.sessionMaxDurationMs = 18000000
# UI warning countdown duration in milliseconds before the inactivity timeout. The UI environment
# variable NEXT_PUBLIC_IDLE_WARNING_LEAD_MS is used when this config is not set.
# gravitino.ui.sessionIdleWarningLeadMs = 60000

# THE CONFIGURATION FOR Gravitino ENTITY STORE
# The entity store to use, we only supports relational
gravitino.entity.store = relational
# The backend for the entity store, we only supports JDBC
gravitino.entity.store.relational = JDBCBackend

# The JDBC URL for the entity store
gravitino.entity.store.relational.jdbcUrl = jdbc:h2
# The JDBC driver class name
gravitino.entity.store.relational.jdbcDriver = org.h2.Driver
# The JDBC user name
gravitino.entity.store.relational.jdbcUser = gravitino
# The JDBC password
gravitino.entity.store.relational.jdbcPassword = gravitino
# Maximum idle entity-store connections retained by this server (capped by maxConnections).
# Budget for it on every server, plus any JDBC catalog pools that use the same database instance.
# gravitino.entity.store.relational.maxIdleConnections = 10

# THE CONFIGURATION FOR Gravitino CATALOG
# The interval in milliseconds to evict the catalog cache
gravitino.catalog.cache.evictionIntervalMs = 3600000
# Whether to share a ClassLoader across catalogs that have identical isolation-relevant properties.
# When true (default), such catalogs reuse one ClassLoader, reducing Metaspace usage. Set to false
# to give every catalog its own ClassLoader, as in releases before 2.0.0.
gravitino.catalog.classloader.sharing.enabled = true

# THE CONFIGURATION FOR Gravitino Entity Cache
# Whether to enable the cached Entity store.
gravitino.cache.enabled = true
# Maximum number of entries allowed in the cache (effective only when weighted eviction is disabled).
gravitino.cache.maxEntries = 10000
# Time-to-live (TTL) for each cache entry after it is written, in milliseconds.
gravitino.cache.expireTimeInMs = 3600000
# Whether to enable cache statistics logging (e.g., hit/miss count, load failures, current size).
gravitino.cache.enableStats = false
# Whether to enable weighted cache eviction.
# If enabled, cache entries are evicted based on their weight rather than count.
gravitino.cache.enableWeigher = true
# The cache implementation to use (e.g., caffeine).
gravitino.cache.implementation = caffeine

# Whether to block remote file URIs that resolve to unsafe addresses.
gravitino.fetchFile.blockUnsafeRemoteUri = true

# THE CONFIGURATION FOR authorization
# Whether Gravitino enable authorization or not
gravitino.authorization.enable = false
# The admins of Gravitino service, separated by commas.
gravitino.authorization.serviceAdmins = anonymous

# THE CONFIGURATION FOR AUXILIARY SERVICE
# Auxiliary service names, separate by ',', currently support iceberg-rest and lance-rest
gravitino.auxService.names = iceberg-rest,lance-rest
# Iceberg REST service classpath
gravitino.iceberg-rest.classpath = iceberg-rest-server/libs, iceberg-rest-server/conf
# To use the experimental Iceberg dependencies, replace the classpath above with:
# gravitino.iceberg-rest.classpath = iceberg-rest-server-experiment/libs, iceberg-rest-server-experiment/conf
# Iceberg REST service host
gravitino.iceberg-rest.host = 0.0.0.0
# Iceberg REST service http port
gravitino.iceberg-rest.httpPort = 9001
# The backend Iceberg catalog for Iceberg REST service, it's recommended to change to hive or jdbc
gravitino.iceberg-rest.catalog-backend = memory
# The warehouse directory of Iceberg catalog for Iceberg REST service
gravitino.iceberg-rest.warehouse = /tmp/
# If authorization is enabled, you must use dynamic config provider for Iceberg REST server
# gravitino.iceberg-rest.catalog-config-provider = dynamic-config-provider
# URI of the Gravitino server that the dynamic config provider will call to fetch catalog configs
# gravitino.iceberg-rest.gravitino-uri = http://localhost:8090
# Metalake name used by the dynamic config provider when querying Gravitino for Iceberg catalogs
# gravitino.iceberg-rest.gravitino-metalake = <metalake-name>
# Default Iceberg catalog name to use when clients do not specify one
# gravitino.iceberg-rest.default-catalog-name = <default-iceberg-catalog>

# Lance REST service classpath
gravitino.lance-rest.classpath = lance-rest-server/libs
# Lance REST service host
gravitino.lance-rest.host = 0.0.0.0
# Lance REST service http port
gravitino.lance-rest.httpPort = 9101

# THE CONFIGURATION FOR Lance namespace backend
# The backend Lance namespace for Lance REST service, it's recommended to use Gravitino
gravitino.lance-rest.namespace-backend = gravitino
# The uri of the Lance REST service gravitino namespace backend.
# This is not required when Lance REST runs as an auxiliary service embedded in Gravitino server.
# gravitino.lance-rest.gravitino-uri = http://localhost:8090
# The metalake name used for Lance REST service gravitino namespace backend, please create the metalake first before using it, and configure the metalake name here.
# gravitino.lance-rest.gravitino-metalake = metalake

# THE CONFIGURATION FOR table maintenance (TMS)
# Cooldown defaults when a maintenance policy omits minIntervalMs:
# compaction / manifest-rewrite / snapshot-expiry = 3600000 (1h), orphan-cleanup = 86400000 (1d)
# gravitino.maintenance.compaction.minIntervalMs = 3600000
# gravitino.maintenance.manifest-rewrite.minIntervalMs = 3600000
# gravitino.maintenance.snapshot-expiry.minIntervalMs = 3600000
# gravitino.maintenance.orphan-cleanup.minIntervalMs = 86400000

# Base URI Spark jobs use for maintenance sample/finish callbacks (updater_options.gravitino_uri).
# Required for cron Spark submit when the policy does not set updaterOptions.gravitino_uri.
# gravitino.maintenance.gravitinoUri = http://localhost:8090

# The user TMS uses to submit jobs when gravitino.authorization.enable is true.
# Create the user in each metalake that runs maintenance jobs, and grant RUN_JOB plus
# USE_JOB_TEMPLATE (and any privileges Spark callbacks need).
# gravitino.maintenance.jobSubmitter = tms

# IRC → post-commit maintenance listener (§5.2.3). Requires colocated iceberg-rest aux service and TableMaintenanceRESTFeature.
# gravitino.eventListener.names = post-commit-maintenance-listener
# gravitino.eventListener.post-commit-maintenance-listener.class = org.apache.gravitino.maintenance.listener.PostCommitMaintenanceListener

# THE CONFIGURATION FOR sensitive property key matching
# Comma-separated keywords. Each entry is a literal substring, not a regular expression.
# This list replaces the default (secret,password,token,credential,access,account).
# Omit a default keyword to stop masking keys that only match that word. An empty value
# disables name-based matching.
# gravitino.secret.sensitiveKeyKeywords = secret,password,token,credential,private,passwrod