{"id":94268,"date":"2026-08-14T06:24:56","date_gmt":"2026-08-13T22:24:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/94268.html"},"modified":"2026-08-14T06:24:56","modified_gmt":"2026-08-13T22:24:56","slug":"%e9%85%8d%e7%bd%ae-gravitino-iceberg-rest-catalog-%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/94268.html","title":{"rendered":"\u914d\u7f6e Gravitino Iceberg REST Catalog \u670d\u52a1\u5668"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260813222454-6a7e44365a084.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4f5c\u8005&#xff1a;xiaojing fang \u6700\u540e\u66f4\u65b0&#xff1a;2026-01-26<\/p>\n<h3>\u6982\u8ff0<\/h3>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d&#xff0c;\u60a8\u5c06\u5b66\u4e60\u5982\u4f55\u914d\u7f6e\u548c\u4f7f\u7528 Gravitino Iceberg REST catalog \u670d\u52a1\u5668\u3002\u5b8c\u6210\u672c\u6307\u5357\u540e&#xff0c;\u60a8\u5c06\u62e5\u6709\u4e00\u4e2a\u529f\u80fd\u5b8c\u6574\u7684 Iceberg REST \u670d\u52a1&#xff0c;\u4f7f\u6807\u51c6 Iceberg \u5ba2\u6237\u7aef\u80fd\u591f\u901a\u8fc7 HTTP API \u4e0e Gravitino \u4ea4\u4e92\u3002<\/p>\n<p>\u60a8\u5c06\u5b8c\u6210\u7684\u4efb\u52a1&#xff1a;<\/p>\n<ul>\n<li>\u914d\u7f6e Iceberg REST \u670d\u52a1&#xff1a;\u5728 Gravitino \u670d\u52a1\u5668\u4e2d\u5c06\u5176\u4f5c\u4e3a\u8f85\u52a9\u670d\u52a1&#xff0c;\u652f\u6301\u5404\u79cd catalog \u540e\u7aef<\/li>\n<li>\u9a8c\u8bc1 REST \u7aef\u70b9&#xff1a;\u901a\u8fc7\u6d4b\u8bd5\u670d\u52a1\u7aef\u70b9\u786e\u4fdd\u529f\u80fd\u6b63\u5e38<\/li>\n<li>\u8fde\u63a5 Iceberg \u5ba2\u6237\u7aef&#xff1a;\u5305\u62ec Apache Spark&#xff0c;\u901a\u8fc7 REST API \u6267\u884c Table \u64cd\u4f5c<\/li>\n<li>\u63a2\u7d22\u540e\u7aef\u9009\u9879&#xff1a;\u5305\u62ec Hive \u548c JDBC \u540e\u7aef&#xff0c;\u652f\u6301\u672c\u5730\u548c\u4e91\u5b58\u50a8\u914d\u7f6e<\/li>\n<\/ul>\n<p>Apache Iceberg \u5b9a\u4e49\u4e86\u4e00\u4e2a REST catalog API&#xff0c;\u5ba2\u6237\u7aef\u4f7f\u7528\u8be5 API \u6765\u53d1\u73b0\u548c\u7ba1\u7406 Iceberg Namespace \u548c Table\u3002Gravitino Iceberg REST \u670d\u52a1\u5b9e\u73b0\u4e86\u8fd9\u4e2a API&#xff0c;\u5e76\u5145\u5f53\u4ee3\u7406&#xff0c;\u4f7f Iceberg \u5ba2\u6237\u7aef\u80fd\u591f\u901a\u8fc7\u6807\u51c6 HTTP \u63a5\u53e3\u4e0e Gravitino \u901a\u4fe1\u3002<\/p>\n<p>\u6838\u5fc3\u6982\u5ff5&#xff1a;<\/p>\n<ul>\n<li>Iceberg REST catalog&#xff1a;\u7528\u4e8e Iceberg \u64cd\u4f5c\u7684\u6807\u51c6 HTTP API<\/li>\n<li>Gravitino Iceberg REST \u670d\u52a1&#xff1a;\u5b9e\u73b0 Iceberg REST API \u5e76\u8fde\u63a5\u5230 catalog \u540e\u7aef&#xff08;Hive \u6216 JDBC&#xff09;<\/li>\n<li>\u5ba2\u6237\u7aef\u6d41\u7a0b&#xff1a;Spark \u6216\u5176\u4ed6 Iceberg \u5ba2\u6237\u7aef\u6307\u5411 REST \u7aef\u70b9\u5e76\u6267\u884c\u547d\u540d\u7a7a\u95f4\/Table \u64cd\u4f5c<\/li>\n<\/ul>\n<p>REST \u7aef\u70b9\u57fa\u7840\u8def\u5f84\u4e3a http:\/\/&lt;host&gt;:&lt;port&gt;\/iceberg\/&#xff0c;\u7b26\u5408 Apache Iceberg REST catalog \u89c4\u8303\u3002<\/p>\n<p>\u9009\u62e9 Gravitino Iceberg catalog service \u7684\u539f\u56e0&#xff1a;<\/p>\n<ul>\n<li>\u7b26\u5408\u6807\u51c6&#xff1a;\u4e3a Iceberg \u5ba2\u6237\u7aef\u63d0\u4f9b API&#xff0c;\u65e0\u9700\u7279\u5b9a\u4f9b\u5e94\u5546\u7684\u914d\u7f6e<\/li>\n<li>\u96c6\u4e2d\u6cbb\u7406&#xff1a;\u901a\u8fc7\u5355\u4e00 REST \u7aef\u70b9\u5bf9 Namespace \u548c Table \u8fdb\u884c\u96c6\u4e2d\u7ba1\u7406<\/li>\n<li>\u540e\u7aef\u7075\u6d3b\u6027&#xff1a;\u652f\u6301 Hive \u6216 JDBC \u4f5c\u4e3a catalog \u5b58\u50a8<\/li>\n<li>\u591a\u5f15\u64ce\u8bbf\u95ee&#xff1a;Spark\u3001Trino \u548c\u5176\u4ed6 Iceberg \u5ba2\u6237\u7aef\u53ef\u4ee5\u5171\u4eab\u540c\u4e00\u4e2a catalog<\/li>\n<li>\u5b89\u5168\u589e\u5f3a&#xff1a;\u542f\u7528\u65f6\u652f\u6301\u51ed\u8bc1\u5206\u53d1\u548c\u8bbf\u95ee\u63a7\u5236&#xff08;ACL&#xff09;<\/li>\n<li>\u53ef\u89c2\u6d4b\u6027\u548c\u8fd0\u7ef4&#xff1a;\u901a\u8fc7\u5ba1\u8ba1\u65e5\u5fd7\u3001\u6307\u6807\u548c\u4e8b\u4ef6\u76d1\u542c\u5668\u6765\u8fdb\u884c\u8fd0\u7ef4<\/li>\n<li>\u6027\u80fd\u6539\u8fdb&#xff1a;Table \u5143\u6570\u636e\u7f13\u5b58\u548c Table scan plan \u7f13\u5b58<\/li>\n<\/ul>\n<h3>\u524d\u63d0\u6761\u4ef6<\/h3>\n<p>\u5f00\u59cb\u672c\u6559\u7a0b\u4e4b\u524d&#xff0c;\u60a8\u9700\u8981&#xff1a;<\/p>\n<p>\u7cfb\u7edf\u8981\u6c42&#xff1a;<\/p>\n<ul>\n<li>Linux \u6216 macOS \u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u5177\u6709\u4e92\u8054\u7f51\u8bbf\u95ee\u6743\u9650\u7528\u4e8e\u4e0b\u8f7d<\/li>\n<li>\u5df2\u5b89\u88c5\u5e76\u6b63\u786e\u914d\u7f6e JDK 17 \u6216\u66f4\u9ad8\u7248\u672c<\/li>\n<\/ul>\n<p>\u5fc5\u9700\u7ec4\u4ef6&#xff1a;<\/p>\n<ul>\n<li>\u5df2\u5b89\u88c5\u5e76\u914d\u7f6e\u7684 Gravitino \u670d\u52a1\u5668&#xff08;\u53c2\u89c1 02-setup-guide\/README.md&#xff09;<\/li>\n<\/ul>\n<p>\u53ef\u9009\u7ec4\u4ef6&#xff1a;<\/p>\n<ul>\n<li>\u5e26\u6709 Iceberg \u8fd0\u884c\u65f6 JAR \u7684 Apache Spark&#xff0c;\u7528\u4e8e\u5ba2\u6237\u7aef\u9a8c\u8bc1&#xff08;\u63a8\u8350\u7528\u4e8e\u6d4b\u8bd5&#xff09;<\/li>\n<li>\u5982\u679c\u4f7f\u7528 Hive catalog \u540e\u7aef&#xff0c;\u9700\u8981 Hive Metastore \u670d\u52a1<\/li>\n<li>\u5982\u679c\u4f7f\u7528 JDBC catalog \u540e\u7aef&#xff0c;\u9700\u8981 MySQL \u6216 PostgreSQL \u670d\u52a1\u5668<\/li>\n<\/ul>\n<p>\u7ee7\u7eed\u4e4b\u524d&#xff0c;\u8bf7\u9a8c\u8bc1\u60a8\u7684 Java \u5b89\u88c5&#xff1a;<\/p>\n<p><span class=\"token variable\">${JAVA_HOME}<\/span>\/bin\/java -version<\/p>\n<p>\u67b6\u6784\u6982\u8ff0&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260813222454-6a7e443693477.png\" alt=\"Gravitino Iceberg REST catalog\" \/><\/p>\n<h3>\u8bbe\u7f6e<\/h3>\n<h4>\u6b65\u9aa4 1&#xff1a;\u542f\u52a8\u5e26\u6709 Iceberg REST \u670d\u52a1\u7684 Gravitino \u670d\u52a1\u5668<\/h4>\n<p>\u5982\u679c\u60a8\u5e0c\u671b\u5c06 Iceberg REST \u670d\u52a1\u5d4c\u5165\u5230\u5b8c\u6574\u7684 Gravitino \u670d\u52a1\u5668\u4e2d&#xff08;\u5305\u62ec Web UI\u3001\u7edf\u4e00 REST API \u7b49&#xff09;&#xff0c;\u8bf7\u4f7f\u7528\u6b64\u65b9\u6cd5\u3002<\/p>\n<h5>\u914d\u7f6e Iceberg REST \u4f5c\u4e3a\u8f85\u52a9\u670d\u52a1<\/h5>\n<p>1. \u5b89\u88c5 Gravitino \u670d\u52a1\u5668\u53d1\u884c\u7248<\/p>\n<p>\u6309\u7167\u4e4b\u524d\u7684\u6559\u7a0b 02-setup-guide\/README.md \u4e0b\u8f7d\u6216\u6784\u5efa Gravitino \u670d\u52a1\u5668\u5305\u3002<\/p>\n<p>2. \u542f\u7528 Iceberg REST \u4f5c\u4e3a\u8f85\u52a9\u670d\u52a1<\/p>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;Gravitino \u4f7f\u7528 memory \u7684 catalog \u540e\u7aef&#xff0c;\u8fd9\u662f\u6700\u7b80\u5355\u7684\u9009\u9879&#xff0c;\u4f46\u91cd\u542f\u540e\u6570\u636e\u4f1a\u4e22\u5931\u56e0\u6b64\u4ec5\u7528\u4e8e\u6d4b\u8bd5&#xff1b;\u60a8\u53ef\u4ee5\u5c06\u5176\u66f4\u6539\u4e3a hive \u6216 jdbc&#xff0c;\u8fd9\u662f\u751f\u4ea7\u73af\u5883\u7684\u6b63\u786e\u9009\u62e9&#xff08;\u7a0d\u540e\u4ecb\u7ecd&#xff09;\u3002\u8bf7\u5728 conf\/gravitino.conf \u4e2d\u914d\u7f6e&#xff1a;<\/p>\n<p># \u542f\u7528 Iceberg REST \u670d\u52a1<br \/>\ngravitino.auxService.names &#061; iceberg-rest<br \/>\ngravitino.iceberg-rest.classpath &#061; iceberg-rest-server\/libs,iceberg-rest-server\/conf<br \/>\ngravitino.iceberg-rest.catalog-backend &#061; memory<br \/>\ngravitino.iceberg-rest.warehouse &#061; \/tmp\/<\/p>\n<p>3. \u542f\u52a8 Gravitino \u670d\u52a1\u5668<\/p>\n<p>.\/bin\/gravitino.sh start<\/p>\n<p>4. \u68c0\u67e5\u670d\u52a1\u5668\u65e5\u5fd7&#xff08;\u53ef\u9009&#xff09;<\/p>\n<p><span class=\"token function\">tail<\/span> -f logs\/gravitino-server.log<\/p>\n<h4>\u6b65\u9aa4 2&#xff1a;\u9a8c\u8bc1 Iceberg REST \u7aef\u70b9<\/h4>\n<p>\u6d4b\u8bd5\u670d\u52a1\u7aef\u70b9<\/p>\n<p><span class=\"token function\">curl<\/span> http:\/\/localhost:9001\/iceberg\/v1\/config<\/p>\n<p>\u6210\u529f\u65f6&#xff0c;\u60a8\u5e94\u8be5\u770b\u5230\u5305\u542b catalog \u914d\u7f6e\u8be6\u7ec6\u4fe1\u606f\u7684 JSON \u54cd\u5e94\u3002<\/p>\n<h4>\u6b65\u9aa4 3&#xff1a;\u4ece\u5ba2\u6237\u7aef\u8fde\u63a5\u5e76\u521b\u5efa Table<\/h4>\n<p>\u914d\u7f6e\u60a8\u7684 Iceberg \u5ba2\u6237\u7aef\u4f7f\u7528 REST catalog\u3002\u4e0b\u9762\u7684 Spark \u793a\u4f8b\u4f7f\u7528 rest catalog \u7c7b\u578b\u548c\u4e0a\u8ff0 REST \u7aef\u70b9\u3002<\/p>\n<h5>\u4f7f\u7528 Iceberg REST catalog \u914d\u7f6e Spark<\/h5>\n<p>1. \u4f7f\u7528 Iceberg \u8fd0\u884c\u65f6\u542f\u52a8 Spark SQL<\/p>\n<p>spark-sql <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;packages org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.10.1 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;conf spark.sql.catalog.gravitino<span class=\"token operator\">&#061;<\/span>org.apache.iceberg.spark.SparkCatalog <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;conf spark.sql.catalog.gravitino.type<span class=\"token operator\">&#061;<\/span>rest <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;conf spark.sql.catalog.gravitino.uri<span class=\"token operator\">&#061;<\/span>http:\/\/localhost:9001\/iceberg<\/p>\n<p>\u6ce8\u610f&#xff1a;\u5c06 Iceberg \u8fd0\u884c\u65f6\u6784\u4ef6\u4e2d\u7684 3.5 \u66ff\u6362\u4e3a\u60a8\u73af\u5883\u4e2d\u7684 Spark \u7248\u672c&#xff0c;\u5e76\u5c06 Gravitino URI \u66ff\u6362\u6210\u771f\u5b9e\u7684\u5730\u5740\u3002<\/p>\n<h5>\u521b\u5efa\u548c\u6d4b\u8bd5 Table<\/h5>\n<p>2. \u6267\u884c\u793a\u4f8b SQL \u64cd\u4f5c<\/p>\n<p>\u5728 Spark SQL \u4e2d&#xff1a;<\/p>\n<p><span class=\"token keyword\">USE<\/span> gravitino<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">CREATE<\/span> NAMESPACE <span class=\"token keyword\">IF<\/span> <span class=\"token operator\">NOT<\/span> <span class=\"token keyword\">EXISTS<\/span> demo<span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">CREATE<\/span> <span class=\"token keyword\">TABLE<\/span> demo<span class=\"token punctuation\">.<\/span>events <span class=\"token punctuation\">(<\/span><br \/>\n  id <span class=\"token keyword\">BIGINT<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  event_type STRING<span class=\"token punctuation\">,<\/span><br \/>\n  ts <span class=\"token keyword\">TIMESTAMP<\/span><br \/>\n<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">USING<\/span> iceberg<span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">INSERT<\/span> <span class=\"token keyword\">INTO<\/span> demo<span class=\"token punctuation\">.<\/span>events <span class=\"token keyword\">VALUES<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#039;click&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">TIMESTAMP<\/span> <span class=\"token string\">&#039;2024-01-01 10:00:00&#039;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">SELECT<\/span> <span class=\"token operator\">*<\/span> <span class=\"token keyword\">FROM<\/span> demo<span class=\"token punctuation\">.<\/span>events<span class=\"token punctuation\">;<\/span><\/p>\n<h3>Catalog \u540e\u7aef\u914d\u7f6e\u793a\u4f8b<\/h3>\n<p>\u8fd9\u4e9b\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u914d\u7f6e\u4e0d\u540c\u7684 catalog \u540e\u7aef\u548c\u5404\u79cd\u5b58\u50a8\u9009\u9879\u3002\u5728 conf\/gravitino.conf \u4e2d\u66f4\u65b0\u4ee5\u4e0b\u914d\u7f6e\u3002<\/p>\n<h4>\u4f7f\u7528 HDFS \u7684 Hive Catalog \u540e\u7aef<\/h4>\n<p>\u9002\u7528\u4e8e\u5177\u6709\u73b0\u6709 Hive Metastore \u5b58\u50a8 Iceberg \u5143\u6570\u636e\u7684\u73af\u5883&#xff1a;<\/p>\n<p># Hive \u540e\u7aef\u914d\u7f6e<br \/>\ngravitino.iceberg-rest.catalog-backend &#061; hive<br \/>\ngravitino.iceberg-rest.uri &#061; thrift:\/\/127.0.0.1:9083<br \/>\ngravitino.iceberg-rest.warehouse &#061; hdfs:\/\/127.0.0.1:9000\/user\/hive\/warehouse-hive<\/p>\n<h4>\u4f7f\u7528 HDFS \u7684 JDBC Catalog \u540e\u7aef<\/h4>\n<p>\u9002\u7528\u4e8e\u504f\u597d\u76f4\u63a5\u4f7f\u7528\u6570\u636e\u5e93\u5b58\u50a8 Iceberg \u5143\u6570\u636e\u7684\u73af\u5883&#xff1a;<\/p>\n<p># JDBC \u540e\u7aef\u914d\u7f6e<br \/>\ngravitino.iceberg-rest.catalog-backend &#061; jdbc<br \/>\ngravitino.iceberg-rest.jdbc-driver &#061; org.postgresql.Driver<br \/>\ngravitino.iceberg-rest.uri &#061; jdbc:postgresql:\/\/127.0.0.1:5432\/postgres<br \/>\ngravitino.iceberg-rest.warehouse &#061; hdfs:\/\/127.0.0.1:9000\/user\/hive\/warehouse-jdbc<br \/>\ngravitino.iceberg-rest.jdbc-user &#061; YOUR_DB_USER<br \/>\ngravitino.iceberg-rest.jdbc-password &#061; YOUR_DB_PASSWORD<br \/>\ngravitino.iceberg-rest.jdbc-initialize &#061; true<\/p>\n<p>\u914d\u7f6e\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>\u5c06 JDBC \u9a71\u52a8\u7a0b\u5e8f jar \u653e\u5728 iceberg-rest-server\/libs \u4e2d&#xff0c;\u4ee5\u4fbf Iceberg REST \u670d\u52a1\u53ef\u4ee5\u52a0\u8f7d\u5b83<\/li>\n<li>\u5bf9\u4e8e MySQL&#xff0c;\u4f7f\u7528 com.mysql.cj.jdbc.Driver \u5e76\u76f8\u5e94\u66f4\u65b0 JDBC URL\u3001\u7528\u6237\u540d\u548c\u5bc6\u7801<\/li>\n<\/ul>\n<h4>\u4f7f\u7528 S3 \u7684 Hive Catalog \u540e\u7aef<\/h4>\n<p>\u9002\u7528\u4e8e\u4f7f\u7528 S3 \u5b58\u50a8\u7684\u4e91\u539f\u751f\u90e8\u7f72&#xff1a;<\/p>\n<p># \u4f7f\u7528 S3 \u5b58\u50a8\u7684 Hive \u540e\u7aef<br \/>\ngravitino.iceberg-rest.catalog-backend &#061; hive<br \/>\ngravitino.iceberg-rest.uri &#061; thrift:\/\/127.0.0.1:9083<br \/>\ngravitino.iceberg-rest.warehouse &#061; s3a:\/\/my-bucket\/iceberg-warehouse<\/p>\n<p># S3 \u914d\u7f6e<br \/>\ngravitino.iceberg-rest.io-impl &#061; org.apache.iceberg.aws.s3.S3FileIO<br \/>\ngravitino.iceberg-rest.s3-access-key-id &#061; YOUR_ACCESS_KEY<br \/>\ngravitino.iceberg-rest.s3-secret-access-key &#061; YOUR_SECRET_KEY<br \/>\ngravitino.iceberg-rest.s3-region &#061; us-west-2<br \/>\ngravitino.iceberg-rest.credential-providers &#061; s3-secret-key<\/p>\n<p>S3 \u914d\u7f6e\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>\u8bf7\u6b63\u786e\u66f4\u65b0\u60a8\u7684 S3 Access Key ID\u3001Secret Access Key \u548c\u533a\u57df\u4ee3\u7801<\/li>\n<\/ul>\n<h4>\u4f7f\u7528 S3 \u7684 JDBC Catalog \u540e\u7aef<\/h4>\n<p>\u7ed3\u5408 JDBC \u5143\u6570\u636e\u5b58\u50a8\u548c S3 \u6570\u636e\u5b58\u50a8&#xff1a;<\/p>\n<p># \u4f7f\u7528 S3 \u5b58\u50a8\u7684 JDBC \u540e\u7aef<br \/>\ngravitino.iceberg-rest.catalog-backend &#061; jdbc<br \/>\ngravitino.iceberg-rest.jdbc-driver &#061; org.postgresql.Driver<br \/>\ngravitino.iceberg-rest.uri &#061; jdbc:postgresql:\/\/127.0.0.1:5432\/postgres<br \/>\ngravitino.iceberg-rest.warehouse &#061; s3:\/\/my-bucket\/iceberg-warehouse<br \/>\ngravitino.iceberg-rest.jdbc-user &#061; YOUR_DB_USER<br \/>\ngravitino.iceberg-rest.jdbc-password &#061; YOUR_DB_PASSWORD<br \/>\ngravitino.iceberg-rest.jdbc-initialize &#061; true<\/p>\n<p># S3 \u914d\u7f6e<br \/>\ngravitino.iceberg-rest.io-impl &#061; org.apache.iceberg.aws.s3.S3FileIO<br \/>\ngravitino.iceberg-rest.s3-access-key-id &#061; YOUR_ACCESS_KEY<br \/>\ngravitino.iceberg-rest.s3-secret-access-key &#061; YOUR_SECRET_KEY<br \/>\ngravitino.iceberg-rest.s3-region &#061; us-west-2<br \/>\ngravitino.iceberg-rest.credential-providers &#061; s3-secret-key<\/p>\n<h5>\u989d\u5916\u7684 S3 \u8bbe\u7f6e\u8981\u6c42<\/h5>\n<p>1. \u5b89\u88c5\u6240\u9700\u4f9d\u8d56<\/p>\n<p>\u9664\u4e86\u60a8\u9700\u8981\u7684\u4efb\u4f55 JDBC \u9a71\u52a8\u7a0b\u5e8f jar \u4e4b\u5916&#xff0c;\u8fd8\u8981\u5c06 gravitino-iceberg-aws-bundle jar \u653e\u5728 Iceberg REST \u670d\u52a1\u7c7b\u8def\u5f84\u4e2d&#xff08;iceberg-rest-server\/libs&#xff09;\u3002<\/p>\n<p>\u4ece\u4ee5\u4e0b\u5730\u5740\u4e0b\u8f7d&#xff1a;https:\/\/mvnrepository.com\/artifact\/org.apache.gravitino\/gravitino-iceberg-aws-bundle<\/p>\n<p>2. \u914d\u7f6e Spark \u4ee5\u8bbf\u95ee S3<\/p>\n<p>spark-sql <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;packages org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.10.1,org.apache.gravitino:gravitino-iceberg-aws-bundle:1.1.0 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;conf spark.sql.catalog.gravitino<span class=\"token operator\">&#061;<\/span>org.apache.iceberg.spark.SparkCatalog <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;conf spark.sql.catalog.gravitino.type<span class=\"token operator\">&#061;<\/span>rest <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;conf spark.sql.catalog.gravitino.uri<span class=\"token operator\">&#061;<\/span>http:\/\/localhost:9001\/iceberg <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;conf spark.sql.catalog.gravitino.header.X-Iceberg-Access-Delegation<span class=\"token operator\">&#061;<\/span>vended-credentials<\/p>\n<h3>\u6545\u969c\u6392\u9664<\/h3>\n<p>\u5e38\u89c1\u95ee\u9898\u53ca\u5176\u89e3\u51b3\u65b9\u6848&#xff1a;<\/p>\n<p>\u670d\u52a1\u8fde\u63a5\u95ee\u9898&#xff1a;<\/p>\n<ul>\n<li>curl \u8fd4\u56de 404&#xff1a;\u9a8c\u8bc1 Iceberg REST \u57fa\u7840\u8def\u5f84\u662f \/iceberg&#xff0c;\u7aef\u53e3\u4e0e gravitino.iceberg-rest.httpPort \u5339\u914d<\/li>\n<li>\u670d\u52a1\u672a\u8fd0\u884c&#xff1a;\u68c0\u67e5 logs\/gravitino-server.log \u548c logs\/gravitino-server.out \u4e2d\u7684\u542f\u52a8\u9519\u8bef<\/li>\n<\/ul>\n<p>\u540e\u7aef\u8fde\u63a5\u95ee\u9898&#xff1a;<\/p>\n<ul>\n<li>Catalog \u540e\u7aef\u8fde\u63a5\u9519\u8bef&#xff1a;\u786e\u8ba4 JDBC URL\u3001\u7528\u6237\u540d\/\u5bc6\u7801\u548c JDBC \u9a71\u52a8\u7a0b\u5e8f jar \u7684\u53ef\u7528\u6027<\/li>\n<li>\u4ed3\u5e93\u9519\u8bef&#xff1a;\u9a8c\u8bc1\u4ed3\u5e93\u8def\u5f84\u5b58\u5728\u4e14\u670d\u52a1\u7528\u6237\u53ef\u4ee5\u8bbf\u95ee<\/li>\n<\/ul>\n<p>\u5ba2\u6237\u7aef\u8fde\u63a5\u95ee\u9898&#xff1a;<\/p>\n<ul>\n<li>Spark \u8fde\u63a5\u5931\u8d25&#xff1a;\u786e\u4fdd REST URL \u53ef\u4ece Spark \u9a71\u52a8\u7a0b\u5e8f\u8bbf\u95ee&#xff0c;\u5e76\u8bbe\u7f6e\u4e86 spark.sql.catalog.&lt;name&gt;.type&#061;rest<\/li>\n<li>Spark \u627e\u4e0d\u5230 Iceberg \u7c7b&#xff1a;\u901a\u8fc7 &#8211;packages \u6216 spark.jars \u6dfb\u52a0\u5339\u914d\u7684 Iceberg Spark \u8fd0\u884c\u65f6 jar<\/li>\n<\/ul>\n<h3>\u606d\u559c<\/h3>\n<p>\u60a8\u5df2\u6210\u529f\u5b8c\u6210 Gravitino Iceberg REST catalog \u670d\u52a1\u5668\u914d\u7f6e\u6559\u7a0b&#xff01;<\/p>\n<p>\u60a8\u73b0\u5728\u62e5\u6709\u4e00\u4e2a\u529f\u80fd\u5b8c\u6574\u7684 Iceberg REST \u670d\u52a1&#xff0c;\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\u5728\u7aef\u53e3 9001 \u4e0a\u8fd0\u884c\u7684\u5df2\u914d\u7f6e Iceberg REST \u7aef\u70b9<\/li>\n<li>\u4e3a\u60a8\u7684\u5b58\u50a8\u73af\u5883\u914d\u7f6e\u7684 catalog \u540e\u7aef<\/li>\n<li>\u901a\u8fc7 Apache Spark \u9a8c\u8bc1\u7684\u5ba2\u6237\u7aef\u8fde\u63a5<\/li>\n<li>\u5bf9\u5404\u79cd\u540e\u7aef\u548c\u5b58\u50a8\u914d\u7f6e\u9009\u9879\u7684\u7406\u89e3<\/li>\n<\/ul>\n<p>\u60a8\u7684 Gravitino Iceberg REST \u670d\u52a1\u5df2\u51c6\u5907\u597d\u4e3a\u6574\u4e2a\u6570\u636e\u751f\u6001\u7cfb\u7edf\u4e2d\u7684 Iceberg \u5ba2\u6237\u7aef\u63d0\u4f9b\u670d\u52a1\u3002<\/p>\n<h3>\u8fdb\u4e00\u6b65\u9605\u8bfb<\/h3>\n<p>\u6709\u5173\u66f4\u9ad8\u7ea7\u914d\u7f6e\u548c\u8be6\u7ec6\u6587\u6863&#xff1a;<\/p>\n<ul>\n<li>\u67e5\u770b Iceberg REST \u670d\u52a1\u6587\u6863&#xff0c;\u4e86\u89e3\u4e91\u5b58\u50a8\u652f\u6301\u3001\u8bbf\u95ee\u63a7\u5236\u548c\u51ed\u8bc1\u5206\u53d1\u7b49\u9ad8\u7ea7\u9009\u9879&#xff1a;Gravitino Iceberg REST \u670d\u52a1<\/li>\n<li>\u9605\u8bfb Gravitino Iceberg REST Catalog \u535a\u5ba2&#xff0c;\u4e86\u89e3\u80cc\u666f\u548c\u90e8\u7f72\u8bf4\u660e&#xff1a;Gravitino Iceberg REST Catalog \u670d\u52a1\u535a\u5ba2<\/li>\n<li>Iceberg REST catalog API \u89c4\u8303&#xff1a;Apache Iceberg REST API<\/li>\n<\/ul>\n<h3>\u4e0b\u4e00\u6b65<\/h3>\n<ul>\n<li>\u7ee7\u7eed\u9605\u8bfb Lance Catalog<\/li>\n<li>\u5173\u6ce8\u5e76\u6536\u85cf Apache Gravitino \u4ed3\u5e93<\/li>\n<\/ul>\n<hr \/>\n<p>Apache Gravitino \u6b63\u5728\u5feb\u901f\u53d1\u5c55&#xff0c;\u672c\u6587\u57fa\u4e8e\u6700\u65b0\u7248\u672c 1.1.0 \u7f16\u5199\u3002\u5982\u679c\u60a8\u9047\u5230\u95ee\u9898&#xff0c;\u8bf7\u53c2\u8003\u5b98\u65b9\u6587\u6863\u6216\u5728 GitHub \u4e0a\u63d0\u4ea4\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005&#xff1a;xiaojing fang \u6700\u540e\u66f4\u65b0&#xff1a;2026-01-26<br \/>\n\u6982\u8ff0<br \/>\n\u5728\u672c\u6559\u7a0b\u4e2d&#xff0c;\u60a8\u5c06\u5b66\u4e60\u5982\u4f55\u914d\u7f6e\u548c\u4f7f\u7528 Gravitino Iceberg REST catalog \u670d\u52a1\u5668\u3002\u5b8c\u6210\u672c\u6307\u5357\u540e&#xff0c;\u60a8\u5c06\u62e5\u6709\u4e00\u4e2a\u529f\u80fd\u5b8c\u6574\u7684 Iceberg REST \u670d\u52a1&#xff0c;\u4f7f\u6807\u51c6 Iceberg \u5ba2\u6237\u7aef\u80fd\u591f\u901a\u8fc7 HTTP API \u4e0e Gravitino \u4ea4\u4e92\u3002<br \/>\n\u60a8\u5c06\u5b8c\u6210\u7684\u4efb\u52a1&#xff1a;<br \/>\n\u914d\u7f6e Iceberg REST <\/p>\n","protected":false},"author":2,"featured_media":94266,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[66,331,5106,323,2034],"topic":[],"class_list":["post-94268","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ai","tag-apache","tag-5106","tag-323","tag-2034"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u914d\u7f6e Gravitino Iceberg REST Catalog \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/94268.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u914d\u7f6e Gravitino Iceberg REST Catalog \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4f5c\u8005&#xff1a;xiaojing fang \u6700\u540e\u66f4\u65b0&#xff1a;2026-01-26 \u6982\u8ff0 \u5728\u672c\u6559\u7a0b\u4e2d&#xff0c;\u60a8\u5c06\u5b66\u4e60\u5982\u4f55\u914d\u7f6e\u548c\u4f7f\u7528 Gravitino Iceberg REST catalog \u670d\u52a1\u5668\u3002\u5b8c\u6210\u672c\u6307\u5357\u540e&#xff0c;\u60a8\u5c06\u62e5\u6709\u4e00\u4e2a\u529f\u80fd\u5b8c\u6574\u7684 Iceberg REST \u670d\u52a1&#xff0c;\u4f7f\u6807\u51c6 Iceberg \u5ba2\u6237\u7aef\u80fd\u591f\u901a\u8fc7 HTTP API \u4e0e Gravitino \u4ea4\u4e92\u3002 \u60a8\u5c06\u5b8c\u6210\u7684\u4efb\u52a1&#xff1a; \u914d\u7f6e Iceberg REST\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/94268.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-13T22:24:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260813222454-6a7e44365a084.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/94268.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/94268.html\",\"name\":\"\u914d\u7f6e Gravitino Iceberg REST Catalog \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-13T22:24:56+00:00\",\"dateModified\":\"2026-08-13T22:24:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/94268.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/94268.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/94268.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u914d\u7f6e Gravitino Iceberg REST Catalog \u670d\u52a1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u914d\u7f6e Gravitino Iceberg REST Catalog \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/94268.html","og_locale":"zh_CN","og_type":"article","og_title":"\u914d\u7f6e Gravitino Iceberg REST Catalog \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4f5c\u8005&#xff1a;xiaojing fang \u6700\u540e\u66f4\u65b0&#xff1a;2026-01-26 \u6982\u8ff0 \u5728\u672c\u6559\u7a0b\u4e2d&#xff0c;\u60a8\u5c06\u5b66\u4e60\u5982\u4f55\u914d\u7f6e\u548c\u4f7f\u7528 Gravitino Iceberg REST catalog \u670d\u52a1\u5668\u3002\u5b8c\u6210\u672c\u6307\u5357\u540e&#xff0c;\u60a8\u5c06\u62e5\u6709\u4e00\u4e2a\u529f\u80fd\u5b8c\u6574\u7684 Iceberg REST \u670d\u52a1&#xff0c;\u4f7f\u6807\u51c6 Iceberg \u5ba2\u6237\u7aef\u80fd\u591f\u901a\u8fc7 HTTP API \u4e0e Gravitino \u4ea4\u4e92\u3002 \u60a8\u5c06\u5b8c\u6210\u7684\u4efb\u52a1&#xff1a; \u914d\u7f6e Iceberg REST","og_url":"https:\/\/www.wsisp.com\/helps\/94268.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-13T22:24:56+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260813222454-6a7e44365a084.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/94268.html","url":"https:\/\/www.wsisp.com\/helps\/94268.html","name":"\u914d\u7f6e Gravitino Iceberg REST Catalog \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-13T22:24:56+00:00","dateModified":"2026-08-13T22:24:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/94268.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/94268.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/94268.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u914d\u7f6e Gravitino Iceberg REST Catalog \u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/94268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=94268"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/94268\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/94266"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=94268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=94268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=94268"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=94268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}