<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: ShaofengShi</title>
    <description>The latest articles on Forem by ShaofengShi (@shaofengshi).</description>
    <link>https://forem.com/shaofengshi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3525807%2Fa0ba2525-a9f7-4480-ae5b-7f8e635b0f1d.JPG</url>
      <title>Forem: ShaofengShi</title>
      <link>https://forem.com/shaofengshi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/shaofengshi"/>
    <language>en</language>
    <item>
      <title>Configuring Gravitino Iceberg REST Catalog Server</title>
      <dc:creator>ShaofengShi</dc:creator>
      <pubDate>Mon, 26 Jan 2026 09:11:53 +0000</pubDate>
      <link>https://forem.com/gravitino/configuring-gravitino-iceberg-rest-catalog-server-19i0</link>
      <guid>https://forem.com/gravitino/configuring-gravitino-iceberg-rest-catalog-server-19i0</guid>
      <description>&lt;p&gt;&lt;em&gt;Author: xiaojing fang&lt;/em&gt;&lt;br&gt;
&lt;em&gt;Last Updated: 2026-01-26&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Overview
&lt;/h2&gt;

&lt;p&gt;In this tutorial, you will learn how to configure and use the Gravitino Iceberg REST catalog server. By the end of this guide, you'll have a fully functional Iceberg REST service that enables standard Iceberg clients to interact with Gravitino through HTTP APIs.&lt;/p&gt;

&lt;p&gt;Apache Iceberg defines a REST catalog API that clients use to discover and manage Iceberg namespaces and tables. The Gravitino Iceberg REST service implements this API and acts as a proxy so that Iceberg clients can talk to Gravitino through a standard HTTP interface.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key concepts:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Iceberg REST catalog&lt;/strong&gt;: A standard HTTP API for Iceberg operations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gravitino Iceberg REST service&lt;/strong&gt;: Implements the Iceberg REST API and connects to a catalog backend (Hive or JDBC)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Client flow&lt;/strong&gt;: Spark or other Iceberg clients point to the REST endpoint and perform namespace/table operations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The REST endpoint base path is &lt;code&gt;http://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/iceberg/&lt;/code&gt;, aligned with the Apache Iceberg REST catalog specification.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why choose Gravitino Iceberg catalog server:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Standards-compliant&lt;/strong&gt; API for Iceberg clients without vendor-specific wiring&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Centralized governance&lt;/strong&gt; for namespaces and tables through a single REST endpoint&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend flexibility&lt;/strong&gt; with Hive or JDBC as the catalog store&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-engine access&lt;/strong&gt; so Spark, Trino, and other Iceberg clients can share the same catalog&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security enhancements&lt;/strong&gt; with credential vending and access control (ACL) when enabled&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Observability and operations&lt;/strong&gt; via audit logs, metrics, and event listeners&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Performance improvements&lt;/strong&gt; with table metadata cache and table scan planning cache&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;Before starting this tutorial, you will need:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;System Requirements:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Linux or macOS operating system with outbound internet access for downloads&lt;/li&gt;
&lt;li&gt;JDK 17 or higher installed and properly configured&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Required Components:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Gravitino server installed and configured (see &lt;a href="https://dev.to/gravitino/setting-up-apache-gravitino-from-scratch-56o8"&gt;Setting up Apache Gravitino from Scratch&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Optional Components:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Apache Spark with Iceberg runtime JARs for client verification (recommended for testing)&lt;/li&gt;
&lt;li&gt;Hive Metastore service if using Hive catalog backend&lt;/li&gt;
&lt;li&gt;MySQL or PostgreSQL server if using JDBC catalog backend&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Before proceeding, verify your Java installation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;JAVA_HOME&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;/bin/java &lt;span class="nt"&gt;-version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Architecture overview:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk8qc17202r6q2jqg2rca.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk8qc17202r6q2jqg2rca.png" alt="Gravitino Iceberg REST catalog service architecture" width="800" height="471"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1: Start a Gravitino server with Iceberg REST service
&lt;/h3&gt;

&lt;p&gt;Use this approach if you want the Iceberg REST service embedded in a full Gravitino server (with Web UI, unified REST APIs, etc.).&lt;/p&gt;

&lt;h4&gt;
  
  
  Configure Iceberg REST as auxiliary service
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;1. Install Gravitino server distribution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Follow the previous tutorial &lt;a href="//../02-setup-guide/README.md"&gt;&lt;code&gt;02-setup-guide/README.md&lt;/code&gt;&lt;/a&gt; to download or build the Gravitino server package.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Enable Iceberg REST as an auxiliary service&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;By default, Gravitino uses the memory catalog backend, which is the simplest option, you can change it to &lt;code&gt;hive&lt;/code&gt; or &lt;code&gt;jdbc&lt;/code&gt; which are right choices for production. Configure this in &lt;code&gt;conf/gravitino.conf&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight properties"&gt;&lt;code&gt;&lt;span class="c"&gt;# Enable Iceberg REST service
&lt;/span&gt;&lt;span class="py"&gt;gravitino.auxService.names&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;iceberg-rest&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.classpath&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;iceberg-rest-server/libs,iceberg-rest-server/conf&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.catalog-backend&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;memory&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.warehouse&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;/tmp/&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3. Start the Gravitino server&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./bin/gravitino.sh start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;4. Check server logs (optional)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;tail&lt;/span&gt; &lt;span class="nt"&gt;-f&lt;/span&gt; logs/gravitino-server.log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2: Verify the Iceberg REST endpoint
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Test the service endpoint&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl http://localhost:9001/iceberg/v1/config
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On success, you should see a JSON response with catalog configuration details.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Connect from a client and create a table
&lt;/h3&gt;

&lt;p&gt;Configure your Iceberg client to use the REST catalog. The Spark example below uses the &lt;code&gt;rest&lt;/code&gt; catalog type and the REST endpoint above.&lt;/p&gt;

&lt;h4&gt;
  
  
  Configure Spark with Iceberg REST catalog
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;1. Start Spark SQL with Iceberg runtime&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;spark-sql &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--packages&lt;/span&gt; org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.10.1 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--conf&lt;/span&gt; spark.sql.catalog.gravitino&lt;span class="o"&gt;=&lt;/span&gt;org.apache.iceberg.spark.SparkCatalog &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--conf&lt;/span&gt; spark.sql.catalog.gravitino.type&lt;span class="o"&gt;=&lt;/span&gt;rest &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--conf&lt;/span&gt; spark.sql.catalog.gravitino.uri&lt;span class="o"&gt;=&lt;/span&gt;http://localhost:9001/iceberg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: Replace &lt;code&gt;3.5&lt;/code&gt; in the Iceberg runtime artifact with the Spark version in your environment.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h4&gt;
  
  
  Create and test tables
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;2. Execute sample SQL operations&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In Spark SQL:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="n"&gt;USE&lt;/span&gt; &lt;span class="n"&gt;gravitino&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="n"&gt;NAMESPACE&lt;/span&gt; &lt;span class="n"&gt;IF&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="k"&gt;EXISTS&lt;/span&gt; &lt;span class="n"&gt;demo&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;demo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;events&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="nb"&gt;BIGINT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;event_type&lt;/span&gt; &lt;span class="n"&gt;STRING&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;ts&lt;/span&gt; &lt;span class="nb"&gt;TIMESTAMP&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;USING&lt;/span&gt; &lt;span class="n"&gt;iceberg&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;demo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;events&lt;/span&gt; &lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'click'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;TIMESTAMP&lt;/span&gt; &lt;span class="s1"&gt;'2024-01-01 10:00:00'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;demo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;events&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Catalog Backend Configuration Examples
&lt;/h2&gt;

&lt;p&gt;These examples show how to configure different catalog backends with various storage options. Update the following configuration in &lt;code&gt;conf/gravitino.conf&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Hive Catalog Backend with HDFS
&lt;/h3&gt;

&lt;p&gt;For environments with existing Hive infrastructure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight properties"&gt;&lt;code&gt;&lt;span class="c"&gt;# Hive backend configuration
&lt;/span&gt;&lt;span class="py"&gt;gravitino.iceberg-rest.catalog-backend&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;hive&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.uri&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;thrift://127.0.0.1:9083&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.warehouse&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;hdfs://127.0.0.1:9000/user/hive/warehouse-hive&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  JDBC Catalog Backend with HDFS
&lt;/h3&gt;

&lt;p&gt;For environments preferring direct database storage:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight properties"&gt;&lt;code&gt;&lt;span class="c"&gt;# JDBC backend configuration
&lt;/span&gt;&lt;span class="py"&gt;gravitino.iceberg-rest.catalog-backend&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;jdbc&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.jdbc-driver&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;org.postgresql.Driver&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.uri&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;jdbc:postgresql://127.0.0.1:5432/postgres&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.warehouse&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;hdfs://127.0.0.1:9000/user/hive/warehouse-jdbc&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.jdbc-user&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;YOUR_DB_USER&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.jdbc-password&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;YOUR_DB_PASSWORD&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.jdbc-initialize&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Configuration notes:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Place the JDBC driver jar in &lt;code&gt;iceberg-rest-server/libs&lt;/code&gt; so the Iceberg REST service can load it&lt;/li&gt;
&lt;li&gt;For MySQL, use &lt;code&gt;com.mysql.cj.jdbc.Driver&lt;/code&gt; and update the JDBC URL, user and password accordingly&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Hive Catalog Backend with S3
&lt;/h3&gt;

&lt;p&gt;For cloud-native deployments with S3 storage:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight properties"&gt;&lt;code&gt;&lt;span class="c"&gt;# Hive backend with S3 storage
&lt;/span&gt;&lt;span class="py"&gt;gravitino.iceberg-rest.catalog-backend&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;hive&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.uri&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;thrift://127.0.0.1:9083&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.warehouse&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;s3a://my-bucket/iceberg-warehouse&lt;/span&gt;

&lt;span class="c"&gt;# S3 configuration
&lt;/span&gt;&lt;span class="py"&gt;gravitino.iceberg-rest.io-impl&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;org.apache.iceberg.aws.s3.S3FileIO&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.s3-access-key-id&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;YOUR_ACCESS_KEY&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.s3-secret-access-key&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;YOUR_SECRET_KEY&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.s3-region&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;us-west-2&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.credential-providers&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;s3-secret-key&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;S3 configuration notes:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Update your S3 access key ID, secret access key, and region code properly&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  JDBC Catalog Backend with S3
&lt;/h3&gt;

&lt;p&gt;Combining JDBC metadata storage with S3 data storage:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight properties"&gt;&lt;code&gt;&lt;span class="c"&gt;# JDBC backend with S3 storage
&lt;/span&gt;&lt;span class="py"&gt;gravitino.iceberg-rest.catalog-backend&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;jdbc&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.jdbc-driver&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;org.postgresql.Driver&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.uri&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;jdbc:postgresql://127.0.0.1:5432/postgres&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.warehouse&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;s3://my-bucket/iceberg-warehouse&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.jdbc-user&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;YOUR_DB_USER&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.jdbc-password&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;YOUR_DB_PASSWORD&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.jdbc-initialize&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;true&lt;/span&gt;

&lt;span class="c"&gt;# S3 configuration
&lt;/span&gt;&lt;span class="py"&gt;gravitino.iceberg-rest.io-impl&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;org.apache.iceberg.aws.s3.S3FileIO&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.s3-access-key-id&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;YOUR_ACCESS_KEY&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.s3-secret-access-key&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;YOUR_SECRET_KEY&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.s3-region&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;us-west-2&lt;/span&gt;
&lt;span class="py"&gt;gravitino.iceberg-rest.credential-providers&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;s3-secret-key&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Additional S3 Setup Requirements
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;1. Install required dependencies&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Besides any JDBC driver jar you need, place the &lt;code&gt;gravitino-iceberg-aws-bundle&lt;/code&gt; jar in the Iceberg REST service classpath (&lt;code&gt;iceberg-rest-server/libs&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;Download it from: &lt;a href="https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-iceberg-aws-bundle" rel="noopener noreferrer"&gt;https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-iceberg-aws-bundle&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Configure Spark for S3 access&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;spark-sql &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--packages&lt;/span&gt; org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.10.1,org.apache.gravitino:gravitino-iceberg-aws-bundle:1.1.0 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--conf&lt;/span&gt; spark.sql.catalog.gravitino&lt;span class="o"&gt;=&lt;/span&gt;org.apache.iceberg.spark.SparkCatalog &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--conf&lt;/span&gt; spark.sql.catalog.gravitino.type&lt;span class="o"&gt;=&lt;/span&gt;rest &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--conf&lt;/span&gt; spark.sql.catalog.gravitino.uri&lt;span class="o"&gt;=&lt;/span&gt;http://localhost:9001/iceberg &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--conf&lt;/span&gt; spark.sql.catalog.gravitino.header.X-Iceberg-Access-Delegation&lt;span class="o"&gt;=&lt;/span&gt;vended-credentials
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;p&gt;Common issues and their solutions:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Service connectivity issues:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;curl&lt;/code&gt; returns 404&lt;/strong&gt;: Verify the Iceberg REST base path is &lt;code&gt;/iceberg&lt;/code&gt; and the port matches &lt;code&gt;gravitino.iceberg-rest.httpPort&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Service not running&lt;/strong&gt;: Check &lt;code&gt;logs/gravitino-server.log&lt;/code&gt; and &lt;code&gt;logs/gravitino-server.out&lt;/code&gt; for startup errors&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Backend connection issues:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Catalog backend connection errors&lt;/strong&gt;: Confirm JDBC URL, username/password, and JDBC driver jar availability&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Warehouse errors&lt;/strong&gt;: Validate the warehouse path exists and the service user can access it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Client connection issues:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Spark fails to connect&lt;/strong&gt;: Ensure the REST URL is reachable from the Spark driver and &lt;code&gt;spark.sql.catalog.&amp;lt;name&amp;gt;.type=rest&lt;/code&gt; is set&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spark can't find Iceberg classes&lt;/strong&gt;: Add the matching Iceberg Spark runtime jar via &lt;code&gt;--packages&lt;/code&gt; or &lt;code&gt;spark.jars&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Congratulations
&lt;/h2&gt;

&lt;p&gt;You have successfully completed the Gravitino Iceberg REST catalog server configuration tutorial!&lt;/p&gt;

&lt;p&gt;You now have a fully functional Iceberg REST service with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A configured Iceberg REST endpoint running on port 9001&lt;/li&gt;
&lt;li&gt;A catalog backend configured for your storage environment&lt;/li&gt;
&lt;li&gt;Verified client connectivity through Apache Spark&lt;/li&gt;
&lt;li&gt;Understanding of various backend and storage configuration options&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your Gravitino Iceberg REST service is ready to serve Iceberg clients across your data ecosystem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Further Reading
&lt;/h2&gt;

&lt;p&gt;For more advanced configurations and detailed documentation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Review the Iceberg REST service documentation for advanced options like cloud storage support, access control, and credential vending: &lt;a href="https://gravitino.apache.org/docs/latest/iceberg-rest-service" rel="noopener noreferrer"&gt;Gravitino Iceberg REST Service&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Read the Gravitino Iceberg REST Catalog blog for background and deployment notes: &lt;a href="https://datastrato.ai/blog/gravitino-iceberg-rest-catalog-service/" rel="noopener noreferrer"&gt;Gravitino Iceberg REST Catalog Service Blog&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Iceberg REST catalog API specification: &lt;a href="https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml" rel="noopener noreferrer"&gt;Apache Iceberg REST API&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Next Steps
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Continue reading "Setup Lance Catalog" (under writting)&lt;/li&gt;
&lt;li&gt;Follow and star &lt;a href="https://github.com/apache/gravitino" rel="noopener noreferrer"&gt;Apache Gravitino Repository&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Apache Gravitino is rapidly evolving, and this article is written based on the latest version 1.1.0. If you encounter issues, please refer to the &lt;a href="https://gravitino.apache.org/docs/" rel="noopener noreferrer"&gt;official documentation&lt;/a&gt; or submit issues on &lt;a href="https://github.com/apache/gravitino/issues" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>gravitino101</category>
      <category>iceberg</category>
      <category>dataengineering</category>
      <category>spark</category>
    </item>
  </channel>
</rss>
