World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
docs(style): codify rules and sweep across the docs tree (#11205)
Mark Hoerth80366f1652f1
diff --git a/.claude/skills/gravitino-docs-refine/README.md b/.claude/skills/gravitino-docs-refine/README.mdnew file mode 100644index 0000000000..5eec531c3f--- /dev/null+++ b/.claude/skills/gravitino-docs-refine/README.md@@ -0,0 +1,68 @@+<!--+ 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.+-->++# gravitino-docs-refine skill++A practical skill for refining Gravitino documentation so edits follow `STYLE.md` and pass the docs audit scripts.++## What it does++The skill guides a concise docs refinement workflow:++1. Apply focused style and heading-structure edits.+2. Run required audits from `.claude/skills/gravitino-docs-refine/scripts/`.+3. Fix reported issues and re-run until clean.++### Required script checks++| Script | Purpose | Command |+|---|---|---|+| `.claude/skills/gravitino-docs-refine/scripts/title_h2_audit.py` | Detect duplicate page-title H2 headings | `python3 .claude/skills/gravitino-docs-refine/scripts/title_h2_audit.py` |+| `.claude/skills/gravitino-docs-refine/scripts/intro_audit.py` | Find content that appears before the first H2 | `python3 .claude/skills/gravitino-docs-refine/scripts/intro_audit.py` |+| `.claude/skills/gravitino-docs-refine/scripts/heading_audit.py` | Detect heading-level order problems and level jumps | `python3 .claude/skills/gravitino-docs-refine/scripts/heading_audit.py` |+| `.claude/skills/gravitino-docs-refine/scripts/heading_spacing_audit.py` | Enforce blank-line spacing around headings | `python3 .claude/skills/gravitino-docs-refine/scripts/heading_spacing_audit.py` |+| `.claude/skills/gravitino-docs-refine/scripts/check_links.py` | Validate internal links and anchors in `docs/` | `python3 .claude/skills/gravitino-docs-refine/scripts/check_links.py docs/` |++## Installation++Project-local (already in this repository):++```bash+.claude/skills/gravitino-docs-refine+```++Optional global install:++```bash+cp -r .claude/skills/gravitino-docs-refine ~/.claude/skills/+```++## Usage++Ask Claude Code to apply the skill while editing docs pages:++> "Refine this docs page using the gravitino-docs-refine skill"++Recommended final gate:++```bash+python3 .claude/skills/gravitino-docs-refine/scripts/title_h2_audit.py \+ && python3 .claude/skills/gravitino-docs-refine/scripts/intro_audit.py \+ && python3 .claude/skills/gravitino-docs-refine/scripts/heading_audit.py \+ && python3 .claude/skills/gravitino-docs-refine/scripts/heading_spacing_audit.py \+ && python3 .claude/skills/gravitino-docs-refine/scripts/check_links.py docs/+```diff --git a/.claude/skills/gravitino-docs-refine/SKILL.md b/.claude/skills/gravitino-docs-refine/SKILL.mdnew file mode 100644index 0000000000..9f53c329ed--- /dev/null+++ b/.claude/skills/gravitino-docs-refine/SKILL.md@@ -0,0 +1,75 @@+<!--+ 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.+-->++---+name: gravitino-docs-refine+description: Use when refining Gravitino Markdown docs to match STYLE.md and pass docs audit scripts+allowed-tools: Bash+---++# Gravitino Docs Style Refinement++## Overview++Refine Markdown files under `docs/` with focused, reviewable edits that follow `STYLE.md`.+Always validate with the audit scripts under `.claude/skills/gravitino-docs-refine/scripts/` before finishing.++## Refinement Workflow++1. Read `STYLE.md` and the target file end to end.+2. Apply focused style and structure edits only.+3. Run the audit scripts in the required order.+4. Fix issues by file and line number.+5. Re-run the full script set until all checks pass.++## Audit Scripts (Required)++Run from the repository root.++| Script | What it checks | When to run |+|---|---|---|+| `.claude/skills/gravitino-docs-refine/scripts/title_h2_audit.py` | First body H2 should not duplicate frontmatter `title` | After title or opening-section edits |+| `.claude/skills/gravitino-docs-refine/scripts/intro_audit.py` | Body content should not appear before the first H2 | After restructuring page openings |+| `.claude/skills/gravitino-docs-refine/scripts/heading_audit.py` | Heading hierarchy: first heading is H2 and no level jumps (`H2 -> H4`) | After heading edits |+| `.claude/skills/gravitino-docs-refine/scripts/heading_spacing_audit.py` | One blank line before and after each `H2`-`H6` heading | After formatting sweeps |+| `.claude/skills/gravitino-docs-refine/scripts/check_links.py` | Internal Markdown links and anchors under `docs/` | Final quality gate before PR |++## Script Usage++```bash+python3 .claude/skills/gravitino-docs-refine/scripts/title_h2_audit.py+python3 .claude/skills/gravitino-docs-refine/scripts/intro_audit.py+python3 .claude/skills/gravitino-docs-refine/scripts/heading_audit.py+python3 .claude/skills/gravitino-docs-refine/scripts/heading_spacing_audit.py+python3 .claude/skills/gravitino-docs-refine/scripts/check_links.py docs/+```++Run as a single gate when finishing:++```bash+python3 .claude/skills/gravitino-docs-refine/scripts/title_h2_audit.py \+ && python3 .claude/skills/gravitino-docs-refine/scripts/intro_audit.py \+ && python3 .claude/skills/gravitino-docs-refine/scripts/heading_audit.py \+ && python3 .claude/skills/gravitino-docs-refine/scripts/heading_spacing_audit.py \+ && python3 .claude/skills/gravitino-docs-refine/scripts/check_links.py docs/+```++## Completion Criteria++- Target docs comply with `STYLE.md`.+- All five scripts exit with code `0`.+- No unrelated files are changed.diff --git a/.claude/skills/gravitino-docs-refine/STYLE.md b/.claude/skills/gravitino-docs-refine/STYLE.mdnew file mode 100644index 0000000000..90788de413--- /dev/null+++ b/.claude/skills/gravitino-docs-refine/STYLE.md@@ -0,0 +1,204 @@+<!--+ 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.+-->++# Documentation Style Guide for Apache Gravitino++Style and review guidance for human and AI contributors editing Gravitino documentation. When reviewing existing text, propose edits one at a time, tag each with a category, and make no changes without explicit approval.++## Project names and capitalization++Always capitalized in prose. These are proper nouns:++- **Gravitino**, **Apache Gravitino** (never "gravitino" or "Grivitino" in prose; lowercase `gravitino` is only correct inside literal config keys like `gravitino.uri`)+- **Iceberg**, **Apache Iceberg**+- **Hive**, **Apache Hive** (lowercase "metastore" when used as a generic noun: "the Hive metastore")+- **Paimon**, **Apache Paimon**+- **Trino**, **Spark**, **Flink**, **Kafka**, **Hadoop**+- **Ranger**, **Apache Ranger**+- **Polaris**, **Nessie**+- **Lance**, **Doris**+- **Datastrato**++Code identifiers (class names, method names, config keys, CLI flags) stay in their literal source casing inside backticks. Do not "correct" `gravitino.uri` to `Gravitino.uri`.++## Terminology++- **metalake** — one word, lowercase. Not "meta lake", not "Metalake".+- **catalog**, **schema**, **table**, **view**, **fileset**, **topic**, **model** — lowercase concept names.+- **REST catalog**, **Iceberg REST catalog**, **IRC** — initialism uppercased.+- **federated metadata catalog** or **data catalog** in marketing-adjacent prose. Avoid "data catalog platform".+- Prefer **engine** over "compute" when referring to query engines (Trino, Spark, Flink).+- Prefer **credential vending** over "credential issuing" or "credential generation" in IRC context.+- **OSI** stands for Open Semantic Catalog in Gravitino docs, not Open Systems Interconnection.+- Use **pushdown** (one word) for the noun and adjective forms ("supports pushdown", "predicate pushdown"). Reserve "push down" (two words) for the rare phrasal-verb use ("the engine pushes the filter down"). Do not use the hyphenated "push-down".+- Verb vs. noun: "shut down" / "back up" / "set up" / "log in" / "log out" are verbs (two words). "Shutdown" / "backup" / "setup" / "login" / "logout" are nouns (one word). Match the form to the grammatical use.+- Hyphenate compound adjectives before nouns: "in-memory cache", "real-time updates", "long-running operation", "open-source project". When the same phrase is used as a predicate adverbial ("the data is stored in memory"), no hyphen.+- **Docker**, **Kubernetes**, **Linux**, **Python**, **Java**, **MySQL**, **PostgreSQL**, and other product/language names are always capitalized in prose. Lowercase forms in code, file paths, and config keys are technically meaningful and should not be changed.++## Initialisms++Always uppercase when used as identifiers in prose:++- **ID**, **URI**, **URL**, **API**, **REST**, **HTTP**, **HTTPS**, **JSON**, **YAML**, **CSV**, **TSV**+- **SQL**, **JDBC**, **ODBC**+- **AWS**, **GCP**, **GCS**, **S3**, **IAM**, **STS**, **OCI**, **ARN**+- **OAuth**, **OAuth2**, **OIDC**, **LDAP**, **SCIM**, **SAML**, **JWT**, **SSO**, **AD**+- **SLF4J**, **UGI**, **HDFS**, **YARN**, **K8s** (or **Kubernetes** spelled out)+- **SPI** (often misspelled as "SIP"), **SDK**, **CLI**, **UI**, **CI**, **CD**, **GA**, **POC**, **PRD**+- **MCP** (Model Context Protocol)++Inside code samples and config keys, follow the literal source.++## Documentation prose style++- Voice: clear, direct, technical. Active over passive where natural. Address the reader as an engineer ("Configure the catalog by..." rather than "The catalog can be configured by...").+- Avoid abstract-subject framings that flatten the action: "The goal of X is to Y" → "X aims to Y"; "The purpose of X is to Y" → "X..."; "It is recommended that you Y" → "Y" or "Y is recommended"; "X is designed to Y" / "X is used to Y" → "X does Y" when natural.+- Drop "you can / you need to / you should" scaffolding. The imperative is shorter and matches engineering voice. "You can create a catalog by sending a POST request" -> "Create a catalog by sending a POST request"; "You need to provide the following" -> "Provide the following". Use "you" only when you really mean to address the reader (for example, conditionals like "if you want to...") — don't pad an instruction with it.+ - After removing scaffolding, check the resulting verb. "Do" followed by a noun like "steps" or "commands" is weak; replace with a verb that fits the object: "Complete the following steps", "Run the following commands", "Perform the following operations". A mechanical strip that leaves "Do the following X" is the same failure mode as a "Currently" strip that leaves a fragment — finish the sentence, don't just delete the word.+- Cut filler: "in order to" → "to", "due to the fact that" → "because", "at this point in time" → "now", "make use of" → "use".+- Drop "please" before imperative verbs in technical prose ("please see X" → "see X", "please use X" → "use X"). The exceptions are user-facing strings (error messages, UI copy) embedded in code samples where polite tone is intentional. Apply broadly, not just to "please refer to" / "please see".+- Avoid compatibility hedging. Phrases like "tested against X but should also work with Y", "we recommend X though Y may work", or "open an issue if you find compatibility problems" leave the support boundary undefined and offload discovery to users. State what's supported. If a broader compatibility tier genuinely exists and matters, document it as its own labeled tier (for example, "Supported" vs "Best-effort") with explicit caveats, not as a parenthetical hedge. Per-feature invitations to file bug reports are also a hedge; bug reporting belongs in a global CONTRIBUTING or support page, referenced once, not appended to every requirement line. A useful test: read the sentence as a user with the unmentioned version. Does the doc tell them whether the project will accept their use case? If not, the sentence is hedging.+- Avoid "Currently" and "Current" as filler. The sweep applies inside table cells, admonition titles (`:::info`, `:::note`, etc.), bullet lists, and code-adjacent prose, not only at the start of body sentences. The adjective form "Current X" as a heading or label is filler in most cases ("Current Limitations" -> "Limitations"). The only exception: when "Current" is part of a literal UI label being referenced (for example, Keycloak's "Current realm" field), keep the exact wording. Docs describe current state by default; if something is genuinely about to change, name the version where it changes ("In 1.0, only X is supported; built-in support is planned for a future release") rather than handwaving with "currently". Adjectival uses about UI state are fine ("the currently selected item").+- Critical working rule: a word removal is never complete on its own. When you remove "Current" / "Currently" (or any filler word per these style rules), read the full sentence in context and rewrite it so it reads naturally without the dropped word. Verb tense, subject, and punctuation may need adjustment. A mechanical deletion that leaves a fragment, comma splice, or awkward stub is worse than the original text and must not be committed.+- Use the Oxford comma.+- No em dashes. Use commas, parentheses, or two separate sentences.+- Avoid starting sentences with "This" as a bare pronoun. Use "This [noun]" with an explicit referent, or restructure.+- Headings use Title Case at H1 through H4. Capitalize the first word, the last word, and all nouns, verbs, adjectives, adverbs, and pronouns. Lowercase articles (a, an, the), coordinating conjunctions (and, but, or, nor), and prepositions of four letters or fewer (with, in, for, by, to, of, at, on) unless they are the first or last word of the heading. Use sentence case at H5 and below if any exist.+- Content inside code spans (backticks) is verbatim and is never modified by Title Case, sentence case, or any other prose-style sweep. Code spans represent literal identifiers, syntax, type names, function names, configuration keys, file paths, MIME types, and similar. Examples that must be preserved exactly: `TIMESTAMP WITH TIME ZONE`, `IF NOT EXISTS`, `ORDER BY`, `application/json`, `gravitino.server.webserver.host`, `/etc/gravitino/conf`. Only the prose surrounding the code span is subject to heading-case or sentence-case rules. To audit for past damage, this grep catches multi-word code spans where casing may have been mangled: ``grep -rn '`[A-Z][A-Z]* [a-z]' docs/*.md docs/**/*.md``.+- Headings are noun phrases that label content, not imperatives that command the reader. Drop filler verbs like "Use" when the noun phrase carries the meaning on its own ("Use Jupyter Notebook" -> "Jupyter Notebook", "Use `simple` Authentication" -> "`simple` Authentication"). When a verb is doing real work, replace "Use [tool] to [verb]" with "[verb] ... with [tool]" ("Use Spark to Access the Fileset" -> "Access the Fileset with Spark"). Two exceptions: CLI command references in operation lists keep imperative verbs to mirror command structure, and SQL/DDL section headings may mirror a SQL keyword verbatim (e.g., "Use the Catalog" mirroring `USE CATALOG`).+- Avoid gerund-led headings. Rare exceptions are acceptable for well-established phrases like "Getting started" that have no clean noun-phrase equivalent. When in doubt, use a noun phrase.+- Parallel structure: when a heading pairs two or more verbs with "and", use the same verb form for both. Prefer the imperative ("Build and Test", not "Build and Testing").+- Avoid second-person possessives ("your X") in headings, consistent with the broader rule against second-person scaffolding. Use "the X" or drop the determiner.+- Avoid "Example of `<gerund-ing>` X" headings. When the section walks the reader through doing something, use a specific-imperative heading instead ("Configure X", "Create X", "Connect X").+- Avoid "X of (the) Y" prepositional-phrase headings. Use the attributive form "Y X" instead ("Job System Configuration", not "Configurations of the Job System"). Prefer singular over plural for the X noun unless the section enumerates multiple distinct instances.+- Headings should not use the possessive (singular `'s` or plural `s'`). Use an attributive noun ("Service Configuration", "Catalog Information") or a prepositional phrase ("Configuration of the Service") instead.+- No terminal punctuation in headings. Headings do not end with a period, colon, exclamation mark, or other terminal punctuation. The content below the heading speaks for itself.+- Colons in headings earn their place only when they disambiguate two distinct technical concepts joined into one name: "Trino Connector: Hive Catalog" (the connector and the catalog it serves), "Spark Connector: User-Defined Functions" (the connector and the UDF subsystem). When the part after the colon is just a noun that could be appended directly, drop the colon: "Access: Users" reads as cleanly as "Access Users" without the decorative punctuation. Category-type prefixes like "Quick Start:" or "Tutorial:" are not a legitimate exception. They read as outlier styling when surrounding headings don't follow the same convention, and the action verb in a procedural heading ("Enable", "Configure", "Install") already signals the section's intent without a label.+- No "How to X" prefix in headings. Drop the prefix and keep the imperative verb plus object as the heading ("How to Create a Catalog" -> "Create a Catalog"). The "How X Works" pattern ("How It Works", "How Access Control Works") falls under the same rule: headings name a thing, not pose a question. Restructure to a noun phrase like "Mechanism", "Flow", or "Architecture" depending on what the section describes.+- Question-form headings ("What is X?", "Why use Y?") belong in FAQ sections only. For sections introducing or describing something, use a declarative form ("Overview", "Introduction", "Architecture", "Benefits"). Terminal "?" is allowed only in FAQ contexts.+- Use "## Related" for end-of-page sections that link to related documentation, follow-up reading, or external resources. Avoid variants like "See Also", "Additional Resources", "Next Read", "Related Docs", or "Further Reading" — pick one form and use it consistently across all docs.+- Server-name qualifier (e.g., "Apache Gravitino", "Gravitino Server"): at most one per heading chain. Put it at the top H2 of a server's config or reference page; strip from descendant headings. The page title and parent heading provide context for children.+- Drop the filler "Support" suffix when it adds no meaning beyond "we support X" ("View Support" -> "Views", "Generic Table Support" -> "Generic Tables"). Distinct from "Supported X" (adjective form, often kept as a section title for a list of supported things).+- Numbered procedural sections: use "Step N: X" format, not bare "N. X". The bare numbered form reads like a misrendered ordered list.+- "Examples" not "Usage Examples": drop the redundant "Usage" qualifier in headings. Context implies usage. Same for "Basic Usage Examples" -> "Examples".+- "vs." stays lowercase in comparison headings ("Gravitino Connector vs. Iceberg REST") even within Title Case headings, since it is an abbreviation of a function word.+- Hyphenated and slash compounds in Title Case capitalize both halves when both are content words: "Built-In", "Dry-Run", "Multi-Engine", "Geo-Distribution", "Cross-Catalog", "Client/Server". Prepositions and articles within the compound stay lowercase.+- "Requirement" (singular) -> "Prerequisites" in headings. "Requirements" (plural) is acceptable when listing multiple distinct requirements; "Requirements and Limitations" only when the section covers both.+- Avoid "(WIP)", "(Beta)", "(Deprecated)" parentheticals in headings. Status belongs in body content or a callout, not in the navigation hierarchy.+- Parallel section naming: when a page has a series of operations that go in opposite directions ("list tags on an object" vs. "list objects with a tag"), preserve the directional qualifier even if it lengthens the heading. Length is acceptable when it carries information.+- Plural consistency: when sibling sections use plural form ("Catalogs", "Filesets", "Tables"), make all related siblings plural ("Jobs", "Job Templates"). Singular forms are acceptable only when the section truly describes a single thing.+- No fragment headings starting with prepositions or conjunctions. Headings like "With X", "Without X", "For X", "From X", "And X", "But X", "Or X" implicitly attach to a subject elsewhere and read as fragments. Prefer a noun phrase ("X", "X configuration", "No X") or an imperative ("Configure X").+- Don't repeat the leading verb across consecutive bullets ("Supports X" / "Supports Y" / "Supports Z"). Either lift the verb into a shared lead-in ("The catalog supports:" followed by noun-phrase bullets) or vary the verb so each bullet says something distinct. Identical leading verbs are noise — readers skim the difference, not the repetition.+- A sentence that introduces a numbered or bulleted list ends with a colon, not a period. When the sentence references the list forward with "the X", use "these X" instead.+- Avoid the tautological qualifier "created" in operation descriptions ("list the created groups", "returns the created tables"). Listing or retrieving an entity that doesn't exist is impossible, so the qualifier adds no information. Use the bare noun: "list the groups", "returns the tables".+- One sentence per line is encouraged for editability when it reads naturally. Never cram two sentences onto one line.+- Numbers: spell out one through nine, use digits for 10 and above. Exception: numbers paired with units (5 GB, 3 ms) always digits.+- Time: "5 ms", "30 s", "2 min", "1 hour" with a space.++## Page structure++Page title convention: every doc uses the frontmatter `title:` field as its page title. Docusaurus renders this as the rendered page H1. Body markdown must not contain any `# H1` headings — they create duplicate page titles. All section headings in the body start at H2 (`##`).++Frontmatter quoting: all string values in YAML frontmatter (`title:`, `description:`, `license:`, `keyword:`, `slug:`, `sidebar_label:`, and any other string fields) use double quotes uniformly. This prevents parse failures when values contain colons or other YAML-special characters, and removes the need for case-by-case quoting judgment.++First body H2 must not duplicate the frontmatter title. The title renders as the page H1; an immediate H2 with the same wording creates a visual stutter. Use `## Introduction` (or `## Overview` / `## Background` if those better match the content) for the opening section. Reserve glossary-style files (every H2 is a term, not a section) as the only exception. Run `.claude/skills/gravitino-docs-refine/scripts/title_h2_audit.py` to find candidates.++Every doc page opens with an H2 heading after the frontmatter. Prose, admonitions, or code blocks before the first H2 read as orphan content and look inconsistent against pages that open with a section heading. The default opening heading is `## Introduction`. Use `## Overview` or `## Background` when the existing content has clearly moved past introductory framing. MDX imports/exports and license HTML comments between the frontmatter and the first H2 are not orphan content and stay above the heading. Run `.claude/skills/gravitino-docs-refine/scripts/intro_audit.py` to find candidates.++Every Markdown heading takes one blank line before and one blank line after. Compressed spacing (a paragraph or list ending directly above a heading, or a heading directly above content with no separator) breaks rendering in some Markdown parsers and reads as visually tight in all of them. Run `.claude/skills/gravitino-docs-refine/scripts/heading_spacing_audit.py` to catch violations before commit.++## What to leave alone++These are out of scope for prose review. Do not edit without explicit approval:++- **Fenced code blocks** (```), inline `code` in backticks, JSON / YAML / TOML snippets. Even if a JSON value contains a typo, flag it for the human; do not change it.+- **Frontmatter** at the top of Markdown files (YAML between `---` markers).+- **Link URLs** and anchor targets. Link display text is fair game; the URL is not.+- **Property names**, config keys, CLI flags, environment variables (`GRAVITINO_HOME`, `gravitino.uri`, `--catalog-name`).+- **Class names, method names, package paths** in their source casing.+- **Generated content markers** and any block between `<!-- generated -->` and `<!-- /generated -->`.+- **Author names, contributor handles, GitHub usernames.**++## Review workflow++When reviewing a document, follow this pattern:++1. Read the whole file before proposing any edits so suggestions reflect the document's structure and arc.+2. Propose edits one at a time. Each proposal is a single conceptual change with `old_text`, `new_text`, a category, and a brief reason.+3. Categories: `typo`, `spelling`, `grammar`, `clarity`, `accuracy`, `style`, `terminology`, `consistency`.+4. For `accuracy` proposals (claims about how Gravitino behaves), do not assert the doc is wrong. Flag it as needing engineering verification: "Doc says default port is 9083, confirm with engineering before changing."+5. Do not bundle unrelated edits in the same proposal. One conceptual change per accept/reject decision.+6. After all proposals in a file are reviewed, draft a conventional-commit message: `docs(<area>): <improvement>`.+7. When applying a mechanical pattern sweep, if the resulting sentence reads awkwardly (comma splice, dangling fragment, missing connector, awkward parallel structure), fix the whole sentence in the same commit rather than leaving cleanup for a later pass. The goal is that any sentence the sweep touches reads cleanly after the commit lands.+8. Run a typo and misspelling pass as part of the polish workflow, especially after sweeps that strip leading words (which can expose misspelled words that were partially hidden in the original phrasing).+9. Run `.claude/skills/gravitino-docs-refine/scripts/check_links.py docs/` before every docs PR to catch broken internal links and anchors. Heading renames silently break `#anchor` references; the script's anchor validation catches these, and the "available anchors (sample)" hint usually points directly at the renamed target. When changing a heading, treat updating inbound anchor links as part of the same change, not a follow-up.++## Priority of issues++Edits are not equally important. In rough descending order of priority:++1. **Coherence and meaning.** Sentences that don't parse, missing subjects+ or verbs, run-ons that fuse three ideas, paragraphs where the topic+ shifts without warning. These are the highest-value fixes.+2. **Structure and flow.** Choppy sequences of short declarative sentences+ that read like bullet points in prose, missing transitions between+ paragraphs, lists that should be prose or prose that should be a list,+ missing or wrong headings for a region of text.+3. **Clarity and voice.** Passive constructions where active would be+ cleaner, filler phrases, vague subjects ("It is important to note+ that..."), instructions that don't clearly tell the reader what to do.+4. **Grammar and idiom.** Subject-verb agreement, tense consistency,+ article usage, idiomatic phrasing.+5. **Style and terminology.** The conventions captured elsewhere in this file.+6. **Spelling and typos.** Lowest priority because they're rarely the+ actual problem with bad docs.++Lead with high-priority issues. Don't bury a paragraph-level rewrite below+twelve typo fixes.++## Edit scale++A single "atomic edit" can be any of:++- A word ("Grivitino" → "Gravitino")+- A phrase ("would better use" → "should use")+- A sentence (rewrite a choppy or incoherent sentence)+- A paragraph (restructure for flow, split mixed concerns)+- A section (substantial rewrite of an unclear region)++Bigger edits get longer reasons. For a paragraph rewrite, the reason+should explain what was wrong with the original (mixed concerns, choppy+rhythm, unclear referent, missing transition) so the reviewer can+evaluate whether the proposed structure actually solves the problem.++## PR boundaries++When grouping reviewed files into PRs, prefer topical bundles over arbitrary chunks. Examples:++- Authentication and authorization docs together+- All getting-started and quickstart docs together+- Per-catalog docs grouped by catalog (Iceberg, Paimon, Hive, JDBC, Lakehouse)+- IRC and REST service docs together+- Trino, Spark, Flink engine connector docs together++Aim for 5-15 files per PR. PR title format: `docs(<area>): <improvement>`. PR description should list the categories of changes and call out anything that needed engineering verification.++## Notes for future maintainers of this file++Update this guide whenever a review session surfaces a new convention worth codifying. The goal is to drive the per-file review rejection rate down over time. Style decisions made repeatedly should become rules here.diff --git a/.claude/skills/gravitino-docs-refine/scripts/check_links.py b/.claude/skills/gravitino-docs-refine/scripts/check_links.pynew file mode 100755index 0000000000..c8e5fb01a6--- /dev/null+++ b/.claude/skills/gravitino-docs-refine/scripts/check_links.py@@ -0,0 +1,211 @@+#!/usr/bin/env python3+# 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.++"""Validate intra-repo Markdown links and anchors."""+import os+import re+import sys+from pathlib import Path+from collections import defaultdict++LINK_RE = re.compile(r'\[([^\]]*)\]\(([^)]+)\)')+HEADING_RE = re.compile(r'^(#{1,6})\s+(.+)$', re.MULTILINE)+EXTERNAL_PREFIXES = ('http://', 'https://', 'mailto:', 'tel:', 'ftp://', 'pathname://')++# Docusaurus auto-generated / plugin-resolved paths that don't exist as files+# in docs/ but resolve at build time. These are not real broken links.+DOCUSAURUS_BUILD_PATHS = ('api/rest/', 'api/java-api', 'api/python-api')+++def slugify(text):+ """Docusaurus-style heading slug."""+ # Strip inline code backticks, bold/italic markers, leading/trailing whitespace+ text = re.sub(r'`([^`]+)`', r'\1', text)+ text = re.sub(r'[*_]+', '', text)+ text = text.strip()+ text = text.lower()+ text = re.sub(r'[^\w\s-]', '', text)+ text = re.sub(r'[-\s]+', '-', text)+ return text.strip('-')+++def extract_anchors(content):+ """Return set of valid anchors in a Markdown file (from headings).++ Mirrors Docusaurus's duplicate-heading handling: if the same slug appears+ multiple times, the second gets ``-1``, the third ``-2``, and so on.+ """+ anchors = set()+ seen = {}+ for m in HEADING_RE.finditer(content):+ slug = slugify(m.group(2))+ if slug in seen:+ anchors.add(f"{slug}-{seen[slug]}")+ seen[slug] += 1+ else:+ anchors.add(slug)+ seen[slug] = 1+ return anchors+++def extract_links(path):+ """Return list of (line_no, link_text, link_target) tuples from a file."""+ links = []+ with path.open(encoding='utf-8') as f:+ for line_no, line in enumerate(f, 1):+ for m in LINK_RE.finditer(line):+ text, target = m.group(1), m.group(2)+ links.append((line_no, text, target))+ return links+++def resolve_target(target, source_file, docs_root):+ """Resolve a link target to (file_path, anchor) or (None, anchor) for same-file refs."""+ # Strip query strings (rare in docs but possible)+ target = target.split('?', 1)[0]++ if '#' in target:+ file_part, anchor = target.split('#', 1)+ else:+ file_part, anchor = target, None++ if not file_part:+ # Same-file anchor reference: [text](#section)+ return source_file, anchor++ # Resolve relative or absolute-from-docs-root paths+ if file_part.startswith('/'):+ candidate = docs_root / file_part.lstrip('/')+ else:+ candidate = (source_file.parent / file_part).resolve()++ # Append .md if it has no extension and the bare path doesn't exist+ if not candidate.exists() and not candidate.suffix:+ for ext in ('.md', '.mdx'):+ if (candidate.parent / (candidate.name + ext)).exists():+ candidate = candidate.parent / (candidate.name + ext)+ break++ return candidate, anchor+++def validate_docs(docs_root):+ docs_root = Path(docs_root).resolve()+ md_files = sorted(docs_root.rglob('*.md'))+ broken = []++ for md in md_files:+ for line_no, text, target in extract_links(md):+ if target.startswith(EXTERNAL_PREFIXES):+ continue+ if any(target.startswith(p) or target.startswith('./' + p) for p in DOCUSAURUS_BUILD_PATHS):+ continue+ if target.startswith('#'):+ # Same-file anchor+ target_file, anchor = md, target.lstrip('#')+ else:+ target_file, anchor = resolve_target(target, md, docs_root)++ # Image-only links inside parens (rare); skip if target is clearly an asset+ if target_file and target_file.suffix.lower() in (+ '.png', '.jpg', '.jpeg', '.gif', '.svg', '.webp', '.pdf'+ ):+ if not target_file.exists():+ broken.append({+ 'file': md.relative_to(docs_root),+ 'line': line_no,+ 'text': text,+ 'target': target,+ 'error': f"Asset not found: {target_file.relative_to(docs_root) if docs_root in target_file.parents else target_file}",+ })+ continue++ if target_file is None or not target_file.exists():+ broken.append({+ 'file': md.relative_to(docs_root),+ 'line': line_no,+ 'text': text,+ 'target': target,+ 'error': f"File not found: {target}",+ })+ continue++ if anchor:+ try:+ content = target_file.read_text(encoding='utf-8')+ except Exception as e:+ broken.append({+ 'file': md.relative_to(docs_root),+ 'line': line_no,+ 'text': text,+ 'target': target,+ 'error': f"Could not read target: {e}",+ })+ continue++ anchors = extract_anchors(content)+ if anchor not in anchors:+ # Provide a short hint of available anchors+ sample = sorted(anchors)[:8]+ broken.append({+ 'file': md.relative_to(docs_root),+ 'line': line_no,+ 'text': text,+ 'target': target,+ 'error': f"Anchor '#{anchor}' not found in {target_file.name}",+ 'hint': sample,+ })++ return broken+++def main():+ if len(sys.argv) < 2:+ print("Usage: check_links.py <docs_directory>")+ sys.exit(2)++ docs_root = sys.argv[1]+ if not os.path.exists(docs_root):+ print(f"Error: '{docs_root}' not found")+ sys.exit(2)++ print(f"Validating Markdown links under {docs_root}...")+ broken = validate_docs(docs_root)++ if not broken:+ print("\nAll links and anchors valid.")+ return 0++ print(f"\nFound {len(broken)} broken link(s):\n")+ by_file = defaultdict(list)+ for item in broken:+ by_file[str(item['file'])].append(item)++ for filepath in sorted(by_file):+ print(f"\n{filepath}")+ for item in by_file[filepath]:+ print(f" L{item['line']}: [{item['text']}]({item['target']})")+ print(f" -> {item['error']}")+ if 'hint' in item and item['hint']:+ print(f" available anchors (sample): {', '.join(item['hint'])}")++ return 1+++if __name__ == '__main__':+ sys.exit(main())diff --git a/.claude/skills/gravitino-docs-refine/scripts/heading_audit.py b/.claude/skills/gravitino-docs-refine/scripts/heading_audit.pynew file mode 100755index 0000000000..1df9ec6db4--- /dev/null+++ b/.claude/skills/gravitino-docs-refine/scripts/heading_audit.py@@ -0,0 +1,111 @@+#!/usr/bin/env python3+# 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.++"""Audit Markdown heading hierarchy.++Reports two issue classes:+ 1. First body heading is not H2 (file starts at H3+ with no H2 anywhere above).+ 2. Heading level jumps (e.g., H2 -> H4 with no H3 between).++Skips headings inside fenced code blocks.+"""+import re+import sys+from pathlib import Path++FRONTMATTER_RE = re.compile(r'^---\n(.*?)\n---\n', re.DOTALL)+HEADING_RE = re.compile(r'^(#{1,6})\s+(.+?)\s*$')+++def headings_in(path):+ """Yield (line_no, level, text) for each heading outside fenced code blocks."""+ text = path.read_text(encoding='utf-8')+ fm = FRONTMATTER_RE.match(text)+ body_offset = fm.end() if fm else 0+ body = text[body_offset:]+ fm_lines = text[:body_offset].count('\n')++ in_code = False+ for i, line in enumerate(body.splitlines()):+ s = line.lstrip()+ if s.startswith('```'):+ in_code = not in_code+ continue+ if in_code:+ continue+ m = HEADING_RE.match(line)+ if m:+ yield fm_lines + i + 1, len(m.group(1)), m.group(2).strip()+++def audit_file(path):+ issues = []+ hs = list(headings_in(path))+ if not hs:+ return issues++ first_line, first_level, first_text = hs[0]+ if first_level != 2:+ issues.append({+ 'class': 'first-heading-not-h2',+ 'line': first_line,+ 'msg': f"First body heading is H{first_level}, expected H2",+ 'detail': f"{'#' * first_level} {first_text}",+ })++ prev_level = hs[0][1]+ for line, level, text in hs[1:]:+ if level > prev_level + 1:+ issues.append({+ 'class': 'level-jump',+ 'line': line,+ 'msg': f"Heading level jumps from H{prev_level} to H{level}",+ 'detail': f"{'#' * level} {text}",+ })+ prev_level = level++ return issues+++def main():+ root = Path('docs') if Path('docs').exists() else Path('.')+ by_file = {}+ total = 0+ for md in sorted(root.rglob('*.md')):+ if md.name == 'STYLE.md':+ continue+ issues = audit_file(md)+ if issues:+ by_file[md] = issues+ total += len(issues)++ if total == 0:+ print("Total issues: 0")+ return 0++ print(f"Total issues: {total}\n")+ for md, issues in by_file.items():+ print(f"{md}")+ for it in issues:+ print(f" L{it['line']} [{it['class']}]: {it['msg']}")+ print(f" {it['detail']}")+ return 1+++if __name__ == '__main__':+ sys.exit(main())diff --git a/.claude/skills/gravitino-docs-refine/scripts/heading_spacing_audit.py b/.claude/skills/gravitino-docs-refine/scripts/heading_spacing_audit.pynew file mode 100755index 0000000000..cb6f3b02b3--- /dev/null+++ b/.claude/skills/gravitino-docs-refine/scripts/heading_spacing_audit.py@@ -0,0 +1,92 @@+#!/usr/bin/env python3+# 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.++"""Find Markdown headings (H2-H6) that lack a blank line before or after."""+import re+import sys+from pathlib import Path++FRONTMATTER_RE = re.compile(r'^---\n(.*?)\n---\n', re.DOTALL)+HEADING_RE = re.compile(r'^(#{2,6})\s+(.+)$')+CODE_FENCE_RE = re.compile(r'^```')+++def audit(path):+ text = path.read_text(encoding='utf-8')+ fm = FRONTMATTER_RE.match(text)+ if fm:+ body_start_line = fm.group(0).count('\n')+ body = text[fm.end():]+ else:+ body_start_line = 0+ body = text++ lines = body.splitlines()+ issues = []+ in_code_fence = False++ for i, line in enumerate(lines):+ if CODE_FENCE_RE.match(line):+ in_code_fence = not in_code_fence+ continue+ if in_code_fence:+ continue++ m = HEADING_RE.match(line)+ if not m:+ continue++ file_line_no = body_start_line + i + 1++ # Check line before: skip if heading is at the very top of body+ if i > 0:+ prev = lines[i - 1]+ if prev.strip():+ issues.append((file_line_no, line.rstrip(), 'no blank line before'))++ # Check line after: skip if heading is the last line of body+ if i + 1 < len(lines):+ nxt = lines[i + 1]+ if nxt.strip():+ issues.append((file_line_no, line.rstrip(), 'no blank line after'))++ return issues+++def main():+ root = Path('docs') if Path('docs').exists() else Path('.')+ total = 0+ for md in sorted(root.rglob('*.md')):+ if md.name == 'STYLE.md':+ continue+ issues = audit(md)+ if not issues:+ continue+ print()+ print(str(md))+ for line_no, heading, msg in issues:+ print(f" L{line_no} ({msg}): {heading}")+ total += 1++ print()+ print(f"Total issues: {total}")+ return 0 if total == 0 else 1+++if __name__ == '__main__':+ sys.exit(main())diff --git a/.claude/skills/gravitino-docs-refine/scripts/intro_audit.py b/.claude/skills/gravitino-docs-refine/scripts/intro_audit.pynew file mode 100755index 0000000000..d63ccae165--- /dev/null+++ b/.claude/skills/gravitino-docs-refine/scripts/intro_audit.py@@ -0,0 +1,89 @@+#!/usr/bin/env python3+# 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.++"""Find Markdown files where body content appears before the first H2 heading."""+import re+import sys+from pathlib import Path++FRONTMATTER_RE = re.compile(r'^---\n(.*?)\n---\n', re.DOTALL)+++def audit(path):+ text = path.read_text(encoding='utf-8')+ fm = FRONTMATTER_RE.match(text)+ if not fm:+ return None, None+ body = text[fm.end():]++ body_lines = body.splitlines()+ fm_line_count = fm.group(0).count('\n')++ in_html_comment = False+ for i, line in enumerate(body_lines):+ stripped = line.strip()+ if not stripped:+ continue+ # Multi-line HTML comment (license header)+ if in_html_comment:+ if '-->' in stripped:+ in_html_comment = False+ continue+ if stripped.startswith('<!--') and '-->' not in stripped:+ in_html_comment = True+ continue+ if stripped.startswith('<!--') and stripped.endswith('-->'):+ continue+ # Single-line MDX import/export+ if stripped.startswith('import ') or stripped.startswith('export '):+ continue+ if line.startswith('## ') and not line.startswith('### '):+ return None, None # already starts with an H2, good+ # Found a non-blank, non-boilerplate line that isn't an H2+ return fm_line_count + i + 1, line+++def main():+ root = Path('docs') if Path('docs').exists() else Path('.')+ matches = []+ for md in sorted(root.rglob('*.md')):+ if md.name == 'STYLE.md':+ continue+ line_no, first_line = audit(md)+ if line_no is None:+ continue+ matches.append((md, line_no, first_line))++ if not matches:+ print("All docs open with an H2 after frontmatter.")+ return 0++ print(f"Found {len(matches)} file(s) where body content precedes the first H2:\n")+ for md, line_no, first_line in matches:+ kind = "H1" if first_line.startswith('# ') and not first_line.startswith('## ') \+ else "H3" if first_line.startswith('### ') \+ else "H4+" if first_line.startswith('####') \+ else "prose"+ preview = first_line[:80] + ('...' if len(first_line) > 80 else '')+ print(f" {md}")+ print(f" L{line_no} ({kind}): {preview}")+ return 1+++if __name__ == '__main__':+ sys.exit(main())diff --git a/.claude/skills/gravitino-docs-refine/scripts/title_h2_audit.py b/.claude/skills/gravitino-docs-refine/scripts/title_h2_audit.pynew file mode 100755index 0000000000..2a8a469709--- /dev/null+++ b/.claude/skills/gravitino-docs-refine/scripts/title_h2_audit.py@@ -0,0 +1,91 @@+#!/usr/bin/env python3+# 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.++"""Find Markdown files where the first body H2 duplicates the frontmatter title."""+import re+import sys+from pathlib import Path++TITLE_RE = re.compile(r'^title:\s*["\']?(.*?)["\']?\s*$', re.MULTILINE)+H2_RE = re.compile(r'^##\s+(.+)$', re.MULTILINE)+FRONTMATTER_RE = re.compile(r'^---\n(.*?)\n---\n', re.DOTALL)+++def normalize(s):+ s = s.lower().strip()+ s = re.sub(r'[^\w\s]', ' ', s)+ s = re.sub(r'\s+', ' ', s).strip()+ return s+++def get_title_and_first_h2(path):+ text = path.read_text(encoding='utf-8')+ fm = FRONTMATTER_RE.match(text)+ if not fm:+ return None, None, None+ title_match = TITLE_RE.search(fm.group(1))+ if not title_match:+ return None, None, None+ title = title_match.group(1).strip().strip('"').strip("'")++ body = text[fm.end():]+ h2 = H2_RE.search(body)+ if not h2:+ return title, None, None++ # Detect if a later "## Introduction" exists (skipping the first H2 we found)+ later_intro = False+ for m in H2_RE.finditer(body):+ if m.start() == h2.start():+ continue+ if normalize(m.group(1)) == 'introduction':+ later_intro = True+ break++ return title, h2.group(1).strip(), later_intro+++def main():+ root = Path('docs') if Path('docs').exists() else Path('.')+ matches = []+ for md in sorted(root.rglob('*.md')):+ if md.name == 'STYLE.md':+ continue+ title, h2, later_intro = get_title_and_first_h2(md)+ if not title or not h2:+ continue+ n_title = normalize(title)+ n_h2 = normalize(h2)+ if n_title == n_h2 or n_title in n_h2 or n_h2 in n_title:+ matches.append((md, title, h2, later_intro))++ if not matches:+ print("No duplicate-title H2s found.")+ return 0++ print(f"Found {len(matches)} candidate(s):\n")+ for md, title, h2, later_intro in matches:+ flag = " [HAS LATER ## Introduction — REVIEW]" if later_intro else ""+ print(f" {md}")+ print(f" title: {title!r}")+ print(f" first H2: {h2!r}{flag}")+ return 1+++if __name__ == '__main__':+ sys.exit(main())diff --git a/.gitignore b/.gitignoreindex 036f1b3e67..c614cc8f12 100644--- a/.gitignore+++ b/.gitignore@@ -66,3 +66,8 @@ web/.next.venv/.worktrees/.claude/settings.local.json++# Vim swap files+*.swp+*.swo+.*.sw?diff --git a/docs/apache-hive-catalog.md b/docs/apache-hive-catalog.mdindex f27fec46ab..e76f54c19b 100644--- a/docs/apache-hive-catalog.md+++ b/docs/apache-hive-catalog.md@@ -1,8 +1,8 @@----title: "Apache Hive catalog"-slug: /apache-hive-catalog+title: "Hive Catalog"+slug: "/apache-hive-catalog"date: 2023-12-10-keyword: hive catalog+keyword: "hive catalog"license: "This software is licensed under the Apache License version 2."---@@ -10,7 +10,7 @@ license: "This software is licensed under the Apache License version 2."Apache Gravitino offers the capability to utilize [Apache Hive](https://hive.apache.org) as a catalog for metadata management.-### Requirements and limitations+### Requirements and Limitations* The Hive catalog requires a Hive Metastore Service (HMS), or a compatible implementation of the HMS, such as AWS Glue.* Gravitino must have network access to the Hive metastore service using the Thrift protocol.@@ -21,13 +21,13 @@ The Hive catalog supports HMS versions 2.x and 3.x. it can automatically detect## Catalog-### Catalog capabilities+### Catalog CapabilitiesThe Hive catalog supports creating, updating, and deleting databases and tables in the HMS.-### Catalog properties+### Catalog Properties-Besides the [common catalog properties](./gravitino-server-config.md#apache-gravitino-catalog-properties-configuration), the Hive catalog has the following properties:+Besides the [common catalog properties](./gravitino-server-config.md#catalog-properties-configuration), the Hive catalog has the following properties:| Property Name | Description | Default Value | Required | Since Version ||------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|------------------------------|---------------|@@ -72,22 +72,23 @@ df.write.format("hudi")The corresponding `_ro` / `_rt` siblings are removed automatically based on the base table name.:::-When you use the Gravitino with Trino. You can pass the Trino Hive connector configuration using prefix `trino.bypass.`. For example, using `trino.bypass.hive.config.resources` to pass the `hive.config.resources` to the Gravitino Hive catalog in Trino runtime.+When using Gravitino with Trino, pass the Trino Hive connector configuration using the `trino.bypass.` prefix. For example, using `trino.bypass.hive.config.resources` to pass the `hive.config.resources` to the Gravitino Hive catalog in Trino runtime.-When you use the Gravitino with Spark. You can pass the Spark Hive connector configuration using prefix `spark.bypass.`. For example, using `spark.bypass.hive.exec.dynamic.partition.mode` to pass the `hive.exec.dynamic.partition.mode` to the Spark Hive connector in Spark runtime.+When using Gravitino with Spark, pass the Spark Hive connector configuration using the `spark.bypass.` prefix. For example, using `spark.bypass.hive.exec.dynamic.partition.mode` to pass the `hive.exec.dynamic.partition.mode` to the Spark Hive connector in Spark runtime.-When you use the Gravitino authorization Hive with Apache Ranger. You can see the [Authorization Hive with Ranger properties](security/authorization-pushdown.md#example-of-using-the-ranger-hadoop-sql-plugin)-### Catalog operations+When using Gravitino authorization for Hive with Apache Ranger, see the [Authorization Hive with Ranger properties](security/authorization-pushdown.md#configure-the-ranger-hadoop-sql-plugin)++### Catalog OperationsRefer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#catalog-operations) for more details.## Schema-### Schema capabilities+### Schema CapabilitiesThe Hive catalog supports creating, updating, and deleting databases in the HMS.-### Schema properties+### Schema PropertiesSchema properties supply or set metadata for the underlying Hive database.The following table lists predefined schema properties for the Hive database. Additionally, you can define your own key-value pair properties and transmit them to the underlying Hive database.@@ -96,18 +97,18 @@ The following table lists predefined schema properties for the Hive database. Ad|---------------|--------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|----------|---------------|| `location` | The directory for Hive database storage, such as `/user/hive/warehouse`. | HMS uses the value of `hive.metastore.warehouse.dir` in the `hive-site.xml` by default. | No | 0.1.0 |-### Schema operations+### Schema Operationssee [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#schema-operations).## Table-### Table capabilities+### Table Capabilities- The Hive catalog supports creating, updating, and deleting tables in the HMS.- Doesn't support column default value.-### Table partitioning+### Table PartitioningThe Hive catalog supports [partitioned tables](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-PartitionedTables). Users can create partitioned tables in the Hive catalog with the specific partitioning attribute.Although Gravitino supports several partitioning strategies, Apache Hive inherently only supports a single partitioning strategy (partitioned by column). Therefore, the Hive catalog only supports `Identity` partitioning.@@ -116,7 +117,7 @@ Although Gravitino supports several partitioning strategies, Apache Hive inherenThe `fieldName` specified in the partitioning attribute must be the name of a column defined in the table.:::-### Table sort orders and distributions+### Table Sort Orders and DistributionsThe Hive catalog supports [bucketed sorted tables](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-BucketedSortedTables). Users can create bucketed sorted tables in the Hive catalog with specific `distribution` and `sortOrders` attributes.Although Gravitino supports several distribution strategies, Apache Hive inherently only supports a single distribution strategy (clustered by column). Therefore the Hive catalog only supports `Hash` distribution.@@ -125,7 +126,7 @@ Although Gravitino supports several distribution strategies, Apache Hive inherenThe `fieldName` specified in the `distribution` and `sortOrders` attribute must be the name of a column defined in the table.:::-### Table column types+### Table Column TypesThe Hive catalog supports all data types defined in the [Hive Language Manual](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types).The following table lists the data types mapped from the Hive catalog to Gravitino.@@ -158,7 +159,7 @@ The following table lists the data types mapped from the Hive catalog to Graviti2. Since version 1.0.0, using the `struct` data type with field comments will throw an error, as it does not work for Hive tables (see [HIVE-26593](https://issues.apache.org/jira/browse/HIVE-26593)).:::-### Table properties+### Table PropertiesTable properties supply or set metadata for the underlying Hive tables.The following table lists predefined table properties for a Hive table. Additionally, you can define your own key-value pair properties and transmit them to the underlying Hive database.@@ -185,15 +186,15 @@ The following table lists predefined table properties for a Hive table. Addition| `EXTERNAL` | Indicates whether the table is external. | (none) | No | Yes | No | 0.2.0 || `transient_lastDdlTime` | Used to store the last DDL time of the table. | (none) | No | Yes | No | 0.2.0 |-### Table indexes+### Table Indexes- Doesn't support table indexes.-### Table operations+### Table OperationsRefer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.-#### Alter operations+#### Alter OperationsGravitino has already defined a unified set of [metadata operation interfaces](./manage-relational-metadata-using-gravitino.md#alter-a-table), and almost all [Hive Alter operations](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-AlterTable/Partition/Column) have corresponding table update requests which enable you to change the struct of an existing table.The following table lists the mapping relationship between Hive Alter operations and Gravitino table update requests.@@ -232,7 +233,7 @@ Support for altering partitions is under development.## View-### View capabilities+### View Capabilities- Supports list, create, load, alter, and drop for views stored in the Hive Metastore Service as `VIRTUAL_VIEW`.- Each view must contain exactly one SQL representation.@@ -240,12 +241,12 @@ Support for altering partitions is under development.- When loading an existing HMS view, Gravitino automatically detects whether the view uses the `hive`, `trino`, or `spark` dialect.- For the `hive` dialect, `defaultCatalog` and `defaultSchema` must be `null`.-### View operations+### View OperationsRefer to [Manage view metadata using Gravitino](./manage-view-metadata-using-gravitino.md) for more details.-## Hive catalog with S3 storage+## Hive Catalog with S3 Storage-To create a Hive catalog with S3 storage, you can refer to the [Hive catalog with S3](./hive-catalog-with-s3.md) documentation. No special configurations are required for the Hive catalog to work with S3 storage.-The only difference is the storage location of the files, which is in S3. You can use `location` to specify the S3 path for the database or table.+To create a Hive catalog with S3 storage, you can refer to the [Hive catalog with S3](./hive-catalog-with-cloud-storage.md) documentation. No special configurations are required for the Hive catalog to work with S3 storage.+The only difference is the storage location of the files, which is in S3. Use `location` to specify the S3 path for the database or table.diff --git a/docs/chart.md b/docs/chart.mdindex 45b7802ba5..9a6fca650e 100644--- a/docs/chart.md+++ b/docs/chart.md@@ -1,11 +1,11 @@----title: "Helm Chart"-slug: /chart-keyword: chart+title: "Install Gravitino on Kubernetes"+slug: "/chart"+keyword: "chart"license: "This software is licensed under the Apache License version 2."----# Install Gravitino on Kubernetes+## IntroductionThis Helm chart deploys Apache Gravitino on Kubernetes with customizable configurations.@@ -30,7 +30,7 @@ Or install directly:helm upgrade --install gravitino oci://registry-1.docker.io/apache/gravitino-helm --version <VERSION> -n <NAMESPACE> --create-namespace```-### Install from Local Repository (For Development or Unreleased Versions)+### Install from Local Repository (for Development or Unreleased Versions)Clone the repository and navigate to the chart directory:@@ -53,7 +53,7 @@ helm upgrade --install gravitino ./gravitino -n <NAMESPACE> --create-namespace## View Chart Values-You can customize values.yaml parameters to override chart default settings. Additionally, Gravitino configurations in gravitino.conf can be modified through Helm values.yaml.+Customize values.yaml parameters to override chart default settings. Additionally, Gravitino configurations in gravitino.conf can be modified through Helm values.yaml.To display the default values of the Gravitino chart, run:@@ -93,7 +93,7 @@ helm upgrade --install gravitino oci://registry-1.docker.io/apache/gravitino-hel-f /path/to/values.yaml```-### Deploying Gravitino with MySQL as the Storage Backend+### Deploy Gravitino with MySQL as the Storage BackendTo deploy both Gravitino and MySQL, where MySQL is used as the storage backend, enable the built-in MySQL instance:@@ -114,9 +114,9 @@ helm upgrade --install gravitino oci://registry-1.docker.io/apache/gravitino-hel--set global.defaultStorageClass="-"```-You must then manually create a PersistentVolume (PV).+Then manually create a PersistentVolume (PV).-### Deploy Gravitino using an existed MySQL Database+### Deploy Gravitino Using an Existed MySQL DatabaseEnsure you have the following MySQL credentials ready: Username, Password, Database Name. When creating your database, we recommend calling it `gravitino`.diff --git a/docs/cli.md b/docs/cli.mdindex f8aa6c71c1..539e9d7805 100644--- a/docs/cli.md+++ b/docs/cli.md@@ -1,20 +1,22 @@----title: 'Apache Gravitino Command Line Interface'-slug: /cli-keyword: cli+title: "Command Line Interface"+slug: "/cli"+keyword: "cli"last_update:date: 2024-10-23author: justinmclean-license: 'This software is licensed under the Apache License version 2.'+license: "This software is licensed under the Apache License version 2."---+## Introduction+This document provides guidance on managing metadata within Apache Gravitino using the Command Line Interface (CLI). The CLI offers a terminal based alternative to using code or the REST interface for metadata management.-Currently, the CLI allows users to view, create and update metadata information for metalakes, catalogs, schemas, tables, models, columns, users, roles, groups, tags, topics and filesets. Future updates will expand on these capabilities.+The CLI allows users to view, create and update metadata information for metalakes, catalogs, schemas, tables, models, columns, users, roles, groups, tags, topics and filesets. Future updates will expand on these capabilities.-## Running the CLI+## Run the CLI-To run the Gravitino CLI, please use the `gcli.sh` script located in Gravitino's bin directory. If you define the `GRAVITINO_HOME` environment variable, you can run the script from any location using `$GRAVITINO_HOME/bin/gcli.sh`.+To run the Gravitino CLI, use the `gcli.sh` script in Gravitino's bin directory. If you define the `GRAVITINO_HOME` environment variable, you can run the script from any location using `$GRAVITINO_HOME/bin/gcli.sh`.## Usage@@ -80,7 +82,7 @@ The following commands are used for entity management:- remove: Remove a property from an entity- properties: Display an entities properties-### Setting the Metalake name+### Set the Metalake NameAs dealing with one Metalake is a typical scenario, you can set the Metalake name in several ways so it doesn't need to be passed on the command line.@@ -90,9 +92,9 @@ As dealing with one Metalake is a typical scenario, you can set the Metalake namThe command line option overrides the environment variable and the environment variable overrides the configuration file.-### Setting the Gravitino URL+### Set the Gravitino URL-As you need to set the Gravitino URL for every command, you can set the URL in several ways.+As you need to set the Gravitino URL for every command, you can set the URL in several ways:1. Passed in on the command line via the `--url` parameter.2. Set via the 'GRAVITINO_URL' environment variable.@@ -100,15 +102,15 @@ As you need to set the Gravitino URL for every command, you can set the URL in sThe command line option overrides the environment variable and the environment variable overrides the configuration file.-### Setting the Gravitino Authentication Type+### Set the Authentication Type-The authentication type can also be set in several ways.+The authentication type can also be set in several ways:1. Passed in on the command line via the `--simple` flag.2. Set via the 'GRAVITINO_AUTH' environment variable.3. Stored in the Gravitino CLI configuration file.-### Gravitino CLI configuration file+### CLI Configuration FileThe gravitino CLI can read commonly used CLI options from a configuration file. By default, the file is `.gravitino` in the user's home directory. The metalake, URL and ignore parameters can be set in this file.@@ -151,15 +153,15 @@ principal=user/[email protected]keytabFile=file.keytab```-### Potentially unsafe operations+### Potentially Unsafe OperationsFor operations that delete data or rename a metalake the user with be prompted to make sure they wish to run this command. The `--force` option can be specified to override this behaviour.-### Manage metadata+### Manage MetadataAll the commands are performed by using the [Java API](api/java-api) internally.-### Display help+### Display HelpTo display help on command usage:@@ -167,7 +169,7 @@ To display help on command usage:gcli.sh --help```-### Display client version+### Display Client VersionTo display the client version:@@ -175,7 +177,7 @@ To display the client version:gcli.sh --version```-### Display server version+### Display Server VersionTo display the server version:@@ -183,7 +185,7 @@ To display the server version:gcli.sh --server```-### Client/server version mismatch+### Client/Server Version MismatchIf the client and server are running different versions of the Gravitino software then you may need to ignore the client/server version check for the command to run. This can be done in several ways:@@ -191,7 +193,7 @@ If the client and server are running different versions of the Gravitino softwar2. Set via the `GRAVITINO_IGNORE` environment variable.3. Stored in the Gravitino CLI configuration file.-### Multiple properties+### Multiple PropertiesFor commands that accept multiple properties they can be specified in a couple of different ways:@@ -201,7 +203,7 @@ For commands that accept multiple properties they can be specified in a couple o3. gcli.sh --properties n1=v1 --properties n2=v2 --properties n3=v3-### Setting properties and tags+### Set Properties and TagsDifferent options are needed to add a tag and set a property of a tag with `gcli.sh tag set`. To add atag, specify the tag (via --tag) and the entity to tag (via --name). To set the property of a tag@@ -211,111 +213,111 @@ For commands that accept multiple properties they can be specified in a couple oTo delete a tag, again, you need to specify the tag and entity, to remove a tag's property you needto select the tag and property.-### CLI commands+### CLI CommandsPlease set the metalake in the Gravitino configuration file or the environment variable before running any of these commands.-### Metalake commands+### Metalake Commands-#### Show all metalakes+#### Show All Metalakes```bashgcli.sh metalake list```-#### Show a metalake details+#### Metalake Details```bashgcli.sh metalake details```-#### Show a metalake's audit information+#### Metalake Audit Information```bashgcli.sh metalake details --audit```-#### Create a metalake+#### Create a Metalake```bashgcli.sh metalake create --metalake my_metalake --comment "This is my metalake"```-#### Delete a metalake+#### Delete a Metalake```bashgcli.sh metalake delete```-#### Rename a metalake+#### Rename a Metalake```bashgcli.sh metalake update --rename demo```-#### Update a metalake's comment+#### Update a Metalake Comment```bashgcli.sh metalake update --comment "new comment"```-#### Display a metalake's properties+#### Metalake Properties```bashgcli.sh metalake properties```-#### Set a metalake's property+#### Set a Metalake Property```bashgcli.sh metalake set --property test --value value```-#### Remove a metalake's property+#### Remove a Metalake Property```bashgcli.sh metalake remove --property test```-#### Enable a metalake+#### Enable a Metalake```bashgcli.sh metalake update -m metalake_demo --enable```-#### Enable a metalake and all catalogs+#### Enable a Metalake and All Catalogs```bashgcli.sh metalake update -m metalake_demo --enable --all```-#### Disable a metalake+#### Disable a Metalake```bashgcli.sh metalake update -m metalake_demo --disable```-### Catalog commands+### Catalog Commands-#### Show all catalogs in a metalake+#### Show All Catalogs in a Metalake```bashgcli.sh catalog list```-#### Show a catalog details+#### Catalog Details```bashgcli.sh catalog details --name catalog_postgres```-#### Show a catalog's audit information+#### Catalog Audit Information```bashgcli.sh catalog details --name catalog_postgres --audit```-#### Creating a catalog+#### Create a CatalogThe type of catalog to be created is specified by the `--provider` option. Different catalogs require different properties, for example, a Hive catalog requires a metastore-uri property.@@ -361,107 +363,107 @@ gcli.sh catalog create --name doris --provider doris --properties jdbc-url=jdbc:gcli.sh catalog create --name paimon --provider paimon --properties catalog-backend=jdbc,uri=jdbc:mysql://127.0.0.1:3306/metastore_db,authentication.type=simple```-#### Create a Hudi catalog+##### Create a Hudi catalog```bashgcli.sh catalog create --name hudi --provider hudi --properties catalog-backend=hms,uri=thrift://127.0.0.1:9083```-#### Create an Oceanbase catalog+##### Create an OceanBase catalog```bashgcli.sh catalog create --name oceanbase --provider oceanbase --properties jdbc-url=jdbc:mysql://localhost:2881,jdbc-driver=com.mysql.jdbc.Driver,jdbc-user=admin,jdbc-password=password```-#### Delete a catalog+#### Delete a Catalog```bashgcli.sh catalog delete --name hive```-#### Rename a catalog+#### Rename a Catalog```bashgcli.sh catalog update --name catalog_mysql --rename mysql```-#### Change a catalog comment+#### Change a Catalog Comment```bashgcli.sh catalog update --name catalog_mysql --comment "new comment"```-#### Display a catalog's properties+#### Catalog Properties```bashgcli.sh catalog properties --name catalog_mysql```-#### Set a catalog's property+#### Set a Catalog Property```bashgcli.sh catalog set --name catalog_mysql --property test --value value```-#### Remove a catalog's property+#### Remove a Catalog Property```bashgcli.sh catalog remove --name catalog_mysql --property test```-#### Enable a catalog+#### Enable a Catalog```bashgcli.sh catalog update -m metalake_demo --name catalog --enable```-#### Enable a catalog and it's metalake+#### Enable a Catalog and Its Metalake```bashgcli.sh catalog update -m metalake_demo --name catalog --enable --all```-#### Disable a catalog+#### Disable a Catalog```bashgcli.sh catalog update -m metalake_demo --name catalog --disable```-### Schema commands+### Schema Commands-#### Show all schemas in a catalog+#### Show All Schemas in a Catalog```bashgcli.sh schema list --name catalog_postgres```-#### Show schema details+#### Schema Details```bashgcli.sh schema details --name catalog_postgres.hr```-#### Show schema's audit information+#### Schema Audit Information```bashgcli.sh schema details --name catalog_postgres.hr --audit```-#### Create a schema+#### Create a Schema```bashgcli.sh schema create --name catalog_postgres.new_db```-#### Display schema properties+#### Schema Properties```bashgcli.sh schema properties --name catalog_postgres.hr```-Setting and removing schema properties is not currently supported by the Java API or the Gravitino CLI.+Setting and removing schema properties is not supported by the Java API or the Gravitino CLI.-### Table commands+### Table CommandsWhen creating a table the columns are specified in CSV file specifying the name of the column, the datatype, a comment, true or false if the column is nullable, true or false if the column is auto incremented, a default value and a default type. Not all of the columns need to be specified just the name and datatype columns. If not specified comment default to null, nullability to true and auto increment to false. If only the default value is specified it defaults to the same data type as the column.@@ -474,243 +476,243 @@ ID,Integer,unique id,false,truelocation,String,city they work in,false,false,Sydney,String```-#### Show all tables+#### Show All Tables```bashgcli.sh table list --name catalog_postgres.hr```-#### Show tables details+#### Table Details```bashgcli.sh table details --name catalog_postgres.hr.departments```-#### Show tables audit information+#### Table Audit Information```bashgcli.sh table details --name catalog_postgres.hr.departments --audit```-#### Show tables distribution information+#### Table Distribution Information```bashgcli.sh table details --name catalog_postgres.hr.departments --distribution```-#### Show tables partition information+#### Table Partition Information```bashgcli.sh table details --name catalog_postgres.hr.departments --partition```-#### Show tables sort order information+#### Table Sort Order Information```bashgcli.sh table details --name catalog_postgres.hr.departments --sortorder```-### Show table indexes+### Table Indexes```bashgcli.sh table details --name catalog_mysql.db.iceberg_namespace_properties --index```-#### Delete a table+#### Delete a Table```bashgcli.sh table delete --name catalog_postgres.hr.salaries```-#### Display a tables's properties+#### Table Properties```bashgcli.sh table properties --name catalog_postgres.hr.salaries```-#### Set a tables's property+#### Set a Table Property```bashgcli.sh table set --name catalog_postgres.hr.salaries --property test --value value```-#### Remove a tables's property+#### Remove a Table Property```bashgcli.sh table remove --name catalog_postgres.hr.salaries --property test```-#### Create a table+#### Create a Table```bashgcli.sh table create --name catalog_postgres.hr.salaries --comment "comment" --columnfile ~/table.csv```-### User commands+### User Commands-#### Create a user+#### Create a User```bashgcli.sh user create --user new_user```-#### Show a user's details+#### User Details```bashgcli.sh user details --user new_user```-#### List all users+#### List All Users```bashgcli.sh user list```-#### Show a roles's audit information+#### Role Audit Information```bashgcli.sh user details --user new_user --audit```-#### Delete a user+#### Delete a User```bashgcli.sh user delete --user new_user```-### Group commands+### Group Commands-#### Create a group+#### Create a Group```bashgcli.sh group create --group new_group```-#### Display a group's details+#### Group Details```bashgcli.sh group details --group new_group```-#### List all groups+#### List All Groups```bashgcli.sh group list```-#### Show a groups's audit information+#### Group Audit Information```bashgcli.sh group details --group new_group --audit```-#### Delete a group+#### Delete a Group```bashgcli.sh group delete --group new_group```-### Tag commands+### Tag Commands-#### Display a tag's details+#### Tag Details```bashgcli.sh tag details --tag tagA```-#### Create tags+#### Create Tags```bashgcli.sh tag create --tag tagA tagB```-#### List all tags+#### List All Tags```bashgcli.sh tag list```-#### Delete tags+#### Delete Tags```bashgcli.sh tag delete --tag tagA tagB```-#### Add tags to an entity+#### Add Tags to an Entity```bashgcli.sh tag set --name catalog_postgres.hr --tag tagA tagB```-#### Remove tags from an entity+#### Remove Tags from an Entity```bashgcli.sh tag remove --name catalog_postgres.hr --tag tagA tagB```-#### Remove all tags from an entity+#### Remove All Tags from an Entity```bashgcli.sh tag remove --name catalog_postgres.hr```-#### List all tags on an entity+#### List All Tags on an Entity```bashgcli.sh tag list --name catalog_postgres.hr```-#### List the properties of a tag+#### List the Properties of a Tag```bashgcli.sh tag properties --tag tagA```-#### Set a properties of a tag+#### Set a Property of a Tag```bashgcli.sh tag set --tag tagA --property test --value value```-#### Delete a property of a tag+#### Delete a Property of a Tag```bashgcli.sh tag remove --tag tagA --property test```-#### Rename a tag+#### Rename a Tag```bashgcli.sh tag update --tag tagA --rename newTag```-#### Update a tag's comment+#### Update a Tag Comment```bashgcli.sh tag update --tag tagA --comment "new comment"```-### Owner commands+### Owner Commands-#### List an owner+#### List an Owner```bashgcli.sh catalog details --owner --name postgres```-#### Set an owner to a user+#### Set an Owner to a User```bashgcli.sh catalog set --owner --user admin --name postgres```-#### Set an owner to a group+#### Set an Owner to a Group```bashgcli.sh catalog set --owner --group groupA --name postgres```-### Role commands+### Role CommandsWhen granting or revoking privileges the following privileges can be used.@@ -718,224 +720,220 @@ create_catalog, use_catalog, create_schema, use_schema, create_table, modify_tabNote that some are only valid for certain entities.-#### Display role details+#### Role Details```bashgcli.sh role details --role admin```-#### List all roles+#### List All Roles```bashgcli.sh role list```-#### Show a roles's audit information+#### Role Audit Information```bashgcli.sh role details --role admin --audit```-#### Create a role+#### Create a Role```bashgcli.sh role create --role admin```-#### Delete a role+#### Delete a Role```bashgcli.sh role delete --role admin```-#### Add a role to a user+#### Add a Role to a User```bashgcli.sh user grant --user new_user --role admin```-#### Remove a role from a user+#### Remove a Role from a User```bashgcli.sh user revoke --user new_user --role admin```-#### Remove all roles from a user+#### Remove All Roles from a User```bashgcli.sh user revoke --user new_user --all```-#### Add a role to a group+#### Add a Role to a Group```bashgcli.sh group grant --group groupA --role admin```-#### Remove a role from a group+#### Remove a Role from a Group```bashgcli.sh group revoke --group groupA --role admin```-#### Remove all roles from a group+#### Remove All Roles from a Group```bashgcli.sh group revoke --group groupA --all```-### Grant a privilege+### Privilege Commands++#### Grant a Privilege```bashgcli.sh role grant --name catalog_postgres --role admin --privilege create_table modify_table```-### Revoke a privilege+#### Revoke a Privilege```bashgcli.sh role revoke --metalake metalake_demo --name catalog_postgres --role admin --privilege create_table modify_table```-### Revoke all privileges+#### Revoke All Privileges```bashgcli.sh role revoke --metalake metalake_demo --name catalog_postgres --role admin --all```-### Topic commands+### Topic Commands-#### Display a topic's details+#### Topic Details```bashgcli.sh topic details --name kafka.default.topic3```-#### Create a topic+#### Create a Topic```bashgcli.sh topic create --name kafka.default.topic3```-#### List all topics+#### List All Topics```bashgcli.sh topic list --name kafka.default```-#### Delete a topic+#### Delete a Topic```bashgcli.sh topic delete --name kafka.default.topic3```-#### Change a topic's comment+#### Change a Topic Comment```bashgcli.sh topic update --name kafka.default.topic3 --comment new_comment```-#### Display a topics's properties+#### Topic Properties```bashgcli.sh topic properties --name kafka.default.topic3```-#### Set a topics's property+#### Set a Topic Property```bashgcli.sh topic set --name kafka.default.topic3 --property test --value value```-#### Remove a topics's property+#### Remove a Topic Property```bashgcli.sh topic remove --name kafka.default.topic3 --property test```-### Fileset commands+### Fileset Commands-#### Create a fileset+#### Create a Fileset```bashgcli.sh fileset create --name hadoop.schema.fileset --properties managed=true,location=file:/tmp/root/schema/example```-#### List filesets+#### List Filesets```bashgcli.sh fileset list --name hadoop.schema```-#### Display a fileset's details+#### Fileset Details```bashgcli.sh fileset details --name hadoop.schema.fileset```-#### Delete a fileset+#### Delete a Fileset```bashgcli.sh fileset delete --name hadoop.schema.fileset```-#### Update a fileset's comment+#### Update a Fileset Comment```bashgcli.sh fileset update --name hadoop.schema.fileset --comment new_comment```-#### Rename a fileset+#### Rename a Fileset```bashgcli.sh fileset update --name hadoop.schema.fileset --rename new_name```-#### Display a fileset's properties+#### Fileset Properties```bashgcli.sh fileset properties --name hadoop.schema.fileset```-#### Set a fileset's property+#### Set a Fileset Property```bashgcli.sh fileset set --name hadoop.schema.fileset --property test --value value```-#### Remove a fileset's property+#### Remove a Fileset Property```bashgcli.sh fileset remove --name hadoop.schema.fileset --property test```-### Column commands+### Column CommandsNote that some commands are not supported depending on what the database supports.-When setting the datatype of a column the following basic types are currently supported:+When setting the datatype of a column the following basic types are supported:null, boolean, byte, ubyte, short, ushort, integer, uinteger, long, ulong, float, double, date, time, timestamp, tztimestamp, intervalyear, intervalday, uuid, string, binaryIn addition decimal(precision,scale), fixed(length), fixedchar(length) and varchar(length).-#### Show all columns+#### Show All Columns```bashgcli.sh column list --name catalog_postgres.hr.departments```-#### Show column's audit information--```bash-gcli.sh column details --name catalog_postgres.hr.departments.name --audit-```--#### Show a column's audit information+#### Column Audit Information```bashgcli.sh column details --name catalog_postgres.hr.departments.name --audit```-#### Add a column+#### Add a Column```bashgcli.sh column create --name catalog_postgres.hr.departments.value --datatype long@@ -944,13 +942,13 @@ gcli.sh column create --name catalog_postgres.hr.departments.name --datatype "vagcli.sh column create --name catalog_postgres.hr.departments.fullname --datatype "varchar(250)" --default "Fred Smith" --null=false```-#### Delete a column+#### Delete a Column```bashgcli.sh column delete --name catalog_postgres.hr.departments.money```-#### Update a column+#### Update a Column```bashgcli.sh column update --name catalog_postgres.hr.departments.value --rename values@@ -959,7 +957,7 @@ gcli.sh column update --name catalog_postgres.hr.departments.values --position ngcli.sh column update --name catalog_postgres.hr.departments.name --null true```-#### Simple authentication+#### Simple Authentication```bashgcli.sh <normal command> --simple@@ -967,99 +965,99 @@ gcli.sh <normal command> --simple### Authentication-#### Simple authentication with user name+#### Simple Authentication with User Name```bashgcli.sh <normal command> --simple --login userName```-### Model commands+### Model Commands-#### Create a model+#### Create a Model```bashgcli.sh model create --name catalog_model.schema.model```-#### List models+#### List Models```bashgcli.sh model list --name catalog_model.schema```-#### Display a model's details+#### Model Details```bashgcli.sh model details --name catalog_model.schema.model```-#### Display a model's audit information+#### Model Audit Information```bashgcli.sh model details --name catalog_model.schema.model --audit```-#### Delete a model+#### Delete a Model```bashgcli.sh model delete --name catalog_model.schema.model```-#### Update a model's comment+#### Update a Model Comment```bashgcli.sh model update --name catalog_model.schema.model --comment new_comment```-#### Rename a model+#### Rename a Model```bashgcli.sh model update --name catalog_model.schema.model --rename new_name```-#### Set a model's property+#### Set a Model Property```bashgcli.sh model set --name catalog_model.schema.model --property k --value v```-#### Remove a model's property+#### Remove a Model Property```bashgcli.sh model remove --name catalog_model.schema.model --property k```-#### Link a model version+#### Link a Model Version```bashgcli.sh model update --name catalog_model.schema.model --uris s3=s3://path,hdfs=hdfs://path --alias alias1```-#### Update a model version's comment+#### Update a Model Version Comment```bashgcli.sh model update --name catalog_model.schema.model --version 0 --comment new_comment```-#### Add aliases to a model version+#### Add Aliases to a Model Version```bashgcli.sh model update --name catalog_model.schema.model --version 0 --newalias alias1```-#### Remove aliases of a model version+#### Remove Aliases of a Model Version```bashgcli.sh model remove --name catalog_model.schema.model --version 0 --removealias alias1```-#### Set a model version's property+#### Set a Model Version Property```bashgcli.sh model set --name catalog_model.schema.model --version 0 --property k --value v```-#### Remove a model version's property+#### Remove a Model Version Property```bashgcli.sh model remove --name catalog_model.schema.model --version 0 --property kdiff --git a/docs/daft-connector/daft-connector.md b/docs/daft-connector/daft-connector.mdindex b792b97dbc..4a697e2ea2 100644--- a/docs/daft-connector/daft-connector.md+++ b/docs/daft-connector/daft-connector.md@@ -1,7 +1,7 @@----title: "Daft connector"-slug: /daft-connector-keyword: daft connector+title: "Daft Connector"+slug: "/daft-connector"+keyword: "daft connector"license: "This software is licensed under the Apache License version 2."---@@ -24,9 +24,7 @@ license: "This software is licensed under the Apache License version 2."under the License.-->-# Daft Connector--## What is Daft?+## Overview[Daft](https://docs.daft.ai/) is a distributed dataframe library for Python, designed for complex data workflows on large datasets. It provides a familiar DataFrame API while offering powerful distributed computing capabilities for processing data at scale.@@ -40,7 +38,7 @@ The Daft connector enables seamless integration between Daft and Apache Gravitin## Documentation-For complete documentation on installation, configuration, usage examples, and API reference, please visit:+For complete documentation on installation, configuration, usage examples, and API reference, visit:**[Daft Gravitino Connector Documentation](https://docs.daft.ai/en/latest/connectors/gravitino/)**diff --git a/docs/docker-image-details.md b/docs/docker-image-details.mdindex 79e4add9f3..2779b615b1 100644--- a/docs/docker-image-details.md+++ b/docs/docker-image-details.md@@ -1,15 +1,15 @@----title: "Docker image details"-slug: /docker-image-details-keyword: docker+title: "Docker Image Details"+slug: "/docker-image-details"+keyword: "docker"license: "This software is licensed under the Apache License version 2."----# User Docker images+## User Docker Images-## Apache Gravitino Docker image+## Apache Gravitino Docker Image-You can deploy the service with the Gravitino Docker image.+Deploy the service with the Gravitino Docker image.Container startup commands@@ -70,9 +70,9 @@ Changelog- `8090` Gravitino Web UI- `9001` Iceberg REST service-## Apache Gravitino Iceberg REST server Docker image+## Apache Gravitino Iceberg REST Server Docker Image-You can deploy the standalone Gravitino Iceberg REST server with the Docker image.+Deploy the standalone Gravitino Iceberg REST server with the Docker image.Container startup commands@@ -133,9 +133,9 @@ Changelog- Expose ports:- `9001` Iceberg REST service-## Apache Gravitino MCP server image+## Apache Gravitino MCP Server Image-You can deploy the Gravitino MCP server with the Docker image.+Deploy the Gravitino MCP server with the Docker image.Container startup commands@@ -156,9 +156,9 @@ Changelog- Supports associate&disassociate tag, policy to metadata- Supports submit&cancel jobs.-## Apache Gravitino Lance REST server Docker image+## Apache Gravitino Lance REST Server Docker Image-You can deploy the standalone Gravitino Lance REST server with the Docker image.+Deploy the standalone Gravitino Lance REST server with the Docker image.```shell@@ -169,10 +169,10 @@ Memory settingsUse `GRAVITINO_MEM` to size the JVM (default `-Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=512m`). Example: `-e GRAVITINO_MEM="-Xms2g -Xmx2g -XX:MaxMetaspaceSize=512m"`. Launch scripts append `GRAVITINO_MEM` to `JAVA_OPTS`, so set it whenever you need different heap/metaspace sizes.-Currently, Gravitino Lance REST server supports setting the following environment variables+Gravitino Lance REST server supports setting the following environment variables- LANCE_REST_GRAVITINO_METALAKE_NAME: It will overwrite the configuration "gravitino.lance-rest.gravitino-metalake" in configuration file `conf/gravitino-lance-rest-server.conf`. **You should set it to your Gravitino metalake name.**- LANCE_REST_NAMESPACE_BACKEND: It will overwrite the configuration "gravitino.lance-rest.namespace-backend" in configuration file `conf/gravitino-lance-rest-server.conf`. The default value is "gravitino" and you should not change it as of now.-- LANCE_REST_GRAVITINO_URI: It will overwrite the configuration "gravitino.lance-rest.gravitino-uri" in configuration file `conf/gravitino-lance-rest-server.conf`. The default value is "http://localhost:8090" and you can change it to your Gravitino server address. **Be care that Gravitino server URI `http://localhost:8090` is a docker container internal address, if your Gravitino server is running outside the docker container, you should set it to your host IP address like `http://host-ip:8090`.**+- LANCE_REST_GRAVITINO_URI: It will overwrite the configuration "gravitino.lance-rest.gravitino-uri" in configuration file `conf/gravitino-lance-rest-server.conf`. The default value is "http://localhost:8090" and you can change it to your Gravitino server address. **Be care that Gravitino server URI `http://localhost:8090` is a Docker container internal address; if your Gravitino server is running outside the Docker container, you should set it to your host IP address like `http://host-ip:8090`.**- LANCE_REST_HOST: It will overwrite the configuration "gravitino.lance-rest.host" in configuration file `conf/gravitino-lance-rest-server.conf`. The default value is `0.0.0.0`.- LANCE_REST_PORT: It will overwrite the configuration "gravitino.lance-rest.httpPort" in configuration file `conf/gravitino-lance-rest-server.conf`. The default value is `9101`.@@ -190,15 +190,15 @@ Changelog- Support Lance tables integration through REST API- Built with Gravitino 1.1.0. For more information, see 1.1.0 [release notes](https://github.com/apache/gravitino/releases/tag/v1.1.0).-## Playground Docker image+## Playground Docker Image-You can use the [playground](https://github.com/apache/gravitino-playground) to experience the whole Gravitino system with other components.+Use the [playground](https://github.com/apache/gravitino-playground) to experience the whole Gravitino system with other components.The playground consists of multiple Docker images.The Docker images of the playground have suitable configurations for users to experience.-### Apache Hive image+### Apache Hive ImageChangelog@@ -211,7 +211,7 @@ Changelog- `hive-2.3.9`- Don't start YARN when container startup-### Trino image+### Trino ImageChangelog@@ -259,13 +259,13 @@ Changelog- Base on `trino:426`- Added Gravitino trino-connector-0.3.0 libraries into the `/usr/lib/trino/plugin/gravitino`-# Developer Docker images+## Developer Docker Images-You can use these kinds of Docker images to facilitate integration testing of all catalog and connector modules within Gravitino.+Use these kinds of Docker images to facilitate integration testing of all catalog and connector modules within Gravitino.-## Apache Gravitino CI Apache Hive image with kerberos enabled+## Hive Image with Kerberos-You can use this kind of image to test the catalog of Apache Hive with kerberos enable+Use this kind of image to test the catalog of Apache Hive with kerberos enableChangelog@@ -299,11 +299,11 @@ Changelog- datastrato/gravitino-ci-kerberos-hive:0.1.0- Set up a Hive cluster with kerberos enabled.- - Install a KDC server and create a principal for Hive. For more please see [kerberos-hive](../dev/docker/kerberos-hive)+ - Install a KDC server and create a principal for Hive. For more, see [kerberos-hive](../dev/docker/kerberos-hive)-## Apache Gravitino CI Apache Hive image+## Hive Image-You can use this kind of image to test the catalog of Apache Hive.+Use this kind of image to test the catalog of Apache Hive.Changelog@@ -316,7 +316,7 @@ Changelog- apache/gravitino-ci:hive-0.1.18- Support UTF-8 encoding for the `hive-site.xml` file and Hive Metastore.- For more information, please see [PR](https://github.com/apache/gravitino/pull/6625)+ For more information, see [PR](https://github.com/apache/gravitino/pull/6625)- Change ranger-hive-plugin and ranger-hdfs-plugin download URL.- apache/gravitino-ci:hive-0.1.17@@ -418,9 +418,9 @@ Changelog- `10000` HiveServer2- `10002` HiveServer2 HTTP-## Apache Gravitino CI Trino image+## Trino Image-You can use this image to test Trino.+Use this image to test Trino.Changelog@@ -448,9 +448,9 @@ Changelog- Expose ports:- `8080` Trino JDBC port-## Apache Gravitino CI Doris image+## Doris Image-You can use this image to test Apache Doris.+Use this image to test Apache Doris.Changelog@@ -482,9 +482,9 @@ Changelog- `8030` Doris FE HTTP port- `9030` Doris FE MySQL server port-## Apache Gravitino CI Apache Ranger image+## Ranger Image-You can use this image to control Trino's permissions.+Use this image to control Trino's permissions.Changelog@@ -496,12 +496,12 @@ Changelog- datastrato/gravitino-ci-ranger:0.1.1- Docker image datastrato/gravitino-ci-ranger:0.1.1- - Use `ranger-admin` release from `datastrato/apache-ranger:2.4.0` to build docker image.+ - Use `ranger-admin` release from `datastrato/apache-ranger:2.4.0` to build the Docker image.- Remove unnecessary hack in `start-ranger-service.sh`.- - Reduce docker image build time from `~1h` to `~5min`.+ - Reduce Docker image build time from `~1h` to `~5min`.- How to debug Ranger admin service:- - Use `docker exec -it <container_id> bash` to enter the docker container.- - Add these context `export JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5001` into `/opt/ranger-admin/ews/webapp/WEB-INF/classes/conf/ranger-admin-env-debug.sh` in the docker container.+ - Use `docker exec -it <container_id> bash` to enter the Docker container.+ - Add these context `export JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5001` into `/opt/ranger-admin/ews/webapp/WEB-INF/classes/conf/ranger-admin-env-debug.sh` in the Docker container.- Execute `./opt/ranger-admin/stop-ranger-admin.sh` and `./opt/ranger-admin/start-ranger-admin.sh` to restart Ranger admin.- Clone the `Apache Ranger` project from GitHub and checkout the `2.4.0` release.- Create a remote debug configuration (`Use model classpath` = `EmbeddedServer`) in your IDE and connect to the Ranger admin container.@@ -509,7 +509,6 @@ Changelog- datastrato/gravitino-ci-ranger:0.1.0- Docker image `datastrato/gravitino-ci-ranger:0.1.0`- Support Apache Ranger 2.4.0- - Use environment variable `RANGER_PASSWORD` to set up Apache Ranger admin password, please- notice Apache Ranger Password should be minimum 8 characters with min one alphabet and one numeric.+ - Use the environment variable `RANGER_PASSWORD` to set the Apache Ranger admin password. The password must be at least 8 characters and include at least one letter and one digit.- Expose ports:- `6080` Apache Ranger admin portdiff --git a/docs/expression.md b/docs/expression.mdindex 3f9a5e4716..a7b5e506b3 100644--- a/docs/expression.md+++ b/docs/expression.md@@ -1,24 +1,26 @@----title: "Expression system of Apache Gravitino"-slug: /expression+title: "Expression System"+slug: "/expression"date: 2024-02-02-keyword: expression function field literal reference-license: This software is licensed under the Apache License version 2.+keyword: "expression function field literal reference"+license: "This software is licensed under the Apache License version 2."---import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+## Introduction+This page introduces the expression system of Apache Gravitino. Expressions are vital component of metadata definition, through expressions, you can define [default values](./manage-relational-metadata-using-gravitino.md#table-column-default-value) for columns, function arguments for [function partitioning](./table-partitioning-distribution-sort-order-indexes.md#table-partitioning), [bucketing](./table-partitioning-distribution-sort-order-indexes.md#table-distribution), and sort term of [sort ordering](./table-partitioning-distribution-sort-order-indexes.md#sort-ordering) in tables.Gravitino expression system divides expressions into three basic parts: field reference, literal, and function. Function expressions can contain field references, literals, and other function expressions.-## Field reference+## Field ReferenceField reference is a reference to a field in a table.The following is an example of creating a field reference expression, demonstrating how to create a reference for the `student` field.<Tabs groupId='language' queryString>- <TabItem value="Json" label="Json">+ <TabItem value="Json" label="JSON">```json[@@ -47,7 +49,7 @@ Literal is a constant value.The following is an example of creating a literal expression, demonstrating how to create a `NULL` literal and three different data types of literal expressions for the value `1024`.<Tabs groupId='language' queryString>- <TabItem value="Json" label="Json">+ <TabItem value="Json" label="JSON">```json[@@ -90,13 +92,13 @@ Literal<?>[] literals =</TabItem></Tabs>-## Function expression+## Function ExpressionFunction expression represents a function call with/without arguments. The arguments can be field references, literals, or other function expressions.The following is an example of creating a function expression, demonstrating how to create function expressions for `rand()` and `date_trunc('year', birthday)`.<Tabs groupId='language' queryString>- <TabItem value="Json" label="Json">+ <TabItem value="Json" label="JSON">```json[@@ -139,13 +141,13 @@ FunctionExpression[] functionExpressions =</TabItem></Tabs>-## Unparsed expression+## Unparsed Expression-Unparsed expression is a special type of expression, currently serves exclusively for presenting the default value of a column when it's unsolvable.+Unparsed expression is a special type of expression, serves exclusively for presenting the default value of a column when it's unsolvable.The following shows the data structure of an unparsed expression in JSON and Java, enabling easy retrieval of its value.<Tabs groupId='language' queryString>- <TabItem value="Json" label="Json">+ <TabItem value="Json" label="JSON">```json{diff --git a/docs/fileset-catalog-index.md b/docs/fileset-catalog-index.mdindex 5c60797235..4a94f6391e 100644--- a/docs/fileset-catalog-index.md+++ b/docs/fileset-catalog-index.md@@ -1,12 +1,12 @@----title: "Fileset catalog index"-slug: /fileset-catalog-index+title: "Fileset Catalog Index"+slug: "/fileset-catalog-index"date: 2025-01-13-keyword: Fileset catalog index S3 GCS ADLS OSS+keyword: "Fileset catalog index S3 GCS ADLS OSS"license: "This software is licensed under the Apache License version 2."----### Fileset catalog overall+## Fileset Catalog OverallGravitino Fileset catalog index includes the following chapters:@@ -14,7 +14,7 @@ Gravitino Fileset catalog index includes the following chapters:- [Manage Fileset catalog with Gravitino API](./manage-fileset-metadata-using-gravitino.md): This chapter explains how to manage fileset metadata using Gravitino API and provides detailed examples.- [Using Fileset catalog with Gravitino virtual file system](how-to-use-gvfs.md): This chapter explains how to use Fileset catalog with the Gravitino virtual file system and provides detailed examples.-### Fileset catalog with cloud storage+## Fileset Catalog with Cloud StorageApart from the above, you can also refer to the following topics to manage and access cloud storage like S3, GCS, ADLS, and OSS:diff --git a/docs/fileset-catalog-with-adls.md b/docs/fileset-catalog-with-adls.mdindex fd1b007ab9..dd800cc57f 100644--- a/docs/fileset-catalog-with-adls.md+++ b/docs/fileset-catalog-with-adls.md@@ -1,11 +1,13 @@----title: "Fileset catalog with ADLS"-slug: /fileset-catalog-with-adls+title: "Fileset Catalog with ADLS"+slug: "/fileset-catalog-with-adls"date: 2025-01-03-keyword: Fileset catalog ADLS+keyword: "Fileset catalog ADLS"license: "This software is licensed under the Apache License version 2."---+## Introduction+This document describes how to configure a Fileset catalog with ADLS (aka. Azure Blob Storage (ABS), or Azure Data Lake Storage (v2)).## Prerequisites@@ -20,11 +22,11 @@ To set up a Fileset catalog with ADLS, follow these steps:$ ${GRAVITINO_HOME}/bin/gravitino-server.sh start```-Once the server is up and running, you can proceed to configure the Fileset catalog with ADLS. In the rest of this document we will use `http://localhost:8090` as the Gravitino server URL, please replace it with your actual server URL.+Once the server is up and running, you can proceed to configure the Fileset catalog with ADLS. In the rest of this document we will use `http://localhost:8090` as the Gravitino server URL, replace with your actual server URL.-## Configurations for creating a Fileset catalog with ADLS+## ADLS Catalog Configuration-### Configuration for a ADLS Fileset catalog+### ADLS Fileset Catalog ConfigurationApart from configurations mentioned in [fileset-catalog-catalog-configuration](./fileset-catalog.md#catalog-properties), the following properties are required to configure a Fileset catalog with ADLS:@@ -34,25 +36,25 @@ Apart from configurations mentioned in [fileset-catalog-catalog-configuration](.| `default-filesystem-provider` | (deprecated) The name default filesystem providers of this Fileset catalog if users do not specify the scheme in the URI. Default value is `builtin-local`, for Azure Blob Storage, if we set this value, we can omit the prefix 'abfss://' in the location. | `builtin-local` | No | 0.8.0-incubating || `azure-storage-account-name ` | The account name of Azure Blob Storage. | (none) | Yes | 0.8.0-incubating || `azure-storage-account-key` | The account key of Azure Blob Storage. | (none) | Yes | 0.8.0-incubating |-| `credential-providers` | The credential provider types, separated by comma, possible value can be `adls-token`, `azure-account-key`. As the default authentication type is using account name and account key as the above, this configuration can enable credential vending provided by Gravitino server and client will no longer need to provide authentication information like account_name/account_key to access ADLS by GVFS. Once it's set, more configuration items are needed to make it works, please see [adls-credential-vending](security/credential-vending.md#adls-credentials) | (none) | No | 0.8.0-incubating |+| `credential-providers` | The credential provider types, separated by comma, possible value can be `adls-token`, `azure-account-key`. As the default authentication type is using account name and account key as the above, this configuration can enable credential vending provided by Gravitino server and client will no longer need to provide authentication information like account_name/account_key to access ADLS by GVFS. Once it's set, more configuration items are needed to make it works, see [adls-credential-vending](security/credential-vending.md#adls-credentials) | (none) | No | 0.8.0-incubating |:::note`default-filesystem-provider` and `filesystem-providers` are deprecated since 1.2.0. The fileset catalog automatically loads filesystem providers on the classpath, including buildin filesystem provider and cloud providers when the corresponding bundle jar is present (for example, `gravitino-azure-bundle`).:::-### Configurations for a schema+### Schema ConfigurationRefer to [Schema configurations](./fileset-catalog.md#schema-properties) for more details.-### Configurations for a fileset+### Fileset ConfigurationRefer to [Fileset configurations](./fileset-catalog.md#fileset-properties) for more details.-## Example of creating Fileset catalog with ADLS+## Create the Catalog, Schema, and FilesetThis section demonstrates how to create the Fileset catalog with ADLS in Gravitino, with a complete example.-### Step1: Create a Fileset catalog with ADLS+### Step 1: Create a Fileset Catalog with ADLSFirst, you need to create a Fileset catalog with ADLS. The following example shows how to create a Fileset catalog with ADLS:@@ -117,7 +119,7 @@ adls_properties = gravitino_client.create_catalog(name="example_catalog",</TabItem></Tabs>-### Step2: Create a schema+### Step 2: Create a SchemaOnce the catalog is created, you can create a schema. The following example shows how to create a schema:@@ -167,7 +169,7 @@ catalog.as_schemas().create_schema(name="test_schema",</TabItem></Tabs>-### Step3: Create a fileset+### Step 3: Create a FilesetAfter creating the schema, you can create a fileset. The following example shows how to create a fileset:@@ -229,9 +231,9 @@ catalog.as_fileset_catalog().create_fileset(ident=NameIdentifier.of("test_schema</TabItem></Tabs>-## Accessing a fileset with ADLS+## Access a Fileset with ADLS-### Using the GVFS Java client to access the fileset+### Access the Fileset with the GVFS Java ClientTo access fileset with Azure Blob Storage(ADLS) using the GVFS Java client, based on the [basic GVFS configurations](./how-to-use-gvfs.md#configuration-1), you need to add the following configurations:@@ -302,7 +304,7 @@ Or use the bundle jar with Hadoop environment if there is no Hadoop environment:</dependency>```-### Using Spark to access the fileset+### Access the Fileset with SparkThe following code snippet shows how to use **PySpark 3.5.0 with Hadoop environment(Hadoop 3.3.4)** to access the fileset:@@ -383,9 +385,9 @@ Please choose the correct jar according to your environment.In some Spark versions, a Hadoop environment is necessary for the driver, adding the bundle jars with '--jars' may not work. If this is the case, you should add the jars to the spark CLASSPATH directly.:::-### Accessing a fileset using the Hadoop fs command+### Access a Fileset Using the Hadoop Fs Command-The following are examples of how to use the `hadoop fs` command to access the fileset in Hadoop 3.1.3.+The following are examples of how to use the `hadoop fs` command to access the fileset in Hadoop 3.1.3:1. Adding the following contents to the `${HADOOP_HOME}/etc/hadoop/core-site.xml` file:@@ -431,9 +433,9 @@ For ADLS, you need to add `gravitino-filesystem-hadoop3-runtime-${gravitino-vers./${HADOOP_HOME}/bin/hadoop dfs -put /path/to/local/file gvfs://fileset/adls_catalog/adls_schema/adls_fileset```-### Using the GVFS Python client to access a fileset+### Access the Fileset with the GVFS Python Client-In order to access fileset with Azure Blob storage (ADLS) using the GVFS Python client, apart from [basic GVFS configurations](./how-to-use-gvfs.md#configuration-1), you need to add the following configurations:+To access fileset with Azure Blob storage (ADLS) using the GVFS Python client, apart from [basic GVFS configurations](./how-to-use-gvfs.md#configuration-1), you need to add the following configurations:| Configuration item | Description | Default value | Required | Since version ||------------------------------|----------------------------------------|---------------|----------|------------------|@@ -464,7 +466,7 @@ fs.ls("gvfs://fileset/{adls_catalog}/{adls_schema}/{adls_fileset}/")```-### Using fileset with pandas+### Access the Fileset with PandasThe following are examples of how to use the pandas library to access the ADLS fileset@@ -484,15 +486,15 @@ ds = pd.read_csv(f"gvfs://fileset/${catalog_name}/${schema_name}/${fileset_name}ds.head()```-For other use cases, please refer to the [Gravitino Virtual File System](./how-to-use-gvfs.md) document.+For other use cases, refer to the [Gravitino Virtual File System](./how-to-use-gvfs.md) document.-## Fileset with credential vending+## Fileset with Credential VendingSince 0.8.0-incubating, Gravitino supports credential vending for ADLS fileset. If the catalog has been [configured with credential](./security/credential-vending.md), you can access ADLS fileset without providing authentication information like `azure-storage-account-name` and `azure-storage-account-key` in the properties.-### How to create an ADLS Fileset catalog with credential vending+### Create an ADLS Fileset Catalog with Credential Vending-Apart from configuration method in [create-adls-fileset-catalog](#configuration-for-a-adls-fileset-catalog),+Apart from configuration method in [create-adls-fileset-catalog](#adls-fileset-catalog-configuration),properties needed by [adls-credential](./security/credential-vending.md#adls-credentials) shouldalso be set to enable credential vending for ADLS fileset. Take `adls-token` credential provider for example:@@ -514,7 +516,7 @@ curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \}' http://localhost:8090/api/metalakes/metalake/catalogs```-### How to access ADLS fileset with credential vending+### Access an ADLS Fileset with Credential VendingWhen the catalog is configured with credentials and client-side credential vending is enabled,you can access ADLS filesets directly using the GVFS Java/Python client or Spark without providing authentication details.diff --git a/docs/fileset-catalog-with-gcs.md b/docs/fileset-catalog-with-gcs.mdindex 404921e3ac..dbf5ebaf80 100644--- a/docs/fileset-catalog-with-gcs.md+++ b/docs/fileset-catalog-with-gcs.md@@ -1,14 +1,17 @@----title: "Fileset catalog with GCS"-slug: /fileset-catalog-with-gcs+title: "Fileset Catalog with GCS"+slug: "/fileset-catalog-with-gcs"date: 2024-01-03-keyword: Fileset catalog GCS+keyword: "Fileset catalog GCS"license: "This software is licensed under the Apache License version 2."---+## Introduction+This document describes how to configure a Fileset catalog with GCS.## Prerequisites+To set up a Fileset catalog with OSS, follow these steps:1. Download the [`gravitino-gcp-bundle-${gravitino-version}.jar`](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-gcp-bundle) file.@@ -19,11 +22,11 @@ To set up a Fileset catalog with OSS, follow these steps:$ ${GRAVITINO_HOME}/bin/gravitino-server.sh start```-Once the server is up and running, you can proceed to configure the Fileset catalog with GCS. In the rest of this document we will use `http://localhost:8090` as the Gravitino server URL, please replace it with your actual server URL.+Once the server is up and running, you can proceed to configure the Fileset catalog with GCS. In the rest of this document we will use `http://localhost:8090` as the Gravitino server URL, replace with your actual server URL.-## Configurations for creating a Fileset catalog with GCS+## GCS Catalog Configuration-### Configurations for a GCS Fileset catalog+### GCS Fileset Catalog ConfigurationApart from configurations mentioned in [Fileset-catalog-catalog-configuration](./fileset-catalog.md#catalog-properties), the following properties are required to configure a Fileset catalog with GCS:@@ -32,25 +35,25 @@ Apart from configurations mentioned in [Fileset-catalog-catalog-configuration](.| `filesystem-providers` | (deprecated) The file system providers to add. Set it to `gcs` if it's a GCS fileset, a comma separated string that contains `gcs` like `gcs,s3` to support multiple kinds of fileset including `gcs`. | (none) | Yes | 0.7.0-incubating || `default-filesystem-provider` | (deprecated) The name default filesystem providers of this Fileset catalog if users do not specify the scheme in the URI. Default value is `builtin-local`, for GCS, if we set this value, we can omit the prefix 'gs://' in the location. | `builtin-local` | No | 0.7.0-incubating || `gcs-service-account-file` | The path of GCS service account JSON file. | (none) | Yes | 0.7.0-incubating |-| `credential-providers` | The credential provider types, separated by comma, possible value can be `gcs-token`. As the default authentication type is using service account as the above, this configuration can enable credential vending provided by Gravitino server and client will no longer need to provide authentication information like service account to access GCS by GVFS. Once it's set, more configuration items are needed to make it works, please see [gcs-credential-vending](security/credential-vending.md#gcs-credentials) | (none) | No | 0.8.0-incubating |+| `credential-providers` | The credential provider types, separated by comma, possible value can be `gcs-token`. As the default authentication type is using service account as the above, this configuration can enable credential vending provided by Gravitino server and client will no longer need to provide authentication information like service account to access GCS by GVFS. Once it's set, more configuration items are needed to make it works, see [gcs-credential-vending](security/credential-vending.md#gcs-credentials) | (none) | No | 0.8.0-incubating |:::note`default-filesystem-provider` and `filesystem-providers` are deprecated since 1.2.0. The fileset catalog automatically loads filesystem providers on the classpath, including buildin filesystem provider and cloud providers when the corresponding bundle jar is present (for example, `gravitino-gcp-bundle`).:::-### Configurations for a schema+### Schema ConfigurationRefer to [Schema configurations](./fileset-catalog.md#schema-properties) for more details.-### Configurations for a fileset+### Fileset ConfigurationRefer to [Fileset configurations](./fileset-catalog.md#fileset-properties) for more details.-## Example of creating Fileset catalog with GCS+## Create the Catalog, Schema, and FilesetThis section will show you how to use the Fileset catalog with GCS in Gravitino, including detailed examples.-### Step1: Create a Fileset catalog with GCS+### Step 1: Create a Fileset Catalog with GCSFirst, you need to create a Fileset catalog with GCS. The following example shows how to create a Fileset catalog with GCS:@@ -112,7 +115,7 @@ gcs_properties = gravitino_client.create_catalog(name="test_catalog",</TabItem></Tabs>-### Step2: Create a schema+### Step 2: Create a SchemaOnce you’ve created a Fileset catalog with GCS, you can create a schema. The following example shows how to create a schema:@@ -163,7 +166,7 @@ catalog.as_schemas().create_schema(name="test_schema",</Tabs>-### Step3: Create a fileset+### Step 3: Create a FilesetAfter creating a schema, you can create a fileset. The following example shows how to create a fileset:@@ -225,9 +228,9 @@ catalog.as_fileset_catalog().create_fileset(ident=NameIdentifier.of("test_schema</TabItem></Tabs>-## Accessing a fileset with GCS+## Access a Fileset with GCS-### Using the GVFS Java client to access the fileset+### Access the Fileset with the GVFS Java ClientTo access fileset with GCS using the GVFS Java client, based on the [basic GVFS configurations](./how-to-use-gvfs.md#configuration-1), you need to add the following configurations:@@ -293,7 +296,7 @@ Or use the bundle jar with Hadoop environment if there is no Hadoop environment:</dependency>```-### Using Spark to access the fileset+### Access the Fileset with SparkThe following code snippet shows how to use **PySpark 3.5.0 with Hadoop environment(Hadoop 3.3.4)** to access the fileset:@@ -374,9 +377,9 @@ Please choose the correct jar according to your environment.In some Spark versions, a Hadoop environment is needed by the driver, adding the bundle jars with '--jars' may not work. If this is the case, you should add the jars to the spark CLASSPATH directly.:::-### Accessing a fileset using the Hadoop fs command+### Access a Fileset Using the Hadoop Fs Command-The following are examples of how to use the `hadoop fs` command to access the fileset in Hadoop 3.1.3.+The following are examples of how to use the `hadoop fs` command to access the fileset in Hadoop 3.1.3:1. Adding the following contents to the `${HADOOP_HOME}/etc/hadoop/core-site.xml` file:@@ -418,9 +421,9 @@ For GCS, you need to add `gravitino-filesystem-hadoop3-runtime-${gravitino-versi./${HADOOP_HOME}/bin/hadoop dfs -put /path/to/local/file gvfs://fileset/gcs_catalog/gcs_schema/gcs_example```-### Using the GVFS Python client to access a fileset+### Access the Fileset with the GVFS Python Client-In order to access fileset with GCS using the GVFS Python client, apart from [basic GVFS configurations](./how-to-use-gvfs.md#configuration-1), you need to add the following configurations:+To access fileset with GCS using the GVFS Python client, apart from [basic GVFS configurations](./how-to-use-gvfs.md#configuration-1), you need to add the following configurations:| Configuration item | Description | Default value | Required | Since version ||----------------------------|-------------------------------------------|---------------|----------|------------------|@@ -448,7 +451,7 @@ fs = gvfs.GravitinoVirtualFileSystem(server_uri="http://localhost:8090", metalakfs.ls("gvfs://fileset/{catalog_name}/{schema_name}/{fileset_name}/")```-### Using fileset with pandas+### Access the Fileset with PandasThe following are examples of how to use the pandas library to access the GCS fileset@@ -467,15 +470,15 @@ ds = pd.read_csv(f"gvfs://fileset/${catalog_name}/${schema_name}/${fileset_name}ds.head()```-For other use cases, please refer to the [Gravitino Virtual File System](./how-to-use-gvfs.md) document.+For other use cases, refer to the [Gravitino Virtual File System](./how-to-use-gvfs.md) document.-## Fileset with credential vending+## Fileset with Credential VendingSince 0.8.0-incubating, Gravitino supports credential vending for GCS fileset. If the catalog has been [configured with credential](./security/credential-vending.md), you can access GCS fileset without providing authentication information like `gcs-service-account-file` in the properties.-### How to create a GCS Fileset catalog with credential vending+### Create a GCS Fileset Catalog with Credential Vending-Apart from configuration method in [create-gcs-fileset-catalog](#configurations-for-a-gcs-fileset-catalog),+Apart from configuration method in [create-gcs-fileset-catalog](#gcs-fileset-catalog-configuration),properties needed by [gcs-credential](./security/credential-vending.md#gcs-credentials) should alsobe set to enable credential vending for GCS fileset. Take `gcs-token` credential provider for example:@@ -493,7 +496,7 @@ curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \}' http://localhost:8090/api/metalakes/metalake/catalogs```-### How to access GCS fileset with credential vending+### Access a GCS Fileset with Credential VendingWhen the catalog is configured with credentials and client-side credential vending is enabled,you can access GCS filesets directly using the GVFS Java/Python client or Spark without providing authentication details.diff --git a/docs/fileset-catalog-with-oss.md b/docs/fileset-catalog-with-oss.mdindex cf9b446364..98369bbd4e 100644--- a/docs/fileset-catalog-with-oss.md+++ b/docs/fileset-catalog-with-oss.md@@ -1,11 +1,13 @@----title: "Fileset catalog with OSS"-slug: /fileset-catalog-with-oss+title: "Fileset Catalog with OSS"+slug: "/fileset-catalog-with-oss"date: 2025-01-03-keyword: Fileset catalog OSS+keyword: "Fileset catalog OSS"license: "This software is licensed under the Apache License version 2."---+## Introduction+This document explains how to configure a Fileset catalog with Aliyun OSS (Object Storage Service) in Gravitino.## Prerequisites@@ -20,11 +22,11 @@ To set up a Fileset catalog with OSS, follow these steps:$ ${GRAVITINO_HOME}/bin/gravitino-server.sh start```-Once the server is up and running, you can proceed to configure the Fileset catalog with OSS. In the rest of this document we will use `http://localhost:8090` as the Gravitino server URL, please replace it with your actual server URL.+Once the server is up and running, you can proceed to configure the Fileset catalog with OSS. In the rest of this document we will use `http://localhost:8090` as the Gravitino server URL, replace with your actual server URL.-## Configurations for creating a Fileset catalog with OSS+## OSS Catalog Configuration-### Configuration for an OSS Fileset catalog+### OSS Fileset Catalog ConfigurationIn addition to the basic configurations mentioned in [Fileset-catalog-catalog-configuration](./fileset-catalog.md#catalog-properties), the following properties are required to configure a Fileset catalog with OSS:@@ -35,25 +37,25 @@ In addition to the basic configurations mentioned in [Fileset-catalog-catalog-co| `oss-endpoint` | The endpoint of the Aliyun OSS. | (none) | Yes | 0.7.0-incubating || `oss-access-key-id` | The access key of the Aliyun OSS. | (none) | Yes | 0.7.0-incubating || `oss-secret-access-key` | The secret key of the Aliyun OSS. | (none) | Yes | 0.7.0-incubating |-| `credential-providers` | The credential provider types, separated by comma, possible value can be `oss-token`, `oss-secret-key`. As the default authentication type is using AKSK as the above, this configuration can enable credential vending provided by Gravitino server and client will no longer need to provide authentication information like AKSK to access OSS by GVFS. Once it's set, more configuration items are needed to make it works, please see [oss-credential-vending](security/credential-vending.md#oss-credentials) | (none) | No | 0.8.0-incubating |+| `credential-providers` | The credential provider types, separated by comma, possible value can be `oss-token`, `oss-secret-key`. As the default authentication type is using AKSK as the above, this configuration can enable credential vending provided by Gravitino server and client will no longer need to provide authentication information like AKSK to access OSS by GVFS. Once it's set, more configuration items are needed to make it works, see [oss-credential-vending](security/credential-vending.md#oss-credentials) | (none) | No | 0.8.0-incubating |:::note`default-filesystem-provider` and `filesystem-providers` are deprecated since 1.2.0. The fileset catalog automatically loads filesystem providers on the classpath, including buildin filesystem provider and cloud providers when the corresponding bundle jar is present (for example, `gravitino-aliyun-bundle`).:::-### Configurations for a schema+### Schema ConfigurationTo create a schema, refer to [Schema configurations](./fileset-catalog.md#schema-properties).-### Configurations for a fileset+### Fileset ConfigurationFor instructions on how to create a fileset, refer to [Fileset configurations](./fileset-catalog.md#fileset-properties) for more details.-## Example of creating Fileset catalog/schema/fileset with OSS+## Create the Catalog, Schema, and FilesetThis section will show you how to use the Fileset catalog with OSS in Gravitino, including detailed examples.-### Step1: Create a Fileset catalog with OSS+### Step 1: Create a Fileset Catalog with OSSFirst, you need to create a Fileset catalog for OSS. The following examples demonstrate how to create a Fileset catalog with OSS:@@ -172,7 +174,7 @@ catalog.as_schemas().create_schema(name="test_schema",</Tabs>-### Step3: Create a fileset+### Step 3: Create a FilesetNow that the schema is created, you can create a fileset inside it. Here’s how:@@ -234,9 +236,9 @@ catalog.as_fileset_catalog().create_fileset(ident=NameIdentifier.of("test_schema</TabItem></Tabs>-## Accessing a fileset with OSS+## Access a Fileset with OSS-### Using the GVFS Java client to access the fileset+### Access the Fileset with the GVFS Java ClientTo access fileset with OSS using the GVFS Java client, based on the [basic GVFS configurations](./how-to-use-gvfs.md#configuration-1), you need to add the following configurations:@@ -308,7 +310,7 @@ Or use the bundle jar with Hadoop environment if there is no Hadoop environment:</dependency>```-### Using Spark to access the fileset+### Access the Fileset with SparkThe following code snippet shows how to use **PySpark 3.5.0 with Hadoop environment(Hadoop 3.3.4)** to access the fileset:@@ -383,9 +385,9 @@ Please choose the correct jar according to your environment.In some Spark versions, a Hadoop environment is needed by the driver, adding the bundle jars with '--jars' may not work. If this is the case, you should add the jars to the spark CLASSPATH directly.:::-### Accessing a fileset using the Hadoop fs command+### Access a Fileset Using the Hadoop Fs Command-The following are examples of how to use the `hadoop fs` command to access the fileset in Hadoop 3.1.3.+The following are examples of how to use the `hadoop fs` command to access the fileset in Hadoop 3.1.3:1. Adding the following contents to the `${HADOOP_HOME}/etc/hadoop/core-site.xml` file:@@ -437,9 +439,9 @@ For OSS, you need to add `gravitino-filesystem-hadoop3-runtime-${gravitino-versi./${HADOOP_HOME}/bin/hadoop dfs -put /path/to/local/file gvfs://fileset/oss_catalog/schema/oss_fileset```-### Using the GVFS Python client to access a fileset+### Access the Fileset with the GVFS Python Client-In order to access fileset with OSS using the GVFS Python client, apart from [basic GVFS configurations](./how-to-use-gvfs.md#configuration-1), you need to add the following configurations:+To access fileset with OSS using the GVFS Python client, apart from [basic GVFS configurations](./how-to-use-gvfs.md#configuration-1), you need to add the following configurations:| Configuration item | Description | Default value | Required | Since version ||-------------------------|-----------------------------------|---------------|----------|------------------|@@ -473,7 +475,7 @@ fs.ls("gvfs://fileset/{catalog_name}/{schema_name}/{fileset_name}/")```-### Using fileset with pandas+### Access the Fileset with PandasThe following are examples of how to use the pandas library to access the OSS fileset@@ -493,15 +495,15 @@ ds = pd.read_csv(f"gvfs://fileset/${catalog_name}/${schema_name}/${fileset_name}storage_options=storage_options)ds.head()```-For other use cases, please refer to the [Gravitino Virtual File System](./how-to-use-gvfs.md) document.+For other use cases, refer to the [Gravitino Virtual File System](./how-to-use-gvfs.md) document.-## Fileset with credential vending+## Fileset with Credential VendingSince 0.8.0-incubating, Gravitino supports credential vending for OSS fileset. If the catalog has been [configured with credential](./security/credential-vending.md), you can access OSS fileset without providing authentication information like `oss-access-key-id` and `oss-secret-access-key` in the properties.-### How to create an OSS Fileset catalog with credential vending+### Create an OSS Fileset Catalog with Credential Vending-Apart from configuration method in [create-oss-fileset-catalog](#configuration-for-an-oss-fileset-catalog),+Apart from configuration method in [create-oss-fileset-catalog](#oss-fileset-catalog-configuration),properties needed by [oss-credential](./security/credential-vending.md#oss-credentials)should also be set to enable credential vending for OSS fileset. Take `oss-token` credential provider for example:@@ -523,7 +525,7 @@ curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \}' http://localhost:8090/api/metalakes/metalake/catalogs```-### How to access OSS fileset with credential vending+### Access an OSS Fileset with Credential VendingWhen the catalog is configured with credentials and client-side credential vending is enabled,you can access OSS filesets directly using the GVFS Java/Python client or Spark without providing authentication details.diff --git a/docs/fileset-catalog-with-s3.md b/docs/fileset-catalog-with-s3.mdindex 167a2bfb5e..99d810f243 100644--- a/docs/fileset-catalog-with-s3.md+++ b/docs/fileset-catalog-with-s3.md@@ -1,11 +1,13 @@----title: "Fileset catalog with S3"-slug: /fileset-catalog-with-s3+title: "Fileset Catalog with S3"+slug: "/fileset-catalog-with-s3"date: 2025-01-03-keyword: Fileset catalog S3+keyword: "Fileset catalog S3"license: "This software is licensed under the Apache License version 2."---+## Introduction+This document explains how to configure a Fileset catalog with S3 in Gravitino.## Prerequisites@@ -20,11 +22,11 @@ To create a Fileset catalog with S3, follow these steps:$ ${GRAVITINO_HOME}/bin/gravitino-server.sh start```-Once the server is up and running, you can proceed to configure the Fileset catalog with S3. In the rest of this document we will use `http://localhost:8090` as the Gravitino server URL, please replace it with your actual server URL.+Once the server is up and running, you can proceed to configure the Fileset catalog with S3. In the rest of this document we will use `http://localhost:8090` as the Gravitino server URL, replace with your actual server URL.-## Configurations for creating a Fileset catalog with S3+## S3 Catalog Configuration-### Configurations for S3 Fileset Catalog+### S3 Fileset Catalog ConfigurationIn addition to the basic configurations mentioned in [Fileset-catalog-catalog-configuration](./fileset-catalog.md#catalog-properties), the following properties are necessary to configure a Fileset catalog with S3:@@ -35,25 +37,25 @@ In addition to the basic configurations mentioned in [Fileset-catalog-catalog-co| `s3-endpoint` | The endpoint of the AWS S3. | (none) | Yes | 0.7.0-incubating || `s3-access-key-id` | The access key of the AWS S3. | (none) | Yes | 0.7.0-incubating || `s3-secret-access-key` | The secret key of the AWS S3. | (none) | Yes | 0.7.0-incubating |-| `credential-providers` | The credential provider types, separated by comma, possible value can be `s3-token`, `s3-secret-key`. As the default authentication type is using AKSK as the above, this configuration can enable credential vending provided by Gravitino server and client will no longer need to provide authentication information like AKSK to access S3 by GVFS. Once it's set, more configuration items are needed to make it works, please see [s3-credential-vending](security/credential-vending.md#s3-credentials) | (none) | No | 0.8.0-incubating |+| `credential-providers` | The credential provider types, separated by comma, possible value can be `s3-token`, `s3-secret-key`. As the default authentication type is using AKSK as the above, this configuration can enable credential vending provided by Gravitino server and client will no longer need to provide authentication information like AKSK to access S3 by GVFS. Once it's set, more configuration items are needed to make it works, see [s3-credential-vending](security/credential-vending.md#s3-credentials) | (none) | No | 0.8.0-incubating |:::note`default-filesystem-provider` and `filesystem-providers` are deprecated since 1.2.0. The fileset catalog automatically loads filesystem providers on the classpath, including buildin filesystem provider and cloud providers when the corresponding bundle jar is present (for example, `gravitino-aws-bundle`).:::-### Configurations for a schema+### Schema ConfigurationTo learn how to create a schema, refer to [Schema configurations](./fileset-catalog.md#schema-properties).-### Configurations for a fileset+### Fileset ConfigurationFor more details on creating a fileset, Refer to [Fileset configurations](./fileset-catalog.md#fileset-properties).-## Using the Fileset catalog with S3+## Create the Catalog, Schema, and FilesetThis section demonstrates how to use the Fileset catalog with S3 in Gravitino, with a complete example.-### Step1: Create a Fileset Catalog with S3+### Step 1: Create a Fileset Catalog with S3First of all, you need to create a Fileset catalog with S3. The following example shows how to create a Fileset catalog with S3:@@ -131,7 +133,7 @@ gravitino.bypass.fs.s3a.path.style.access=true```:::-### Step2: Create a schema+### Step 2: Create a SchemaOnce your Fileset catalog with S3 is created, you can create a schema under the catalog. Here are examples of how to do that:@@ -181,7 +183,7 @@ catalog.as_schemas().create_schema(name="test_schema",</TabItem></Tabs>-### Step3: Create a fileset+### Step 3: Create a FilesetAfter creating the schema, you can create a fileset. Here are examples for creating a fileset:@@ -243,9 +245,9 @@ catalog.as_fileset_catalog().create_fileset(ident=NameIdentifier.of("schema", "e</TabItem></Tabs>-## Accessing a fileset with S3+## Access a Fileset with S3-### Using the GVFS Java client to access the fileset+### Access the Fileset with the GVFS Java ClientTo access fileset with S3 using the GVFS Java client, based on the [basic GVFS configurations](./how-to-use-gvfs.md#configuration-1), you need to add the following configurations:@@ -318,7 +320,7 @@ Or use the bundle jar with Hadoop environment if there is no Hadoop environment:</dependency>```-### Using Spark to access the fileset+### Access the Fileset with SparkThe following Python code demonstrates how to use **PySpark 3.5.0 with Hadoop environment(Hadoop 3.3.4)** to access the fileset:@@ -385,9 +387,9 @@ Please choose the correct jar according to your environment.In some Spark versions, a Hadoop environment is needed by the driver, adding the bundle jars with '--jars' may not work. If this is the case, you should add the jars to the spark CLASSPATH directly.:::-### Accessing a fileset using the Hadoop fs command+### Access a Fileset Using the Hadoop Fs Command-The following are examples of how to use the `hadoop fs` command to access the fileset in Hadoop 3.1.3.+The following are examples of how to use the `hadoop fs` command to access the fileset in Hadoop 3.1.3:1. Adding the following contents to the `${HADOOP_HOME}/etc/hadoop/core-site.xml` file:@@ -439,9 +441,9 @@ For S3, you need to add `gravitino-filesystem-hadoop3-runtime-${gravitino-versio./${HADOOP_HOME}/bin/hadoop dfs -put /path/to/local/file gvfs://fileset/s3_catalog/s3_schema/s3_fileset```-### Using the GVFS Python client to access a fileset+### Access the Fileset with the GVFS Python Client-In order to access fileset with S3 using the GVFS Python client, apart from [basic GVFS configurations](./how-to-use-gvfs.md#configuration-1), you need to add the following configurations:+To access fileset with S3 using the GVFS Python client, apart from [basic GVFS configurations](./how-to-use-gvfs.md#configuration-1), you need to add the following configurations:| Configuration item | Description | Default value | Required | Since version ||------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|------------------|@@ -474,7 +476,7 @@ fs = gvfs.GravitinoVirtualFileSystem(server_uri="http://localhost:8090", metalakfs.ls("gvfs://fileset/{catalog_name}/{schema_name}/{fileset_name}/") ")```-### Using fileset with pandas+### Access the Fileset with PandasThe following are examples of how to use the pandas library to access the S3 fileset@@ -495,15 +497,15 @@ ds = pd.read_csv(f"gvfs://fileset/${catalog_name}/${schema_name}/${fileset_name}ds.head()```-For more use cases, please refer to the [Gravitino Virtual File System](./how-to-use-gvfs.md) document.+For more use cases, refer to the [Gravitino Virtual File System](./how-to-use-gvfs.md) document.-## Fileset with credential vending+## Fileset with Credential VendingSince 0.8.0-incubating, Gravitino supports credential vending for S3 fileset. If the catalog has been [configured with credential](./security/credential-vending.md), you can access S3 fileset without providing authentication information like `s3-access-key-id` and `s3-secret-access-key` in the properties.-### How to create a S3 Fileset catalog with credential vending+### Create an S3 Fileset Catalog with Credential Vending-Apart from configuration method in [create-s3-fileset-catalog](#configurations-for-s3-fileset-catalog),+Apart from configuration method in [create-s3-fileset-catalog](#s3-fileset-catalog-configuration),properties needed by [s3-credential](./security/credential-vending.md#s3-credentials)should also be set to enable credential vending for S3 fileset. Take `s3-token` credential provider for example:@@ -525,7 +527,7 @@ curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \}' http://localhost:8090/api/metalakes/metalake/catalogs```-### How to access S3 fileset with credential vending+### Access an S3 Fileset with Credential VendingWhen the catalog is configured with credentials and client-side credential vending is enabled,you can access S3 filesets directly using the GVFS Java/Python client or Spark without providing authentication details.diff --git a/docs/fileset-catalog.md b/docs/fileset-catalog.mdindex fbc5113239..40e4ba5255 100644--- a/docs/fileset-catalog.md+++ b/docs/fileset-catalog.md@@ -1,31 +1,31 @@----title: "Fileset catalog"-slug: /fileset-catalog+title: "Fileset Catalog"+slug: "/fileset-catalog"date: 2024-4-2-keyword: fileset catalog+keyword: "fileset catalog"license: "This software is licensed under the Apache License version 2."---## IntroductionFileset catalog is a fileset catalog that using Hadoop Compatible File System (HCFS) to manage-the storage location of the fileset. Currently, it supports the local filesystem and HDFS. Since+the storage location of the fileset. It supports the local filesystem and HDFS. Since0.7.0-incubating, Gravitino supports [S3](fileset-catalog-with-s3.md), [GCS](fileset-catalog-with-gcs.md),[OSS](fileset-catalog-with-oss.md) and [Azure Blob Storage](fileset-catalog-with-adls.md) through Fileset catalog.The rest of this document will use HDFS or local file as an example to illustrate how to use the Fileset catalog.For S3, GCS, OSS and Azure Blob Storage, the configuration is similar to HDFS,-please refer to the corresponding document for more details.+refer to the corresponding document for more details.Note that Gravitino uses Hadoop 3 dependencies to build Fileset catalog. Theoretically, it should becompatible with both Hadoop 2.x and 3.x, since Gravitino doesn't leverage any new features in-Hadoop 3. If there's any compatibility issue, please create an [issue](https://github.com/apache/gravitino/issues).+Hadoop 3. If there's any compatibility issue, create an [issue](https://github.com/apache/gravitino/issues).## Catalog-### Catalog properties+### Catalog Properties-Besides the [common catalog properties](./gravitino-server-config.md#apache-gravitino-catalog-properties-configuration),+Besides the [common catalog properties](./gravitino-server-config.md#catalog-properties-configuration),the Fileset catalog has the following properties:| Property Name | Description | Default Value | Required | Since Version |@@ -46,9 +46,9 @@ the Fileset catalog has the following properties:`default-filesystem-provider` and `filesystem-providers` are deprecated since 1.2.0. The fileset catalog automatically loads filesystem providers on the classpath, including buildin filesystem provider and cloud providers when the corresponding bundle jar is present (for example, `gravitino-aws-bundle`, `gravitino-azure-bundle`, `gravitino-aliyun-bundle`, or `gravitino-gcp-bundle`).:::-Please refer to [Credential vending](./security/credential-vending.md) for more details about credential vending.+Refer to [Credential vending](./security/credential-vending.md) for more details about credential vending.-### HDFS fileset+### HDFS FilesetApart from the above properties, to access fileset like HDFS fileset, you need to configure the following extraproperties.@@ -56,7 +56,7 @@ properties.| Property Name | Description | Default Value | Required | Since Version ||----------------------------------------------------|-------------------------------------------------------------------------------------------------|---------------|-------------------------------------------------------------|---------------|| `authentication.impersonation-enable` | Whether to enable impersonation for the Fileset catalog. | `false` | No | 0.5.1 |-| `authentication.type` | The type of authentication for Fileset catalog, currently we only support `kerberos`, `simple`. | `simple` | No | 0.5.1 |+| `authentication.type` | The type of authentication for Fileset catalog, we only support `kerberos`, `simple`. | `simple` | No | 0.5.1 || `authentication.kerberos.principal` | The principal of the Kerberos authentication | (none) | required if the value of `authentication.type` is Kerberos. | 0.5.1 || `authentication.kerberos.keytab-uri` | The URI of The keytab for the Kerberos authentication. | (none) | required if the value of `authentication.type` is Kerberos. | 0.5.1 || `authentication.kerberos.check-interval-sec` | The check interval of Kerberos credential for Fileset catalog. | 60 | No | 0.5.1 |@@ -72,18 +72,18 @@ The Gravitino Fileset extends the following properties in the `xxx-site.xml`:| hadoop.security.authentication.kerberos.keytab | The keytab file path of the Kerberos authentication for HDFS client. | (none) | required if the value of `authentication.type` is Kerberos. | 1.1.0 || hadoop.security.authentication.kerberos.krb5.conf | The krb5.conf file path of the Kerberos authentication for HDFS client. | (none) | No | 1.1.0 |-### Fileset catalog with Cloud Storage+### Fileset Catalog with Cloud StorageIn the current implementation, the fileset uses the HDFS protocol to access its location. If users use S3, GCS, OSS,or Azure Blob Storage, they can also configure the `config.resources` to specify custom configurationfiles.-- For S3, please refer to [Fileset-catalog-with-s3](./fileset-catalog-with-s3.md) for more details.-- For GCS, please refer to [Fileset-catalog-with-gcs](./fileset-catalog-with-gcs.md) for more details.-- For OSS, please refer to [Fileset-catalog-with-oss](./fileset-catalog-with-oss.md) for more details.-- For Azure Blob Storage, please refer to [Fileset-catalog-with-adls](./fileset-catalog-with-adls.md) for more details.+- For S3, refer to [Fileset-catalog-with-s3](./fileset-catalog-with-s3.md) for more details.+- For GCS, refer to [Fileset-catalog-with-gcs](./fileset-catalog-with-gcs.md) for more details.+- For OSS, refer to [Fileset-catalog-with-oss](./fileset-catalog-with-oss.md) for more details.+- For Azure Blob Storage, refer to [Fileset-catalog-with-adls](./fileset-catalog-with-adls.md) for more details.-### How to custom your own HCFS file system fileset?+### Implement a Custom HCFS File System FilesetDevelopers and users can custom their own HCFS file system fileset by implementing the`FileSystemProvider` interface inthe jar [gravitino-hadoop-common](https://repo1.maven.org/maven2/org/apache/gravitino/gravitino-hadoop-common/). The@@ -113,7 +113,7 @@ the custom file system provider. For example, the content of `S3FileSystemProvidAfter implementing the `FileSystemProvider` interface, you need to put the jar file into the`$GRAVITINO_HOME/catalogs/fileset/libs` directory. Then you can use your custom file system provider.-### Authentication for fileset catalog+### Fileset Catalog AuthenticationThe Fileset catalog supports multi-level authentication to control access, allowing different authentication settingsfor the catalog, schema, and fileset. The priority of authentication settings is as follows: catalog < schema < fileset.@@ -121,26 +121,26 @@ Specifically:- **Catalog**: The default authentication is `simple`.- **Schema**: Inherits the authentication setting from the catalog if not explicitly set. For more information about- schema settings, please refer to [Schema properties](#schema-properties).+ schema settings, refer to [Schema properties](#schema-properties).- **Fileset**: Inherits the authentication setting from the schema if not explicitly set. For more information about- fileset settings, please refer to [Fileset properties](#fileset-properties).+ fileset settings, refer to [Fileset properties](#fileset-properties).The default value of `authentication.impersonation-enable` is false, and the default value for catalogs about thisconfiguration is false, forschemas and filesets, the default value is inherited from the parent. Value set by the user will override the parentvalue, and the priority mechanism is the same as authentication.-### Catalog operations+### Catalog OperationsRefer to [Catalog operations](./manage-fileset-metadata-using-gravitino.md#catalog-operations) for more details.## Schema-### Schema capabilities+### Schema CapabilitiesThe Fileset catalog supports creating, updating, deleting, and listing schema.-### Schema properties+### Schema PropertiesAll the catalog properties are inherited by the schema. Besides, the Fileset catalog schema has the followingproperties:@@ -150,13 +150,13 @@ properties:| `location` | The storage location managed by schema. Its location name is `unknown`. It's also should be a directory or path prefix. | (none) | No | 0.5.0 || `location-` | The property prefix. User can use `location-{name}={path}` to set multiple locations with different names for the schema. | (none) | No | 0.9.0-incubating || `authentication.impersonation-enable` | Whether to enable impersonation for this schema of the Fileset catalog. | The parent(catalog) value | No | 0.6.0-incubating |-| `authentication.type` | The type of authentication for this schema of Fileset catalog , currently we only support `kerberos`, `simple`. | The parent(catalog) value | No | 0.6.0-incubating |+| `authentication.type` | The type of authentication for this schema of Fileset catalog , we only support `kerberos`, `simple`. | The parent(catalog) value | No | 0.6.0-incubating || `authentication.kerberos.principal` | The principal of the Kerberos authentication for this schema. | The parent(catalog) value | No | 0.6.0-incubating || `authentication.kerberos.keytab-uri` | The URI of The keytab for the Kerberos authentication for this schema. | The parent(catalog) value | No | 0.6.0-incubating || `credential-providers` | The credential provider types, separated by comma. | (none) | No | 0.8.0-incubating || `config.resources` | The configuration resources, separated by comma. For example, `hdfs-site.xml,core-site.xml`. | (none) | No | 1.1.0 |-### Schema operations+### Schema OperationsRefer to [Schema operation](./manage-fileset-metadata-using-gravitino.md#schema-operations) for more details.@@ -171,11 +171,11 @@ This behavior is skipped in either of these cases:## Fileset-### Fileset capabilities+### Fileset Capabilities- The Fileset catalog supports creating, updating, deleting, and listing filesets.-### Fileset properties+### Fileset PropertiesAll the schema properties are inherited by the fileset. include the properties inherited from the catalog.Besides, the Fileset catalog fileset has the following properties:@@ -184,7 +184,7 @@ Besides, the Fileset catalog fileset has the following properties:|---------------------------------------|-------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|--------------------------------------------|-----------|------------------|| `location` | The storage location managed by schema. Its location name is `unknown`. It's also should be a directory or path prefix. | (none) | No | 0.5.0 || `authentication.impersonation-enable` | Whether to enable impersonation for the Fileset catalog fileset. | The parent(schema) value | No | Yes | 0.6.0-incubating |-| `authentication.type` | The type of authentication for Fileset catalog fileset, currently we only support `kerberos`, `simple`. | The parent(schema) value | No | No | 0.6.0-incubating |+| `authentication.type` | The type of authentication for Fileset catalog fileset, we only support `kerberos`, `simple`. | The parent(schema) value | No | No | 0.6.0-incubating || `authentication.kerberos.principal` | The principal of the Kerberos authentication for the fileset. | The parent(schema) value | No | No | 0.6.0-incubating || `authentication.kerberos.keytab-uri` | The URI of The keytab for the Kerberos authentication for the fileset. | The parent(schema) value | No | No | 0.6.0-incubating || `credential-providers` | The credential provider types, separated by comma. | (none) | No | No | 0.8.0-incubating |@@ -207,6 +207,6 @@ setting in the following order of precedence:2. Schema properties3. Catalog properties-### Fileset operations+### Fileset OperationsRefer to [Fileset operations](./manage-fileset-metadata-using-gravitino.md#fileset-operations) for more details.diff --git a/docs/flink-connector/flink-authentication-with-gravitino.md b/docs/flink-connector/flink-authentication-with-gravitino.mdindex 93455a12a0..72eae72797 100644--- a/docs/flink-connector/flink-authentication-with-gravitino.md+++ b/docs/flink-connector/flink-authentication-with-gravitino.md@@ -1,7 +1,7 @@----title: "Flink authentication with Gravitino server"-slug: /flink-connector/flink-authentication-keyword: flink connector authentication oauth2 kerberos+title: "Flink Authentication"+slug: "/flink-connector/flink-authentication"+keyword: "flink connector authentication oauth2 kerberos"license: "This software is licensed under the Apache License version 2."---@@ -13,13 +13,13 @@ Flink connector supports `simple`, `oauth2`, and `kerberos` authentication when|-----------------------------------------------------------|--------|---------------|--------------------------------------------------------------------------------------------------------------------------------------------|----------|---------------|| table.catalog-store.gravitino.gravitino.client.auth.type | string | (none) | When explicitly set, only `oauth` is supported. If unset, Flink selects Kerberos or simple authentication based on its security settings. | No | 1.2.0 |-## Simple mode+## Simple ModeIn simple mode, the username originates from Flink. The resolution order is:1. `HADOOP_USER_NAME` environment variable2. The logged-in OS user-## OAuth2 mode+## OAuth2 ModeIn OAuth2 mode, configure the following settings to fetch an OAuth2 token to access the Gravitino server:@@ -43,7 +43,7 @@ table.catalog-store.gravitino.gravitino.client.oauth2.credential: client-id:clietable.catalog-store.gravitino.gravitino.client.oauth2.scope: your-scope```-## Kerberos mode+## Kerberos ModeIn Kerberos mode, use Flink security configurations to obtain a Kerberos ticket for accessing the Gravitino server. Configure `security.kerberos.login.principal` and `security.kerberos.login.keytab` for the Kerberos principal and keytab.diff --git a/docs/flink-connector/flink-catalog-hive.md b/docs/flink-connector/flink-catalog-hive.mdindex 612aed5e06..2be6074628 100644--- a/docs/flink-connector/flink-catalog-hive.md+++ b/docs/flink-connector/flink-catalog-hive.md@@ -1,10 +1,12 @@----title: "Flink connector hive catalog"-slug: /flink-connector/flink-catalog-hive-keyword: flink connector hive catalog+title: "Flink Connector: Hive Catalog"+slug: "/flink-connector/flink-catalog-hive"+keyword: "flink connector hive catalog"license: "This software is licensed under the Apache License version 2."---+## Introduction+With the Apache Gravitino Flink connector, accessing data or managing metadata in Hive catalogs becomes straightforward, enabling seamless federation queries across different Hive catalogs.## Capabilities@@ -23,7 +25,7 @@ Supports most DDL and DML operations in Flink SQL, except such operations:- `DELETE` clause- `CALL` clause-## Generic table support+## Generic TablesFlink generic tables are non-Hive tables. Their schema and partition keys are stored in tableproperties in Hive metastore. Gravitino Flink connector follows the Flink Hive catalog behavior:@@ -39,7 +41,7 @@ reconstructed from the serialized `flink.*` properties. Hive tables continue toHive schema.:::note-You must set `connector=hive` explicitly when creating a raw Hive table. Otherwise, the table is+Set `connector=hive` explicitly when creating a raw Hive table. Otherwise, the table iscreated as a generic table by default in HiveCatalog. Starting from Apache Flink 1.18,ManagedTable-related APIs are deprecated, so avoid relying on managed table behavior. PreferHive-compatible tables (use Hive dialect or set `connector=hive`) or external generic tables (set@@ -47,12 +49,12 @@ an explicit `connector`). For details, see the Flink documentation on Hive generhttps://nightlies.apache.org/flink/flink-docs-stable/docs/connectors/table/hive/hive_catalog/#generic-tables:::-## Requirement+## Prerequisites* Hive metastore 2.x* HDFS 2.x or 3.x-## SQL example+## SQL Example```sql@@ -68,7 +70,7 @@ SET 'execution.runtime-mode' = 'batch';SET 'sql-client.execution.result-mode' = 'tableau';-- [INFO] Execute statement succeed.-// Create a raw hive table, please make sure setting 'connector'='hive'.+// Create a raw hive table; make sure to set 'connector'='hive'.CREATE TABLE IF NOT EXISTS employees (id INT,name STRING,@@ -97,7 +99,7 @@ INSERT INTO employees VALUES (1, 'John Doe', 20240101), (2, 'Jane Smith', 202401SELECT * FROM employees WHERE dt = 20240101;```-## Catalog properties+## Catalog PropertiesThe configuration of Flink Hive Connector is the same with the original Flink Hive connector.Gravitino catalog property names with the prefix `flink.bypass.` are passed to Flink Hive connector. For example, using `flink.bypass.hive-conf-dir` to pass the `hive-conf-dir` to the Flink Hive connector.@@ -112,6 +114,6 @@ The validated catalog properties are listed below. Any other properties with the| `metastore.uris` | `hive.metastore.uris` | Hive metastore uri | 0.6.0-incubating |:::caution-You can set other hadoop properties (with the prefix `hadoop.`, `dfs.`, `fs.`, `hive.`) in Gravitino Catalog properties. If so, it will override+Set other hadoop properties (with the prefix `hadoop.`, `dfs.`, `fs.`, `hive.`) in Gravitino Catalog properties. If so, it will overridethe configuration from the `hive-conf-dir` and `hadoop-conf-dir`.:::diff --git a/docs/flink-connector/flink-catalog-iceberg.md b/docs/flink-connector/flink-catalog-iceberg.mdindex b80eff4798..3c66dc0a38 100644--- a/docs/flink-connector/flink-catalog-iceberg.md+++ b/docs/flink-connector/flink-catalog-iceberg.md@@ -1,16 +1,18 @@----title: "Flink connector Iceberg catalog"-slug: /flink-connector/flink-catalog-iceberg-keyword: flink connector iceberg catalog+title: "Flink Connector: Iceberg Catalog"+slug: "/flink-connector/flink-catalog-iceberg"+keyword: "flink connector iceberg catalog"license: "This software is licensed under the Apache License version 2."---+## Introduction+The Apache Gravitino Flink connector can be used to read and write Iceberg tables, with the metadata managed by the Gravitino server.To enable the Flink connector, you must download the Iceberg Flink runtime JAR and place it in the Flink classpath.## Capabilities-#### Supported DML and DDL operations:+### DML and DDL Operations- `CREATE CATALOG`- `CREATE DATABASE`@@ -20,7 +22,7 @@ To enable the Flink connector, you must download the Iceberg Flink runtime JAR a- `INSERT INTO & OVERWRITE`- `SELECT`-#### Operations not supported:+### Unsupported Operations- Partition operations- View operations@@ -46,7 +48,7 @@ Place the following JAR files in the lib directory of your Flink installation:| 1.19 | `iceberg-flink-runtime-1.19-${iceberg-version}.jar` | `gravitino-flink-connector-runtime-1.19_2.12-${gravitino-version}.jar` || 1.20 | `iceberg-flink-runtime-1.20-${iceberg-version}.jar` | `gravitino-flink-connector-runtime-1.20_2.12-${gravitino-version}.jar` |-## SQL example+## SQL Example```sql@@ -70,7 +72,7 @@ SELECT * FROM sample WHERE data = 'B';```-## Catalog properties+## Catalog PropertiesThe Gravitino Flink connector transforms the following properties in a catalog to Flink connector configuration.diff --git a/docs/flink-connector/flink-catalog-jdbc.md b/docs/flink-connector/flink-catalog-jdbc.mdindex 7ac5c6974c..105a4f1b70 100644--- a/docs/flink-connector/flink-catalog-jdbc.md+++ b/docs/flink-connector/flink-catalog-jdbc.md@@ -1,15 +1,17 @@----title: "Flink connector jdbc catalog"-slug: /flink-connector/flink-catalog-jdbc-keyword: flink connector jdbc catalog+title: "Flink Connector: JDBC Catalog"+slug: "/flink-connector/flink-catalog-jdbc"+keyword: "flink connector jdbc catalog"license: "This software is licensed under the Apache License version 2."---+## Introduction+This document provides a comprehensive guide on configuring and using Apache Gravitino Flink connector to access the JDBC catalog managed by the Gravitino server.## Capabilities-### Supported JDBC Types+### JDBC Types* MYSQL@@ -121,7 +123,7 @@ SELECT * FROM jdbc_table_a;```-## Catalog properties+## Catalog PropertiesGravitino Flink connector will transform below property names which are defined in catalog properties to Flink JDBC connector configuration.diff --git a/docs/flink-connector/flink-catalog-paimon.md b/docs/flink-connector/flink-catalog-paimon.mdindex d0b7a5b0ec..4f46cd081f 100644--- a/docs/flink-connector/flink-catalog-paimon.md+++ b/docs/flink-connector/flink-catalog-paimon.md@@ -1,26 +1,28 @@----title: "Flink connector paimon catalog"-slug: /flink-connector/flink-catalog-paimon-keyword: flink connector paimon catalog+title: "Flink Connector: Paimon Catalog"+slug: "/flink-connector/flink-catalog-paimon"+keyword: "flink connector paimon catalog"license: "This software is licensed under the Apache License version 2."---+## Introduction+This document provides a comprehensive guide on configuring and using Apache Gravitino Flink connector to access the Paimon catalog managed by the Gravitino server.## Capabilities-### Supported Paimon Table Types+### Paimon Table Types* AppendOnly Table* Primary Key Table (with bucket distribution)-### Supported Distribution+### Distribution* HASH distribution via `bucket-key` and `bucket` table properties.* Only HASH strategy is supported. Range or other strategies are not applicable.* When `bucket-key` is specified without `bucket`, the bucket number defaults to auto.-### Supported Operation Types+### Operation TypesSupports most DDL and DML operations in Flink SQL, except such operations:@@ -36,7 +38,7 @@ Supports most DDL and DML operations in Flink SQL, except such operations:- `DELETE` clause- `CALL` clause-## Requirement+## Prerequisites* Paimon 1.2.0 is fully tested.@@ -124,7 +126,7 @@ CREATE TABLE paimon_bucketed_table ();```-## Catalog properties+## Catalog PropertiesGravitino Flink connector will transform below property names which are defined in catalog properties to Flink Paimon connector configuration.diff --git a/docs/flink-connector/flink-connector.md b/docs/flink-connector/flink-connector.mdindex 3f292d034f..4c24844036 100644--- a/docs/flink-connector/flink-connector.md+++ b/docs/flink-connector/flink-connector.md@@ -1,7 +1,7 @@----title: "Apache Gravitino Flink connector"-slug: /flink-connector/flink-connector-keyword: flink connector federation query+title: "Flink Connector"+slug: "/flink-connector/flink-connector"+keyword: "flink connector federation query"license: "This software is licensed under the Apache License version 2."---@@ -20,13 +20,13 @@ The connector is published as a version-specific runtime JAR for each supported4. Supports [Jdbc catalog](flink-catalog-jdbc.md)5. Supports most DDL and DML SQLs.-## Requirement+## Prerequisites* Scala 2.12* Flink 1.18, 1.19, or 1.20* JDK 8, 11 or 17-## How to use it+## Usage1. [Build](../how-to-build.md) or download the Gravitino Flink connector runtime JAR that matches your Flink minor version, and place it in the classpath of Flink.@@ -63,7 +63,7 @@ To configure the Gravitino client, use properties prefixed with `table.catalog-s**Example:** Setting `table.catalog-store.gravitino.gravitino.client.socketTimeoutMs` is equivalent to setting `gravitino.client.socketTimeoutMs` for the Gravitino client.-**Note:** Invalid configuration properties will result in exceptions. Please see [Gravitino Java client configurations](../how-to-use-gravitino-client.md#gravitino-java-client-configuration) for more support client configuration.+**Note:** Invalid configuration properties will result in exceptions. Please see [Gravitino Java client configurations](../how-to-use-gravitino-client.md#java-client-configuration) for more support client configuration.Set the flink configuration in flink-conf.yaml.```yaml@@ -107,7 +107,7 @@ INSERT INTO hive_students VALUES (1, 'Alice'), (2, 'Bob');SELECT * FROM hive_students;```-## Catalog naming restrictions+## Catalog Naming Restrictions:::cautionWhen creating catalogs that will be used with the Flink connector, the catalog name **cannot start with a number**. This is a Flink limitation. For example:@@ -117,7 +117,7 @@ When creating catalogs that will be used with the Flink connector, the catalog nIf you create a catalog with a name starting with a number, it will not be accessible from Flink.:::-## Datatype mapping+## Datatype MappingGravitino flink connector support the following datatype mapping between Flink and Gravitino.diff --git a/docs/getting-started/aws-remote-access.md b/docs/getting-started/aws-remote-access.mdindex 0e65420024..19ed5676e7 100644--- a/docs/getting-started/aws-remote-access.md+++ b/docs/getting-started/aws-remote-access.md@@ -1,17 +1,17 @@----title: "Remote Access for Apache Gravitino on AWS"-slug: /getting-started/aws-remote-access+title: "Remote Access on AWS"+slug: "/getting-started/aws-remote-access"license: "This software is licensed under the Apache License version 2."----## Accessing Apache Gravitino on AWS externally+## Access Apache Gravitino on AWS ExternallyWhen you deploy Gravitino on AWS, accessing it externally requiressome additional configuration due to how AWS networking works.AWS assigns your instance a public IP address, but Gravitino can't bind to that address.To resolve this, you must find the internal IP address assigned to your AWS instance.-You can locate the private IP address in the AWS console, or by running the following command:+Locate the private IP address in the AWS console, or by running the following command:```shellip a@@ -32,5 +32,5 @@ To access Hive you need to open port 10000 in the security group.After completing these steps, you can access the Gravitino REST interfacefrom the command line or a web browser on your local computer.-You can also connect to Hive via DBeaver or any other database IDE.+Connect to Hive via DBeaver or any other database IDE.diff --git a/docs/getting-started/hive.md b/docs/getting-started/hive.mdindex 6833144993..3216b0e31b 100644--- a/docs/getting-started/hive.md+++ b/docs/getting-started/hive.md@@ -1,9 +1,11 @@----title: "Installing Apache Hive"-slug: /getting-started/hive+title: "Install Apache Hive"+slug: "/getting-started/hive"license: "This software is licensed under the Apache License version 2."---+## Introduction+To install Apache Hive and Hadoop on Google Cloud Platform manually,follow [Apache Hive](https://cwiki.apache.org/confluence/display/Hive/) and[Hadoop](https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SingleCluster.html).diff --git a/docs/getting-started/index.md b/docs/getting-started/index.mdindex 4d88f3f30d..f9665024eb 100644--- a/docs/getting-started/index.md+++ b/docs/getting-started/index.md@@ -1,9 +1,11 @@----title: "Getting started with Apache Gravitino"-slug: /getting-started/index+title: "Getting Started"+slug: "/getting-started/index"license: "This software is licensed under the Apache License version 2."---+## Introduction+There are several options for getting started with Apache Gravitino.<!--Docker option-->@@ -31,7 +33,7 @@ If you want to access the instance remotely, be sure to read[Accessing Gravitino on AWS externally](./aws-remote-access.md).:::-## Environment preparation+## Environment Preparation### AWS@@ -116,7 +118,7 @@ To work on the GCP platform, follow these steps:You should see information about the OpenJDK version.-### Local workstation+### Local WorkstationTo build and install Gravitino locally on a macOS or a Linux workstation,follow these steps:@@ -134,7 +136,7 @@ follow these steps:## Install Gravitino-You can install Gravitino from the binary release packages or the container images.+Install Gravitino from the binary release packages or the container images.Follow [how-to-install](../how-to-install.md).Or you can install Gravitino from scratch.@@ -161,7 +163,7 @@ using the RESTful APIs to create and modify metadata.:::tipThe following examples use `localhost` as the host name.-You may need to revise it based on your environment.+Revise based on your environment.:::1. Create a Metalake:@@ -226,7 +228,7 @@ You may need to revise it based on your environment.be adapted to your environment.:::-## Next steps+## Next Steps- Delve deeper into the [documentation](https://gravitino.apache.org/docs/latest)for advanced features and configuration options.diff --git a/docs/getting-started/playground.md b/docs/getting-started/playground.mdindex af5804be89..c1afb03922 100644--- a/docs/getting-started/playground.md+++ b/docs/getting-started/playground.md@@ -1,12 +1,14 @@----title: "Installing Apache Gravitino Playground"-slug: /getting-started/playground+title: "Install the Playground"+slug: "/getting-started/playground"license: "This software is licensed under the Apache License version 2."---+## Introduction+Gravitino provides a bundle of Docker images to launch a Gravitino playground,which includes Apache Hive, Apache Hadoop, Trino, MySQL, PostgreSQL, and Gravitino.-You can use Docker Compose to start them all.+Use Docker Compose to start them all.Installing Docker and Docker Compose is a requirement for using the playground.@@ -16,7 +18,7 @@ sudo gpasswd -a $USER dockernewgrp docker```-You can install and run all the programs as Docker containers by using the+Install and run all the programs as Docker containers by using the[gravitino-playground](https://github.com/apache/gravitino-playground).For details about how to run the playground, see[how-to-use-the-playground](../how-to-use-the-playground.md)diff --git a/docs/glossary.md b/docs/glossary.mdindex 3b42a6c773..cf5241b6de 100644--- a/docs/glossary.md+++ b/docs/glossary.md@@ -1,5 +1,5 @@----title: "Apache Gravitino Glossary"+title: "Glossary"date: 2023-11-28license: "This software is licensed under the Apache License version 2."---@@ -28,11 +28,11 @@ license: "This software is licensed under the Apache License version 2."HDFS is designed as a distributed storage solution to store and process large-scale datasets.It features high reliability, fault tolerance, and excellent performance.-## HTTP port+## HTTP Port- The port number on which a server listens for incoming connections.-## IP address+## IP Address- Internet Protocol address, a numerical label assigned to each device in a computer network.@@ -50,7 +50,7 @@ license: "This software is licensed under the Apache License version 2."- The software development kit for the Java programming language.A JDK provides tools for compiling, debugging, and running Java applications.-## JMX+## JMX- Java Management Extensions provides tools for managing and monitoring Java applications.@@ -67,12 +67,12 @@ license: "This software is licensed under the Apache License version 2."- A virtual machine that enables a computer to run Java applications.A JVM implements an abstract machine that is different from the underlying hardware.-## JVM instrumentation+## JVM Instrumentation-- The process of adding monitoring and management capabilities to the [JVM](#jvm).- The purpose of instrumentation is mainly for the collection of performance metrics.+- The process of adding monitoring and management capabilities to the [JVM](#jvm),+ primarily to collect performance metrics.-## JVM metrics+## JVM Metrics- Metrics related to the performance and behavior of the [Java Virtual Machine](#jvm).Some valuable metrics are memory usage, garbage collection, and buffer pool metrics.@@ -81,11 +81,11 @@ license: "This software is licensed under the Apache License version 2."- A compact, URL-safe representation for claims between two parties.-## KEYS file+## KEYS File- A file containing public keys used to sign previous releases, necessary for verifying signatures.-## PGP signature+## PGP Signature- A digital signature generated using the Pretty Good Privacy (PGP) algorithm.The signature is typically used to validate the authenticity of a file.@@ -99,11 +99,11 @@ license: "This software is licensed under the Apache License version 2."- Representational State Transfer (REST) Application Programming Interface.A set of rules and conventions for building and interacting with Web services using standard HTTP methods.-## SHA256 checksum+## SHA256 Checksum- A cryptographic hash function used to verify the integrity of files.-## SHA256 checksum file+## SHA256 Checksum File- A file containing the SHA256 hash value of another file, used for verification purposes.@@ -134,7 +134,7 @@ license: "This software is licensed under the Apache License version 2."Gravitino can manage metadata directly in different sources, types, and regions,providing data and AI assets with unified metadata access.-## Apache Gravitino configuration file (gravitino.conf)+## Apache Gravitino Configuration File (gravitino.conf)- The configuration file for the Gravitino server, located in the `conf` directory.It follows the standard properties file format and contains settings for the Gravitino server.@@ -152,30 +152,30 @@ license: "This software is licensed under the Apache License version 2."- An open-source, versioned table format for large-scale data processing.-## Apache Iceberg Hive catalog+## Apache Iceberg Hive Catalog- The **Iceberg Hive catalog** is a metadata service designed for the Apache Iceberg table format.It allows external systems to interact with an Iceberg metadata using a Hive metastore thrift client.-## Apache Iceberg JDBC catalog+## Apache Iceberg JDBC Catalog- The **Iceberg JDBC catalog** is a metadata service designed for the Apache Iceberg table format.It enables external systems to interact with an Iceberg metadata service using [JDBC](#jdbc).-## Apache Iceberg REST catalog+## Apache Iceberg REST Catalog- The **Iceberg REST Catalog** is a metadata service designed for the Apache Iceberg table format.It enables external systems to interact with Iceberg metadata service using a [REST API](#rest-api).-## Apache License version 2+## Apache License Version 2- A permissive, open-source software license written by The Apache Software Foundation.-## Authentication mechanism+## Authentication Mechanism- The method used to verify the identity of users and clients accessing a server.-## Binary distribution package+## Binary Distribution Package- A software package containing the compiled executables for distribution and deployment.@@ -183,7 +183,7 @@ license: "This software is licensed under the Apache License version 2."- A collection of metadata from a specific metadata source.-## Catalog provider+## Catalog Provider- The specific system or technology used to store and manage metadata catalogs.@@ -192,7 +192,7 @@ license: "This software is licensed under the Apache License version 2."- The individual fields or attributes of a table.Each column has properties like name, data type, comment, and nullability.-## Continuous integration (CI)+## Continuous Integration (CI)- The practice of automatically building and testing code changes when they are committed to version control.@@ -208,7 +208,7 @@ license: "This software is licensed under the Apache License version 2."- A platform for developing, shipping, and running applications in containers.-## Docker container+## Docker Container- A lightweight, standalone package that includes everything needed to run the software.A container compiles an application with its dependencies and runtime for distribution.@@ -218,7 +218,7 @@ license: "This software is licensed under the Apache License version 2."- A cloud-based registry service for Docker containers.Users can publish, browse and download containerized software using this service.-## Docker image+## Docker Image- A lightweight, standalone package that includes everything needed to run the software.A Docker image typically comprises the code, runtime, libraries, and system tools.@@ -228,11 +228,11 @@ license: "This software is licensed under the Apache License version 2."- A configuration file for building a Docker image.A Dockerfile contains instructions to build a standard image for distributing the software.-## Dropwizard metrics+## Dropwizard Metrics- A Java library for measuring the performance of applications and providing support for various metric types.-## Environment variables+## Environment Variables- Variables used to customize the runtime configuration for a process.@@ -253,19 +253,19 @@ license: "This software is licensed under the Apache License version 2."- A continuous integration and continuous deployment (CI/CD) service provided by GitHub.GitHub Actions automate the build, test, and deployment workflows.-## GitHub labels+## GitHub Labels- Labels assigned to GitHub issues or pull requests for organization or workflow automation.-## GitHub pull request+## GitHub Pull Request- A proposed change to a GitHub repository submitted by a user.-## GitHub repository+## GitHub Repository- The location where GitHub stores a project's source code and related files.-## GitHub workflow+## GitHub Workflow- A series of automated steps triggered by specific events on a GitHub repository.@@ -286,12 +286,12 @@ license: "This software is licensed under the Apache License version 2."- A system without a local console.-## Identity fields+## Identity Fields- Fields in tables that define the identity of the records.In the scope of a table, the identity fields are used as the unique identifier of a row.-## Integration tests+## Integration Tests- Tests that ensure software correctness and compatibility when integrating components into a larger system.@@ -315,7 +315,7 @@ license: "This software is licensed under the Apache License version 2."- See [JVM](#jvm)-## Key pair+## Key Pair- A pair of cryptographic keys, including a public key used for verification and a private key used for signing.@@ -329,7 +329,7 @@ license: "This software is licensed under the Apache License version 2."- A list of files and their associated metadata that collectively define the structure and content of a release or distribution.-## Merge operation+## Merge Operation- A process in Iceberg that involves combining changes from multiple snapshots into a new snapshot.@@ -347,7 +347,7 @@ license: "This software is licensed under the Apache License version 2."- A distinct and separable part of a project.-## Open authorization / OAuth+## Open Authorization / OAuth- A standard protocol for authorization that allows third-party applications to authenticate a user.The application doesn't need to access the user credentials.@@ -356,7 +356,7 @@ license: "This software is licensed under the Apache License version 2."- A tool mentioned as an alternative to Docker for macOS when running Gravitino integration tests.-## Private key+## Private Key- A confidential key used for signing, decryption, or other operations that should remain confidential.@@ -365,12 +365,12 @@ license: "This software is licensed under the Apache License version 2."- Configurable settings and attributes associated with catalogs, schemas, and tables.The property settings influence the behavior and storage of the corresponding entities.-## Protocol buffers (protobuf)+## Protocol Buffers (Protobuf)- A method developed by Google for serializing structured data, similar to XML or JSON.It is often used for efficient and extensible communication between systems.-## Public key+## Public Key- An openly shared key used for verification, encryption, or other operations intended for public knowledge.@@ -390,7 +390,7 @@ license: "This software is licensed under the Apache License version 2."- See [SSH](#ssh)-## Security group+## Security Group- A virtual firewall for your instance to control inbound and outbound traffic.@@ -403,7 +403,7 @@ license: "This software is licensed under the Apache License version 2."- A point-in-time capture of the state of an Iceberg table, representing a specific version of the table.-## Sort order+## Sort Order- The arrangement of data within a Hive table, specified by expression or direction.@@ -432,7 +432,7 @@ license: "This software is licensed under the Apache License version 2."- A query engine for big data processing.-## Trino connector+## Trino Connector- A connector module for integrating Gravitino with Trino.@@ -440,7 +440,7 @@ license: "This software is licensed under the Apache License version 2."- A Linux distribution based on Debian, widely used for cloud computing and servers.-## Unit test+## Unit Test- A type of software testing where individual components or functions of a program are tested.Unit tests help to ensure that the component or function works as expected in isolation.diff --git a/docs/gravitino-mcp-server.md b/docs/gravitino-mcp-server.mdindex 604f1f179f..02e493a192 100644--- a/docs/gravitino-mcp-server.md+++ b/docs/gravitino-mcp-server.md@@ -1,18 +1,20 @@----title: "Gravitino MCP server"-slug: /gravitino-mcp-server-keyword: Gravitino MCP metadata+title: "MCP Server"+slug: "/gravitino-mcp-server"+keyword: "Gravitino MCP metadata"license: "This software is licensed under the Apache License version 2."---+## Introduction+Gravitino MCP server provides the ability to manage Gravitino metadata for LLM.-### Requirement:+## Requirements1. Python 3.10+-2. uv is installed. You can install uv by following the [official guide](https://docs.astral.sh/uv/getting-started/installation/).+2. uv is installed. Install uv by following the [official guide](https://docs.astral.sh/uv/getting-started/installation/).-### How to run:+## Usage1. Clone the code from GitHub, and change to `mcp-server` directory2. Create virtual environment, `uv venv`@@ -51,11 +53,11 @@ Or start an HTTP MCP server by `uv run mcp_server --metalake test --gravitino-ur}```-### Docker instructions+## Docker InstructionsYou could start Gravitino MCP server by Docker image, `docker run -p 8000:8000 --network=host apache/gravitino-mcp-server:latest --metalake test --transport http --mcp-url http://0.0.0.0:8000/mcp --gravitino-uri http://127.0.0.1:8090`. Please note that the MCP server in Docker container doesn't support `stdio` transport mode.-### Supported tools+## Supported ToolsGravitino MCP server supports the following tools, and you could export tool by tag.@@ -97,7 +99,7 @@ Gravitino MCP server supports the following tools, and you could export tool by| `get_policy_for_metadata` | Get a policy associated with a specific metadata item. | `policy` | 1.0.0 |-### Configuration+## ConfigurationYou could config Gravitino MCP server by arguments, `uv run mcp_server -h` shows the detailed information.diff --git a/docs/gravitino-server-config.md b/docs/gravitino-server-config.mdindex bc9df5ba4e..72a8c951ed 100644--- a/docs/gravitino-server-config.md+++ b/docs/gravitino-server-config.md@@ -1,6 +1,6 @@----title: Apache Gravitino configuration-slug: /gravitino-server-config+title: "Gravitino Server Configuration"+slug: "/gravitino-server-config"keywords:- configurationlicense: "This software is licensed under the Apache License version 2."@@ -14,14 +14,14 @@ Apache Gravitino supports several configurations:2. **Gravitino catalog properties configuration**: Used to make default values for different catalogs.3. **Some other configurations**: Includes HDFS and other configurations.-## Apache Gravitino server configurations+## Gravitino Server Configurations-You can customize the Gravitino server by editing the configuration file `gravitino.conf` in the `conf` directory. The default values are sufficient for most use cases.+Customize the Gravitino server by editing the configuration file `gravitino.conf` in the `conf` directory. The default values are sufficient for most use cases.We strongly recommend that you read the following sections to understand the configuration file, so you can change the default values to suit your specific situation and usage scenario.The `gravitino.conf` file lists the configuration items in the following table. It groups those items into the following categories:-### Apache Gravitino HTTP Server configuration+### HTTP Server Configuration| Configuration item | Description | Default value | Required | Since version ||------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|----------|------------------|@@ -30,7 +30,7 @@ The `gravitino.conf` file lists the configuration items in the following table.| `gravitino.server.webserver.minThreads` | The minimum number of threads in the thread pool used by the Jetty webserver. `minThreads` is 8 if the value is less than 8. | `Math.max(Math.min(Runtime.getRuntime().availableProcessors() * 2, 100), 8)` | No | 0.2.0 || `gravitino.server.webserver.maxThreads` | The maximum number of threads in the thread pool used by the Jetty webserver. `maxThreads` is 8 if the value is less than 8, and `maxThreads` must be great or equal to `minThreads`. | `Math.max(Runtime.getRuntime().availableProcessors() * 4, 400)` | No | 0.1.0 || `gravitino.server.webserver.threadPoolWorkQueueSize` | The size of the queue in the thread pool used by the Jetty webserver. | `100` | No | 0.1.0 |-| `gravitino.server.webserver.stopTimeout` | Time in milliseconds to gracefully shut down the Jetty webserver, for more, please see `org.eclipse.jetty.server.Server#setStopTimeout`. | `30000` | No | 0.2.0 |+| `gravitino.server.webserver.stopTimeout` | Time in milliseconds to gracefully shut down the Jetty webserver, for more, see `org.eclipse.jetty.server.Server#setStopTimeout`. | `30000` | No | 0.2.0 || `gravitino.server.webserver.idleTimeout` | The timeout in milliseconds of idle connections. | `30000` | No | 0.2.0 || `gravitino.server.webserver.requestHeaderSize` | Maximum size of HTTP requests. | `131072` | No | 0.1.0 || `gravitino.server.webserver.responseHeaderSize` | Maximum size of HTTP responses. | `131072` | No | 0.1.0 |@@ -40,27 +40,27 @@ The `gravitino.conf` file lists the configuration items in the following table.| `gravitino.server.visibleConfigs` | List of configs that are visible in the config servlet | (none) | No | 0.9.0-incubating |The filter in the customFilters should be a standard javax servlet filter.-You can also specify filter parameters by setting configuration entries of the form `gravitino.server.webserver.<class name of filter>.param.<param name>=<value>`.+Specify filter parameters by setting configuration entries of the form `gravitino.server.webserver.<class name of filter>.param.<param name>=<value>`.-### Storage configuration+### Storage Configuration-#### Storage backend configuration+#### Storage Backend Configuration-Currently, Gravitino only supports JDBC database backend, and the default implementation is H2 database as it's an embedded database, has no external dependencies and is very suitable for local development or tests.+Gravitino only supports JDBC database backend, and the default implementation is H2 database as it's an embedded database, has no external dependencies and is very suitable for local development or tests.If you are going to use H2 in the production environment, Gravitino will not guarantee the data consistency and durability. It's highly recommended using MySQL as the backend database.The following table lists the storage configuration items:| Configuration item | Description | Default value | Required | Since version ||---------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------|-------------------------------------------------|------------------|-| `gravitino.entity.store` | Which entity storage implementation to use. Only`relational` storage is currently supported. | `relational` | No | 0.1.0 |+| `gravitino.entity.store` | Which entity storage implementation to use. Only`relational` storage is supported. | `relational` | No | 0.1.0 || `gravitino.entity.store.maxTransactionSkewTimeMs` | The maximum skew time of transactions in milliseconds. | `2000` | No | 0.3.0 || `gravitino.entity.store.deleteAfterTimeMs` | The maximum time in milliseconds that deleted and old-version data is kept. Set to at least 10 minutes and no longer than 30 days. | `604800000`(7 days) | No | 0.5.0 || `gravitino.entity.store.versionRetentionCount` | The Count of versions allowed to be retained, including the current version, used to delete old versions data. Set to at least 1 and no greater than 10. | `1` | No | 0.5.0 || `gravitino.entityChangeLog.pollIntervalSecs` | The interval in seconds for polling the entity change log. The poller invalidates stale local caches (e.g. the catalog cache) across HA nodes by consuming change log records. Must be positive. | `3` | No | 1.3.0 || `gravitino.entityChangeLog.retentionSecs` | The retention time in seconds for entity change log rows. Expired rows are pruned periodically. Set to `0` to disable automatic cleanup. Must be non-negative. | `86400`(1 day) | No | 1.3.0 || `gravitino.entityChangeLog.cleanupIntervalSecs` | The interval in seconds for pruning expired entity change log rows. Must be positive. | `3600`(1 hour) | No | 1.3.0 |-| `gravitino.entity.store.relational` | Detailed implementation of Relational storage. `H2`, `MySQL` and `PostgreSQL` is currently supported, and the implementation is `JDBCBackend`. | `JDBCBackend` | No | 0.5.0 |+| `gravitino.entity.store.relational` | Detailed implementation of Relational storage. `H2`, `MySQL` and `PostgreSQL` is supported, and the implementation is `JDBCBackend`. | `JDBCBackend` | No | 0.5.0 || `gravitino.entity.store.relational.jdbcUrl` | The database url that the `JDBCBackend` needs to connect to. If you use `MySQL` or `PostgreSQL`, you should firstly initialize the database tables yourself by executing the ddl scripts in the `${GRAVITINO_HOME}/scripts/{DATABASE_TYPE}/` directory. | `jdbc:h2` | No | 0.5.0 || `gravitino.entity.store.relational.jdbcDriver` | The jdbc driver name that the `JDBCBackend` needs to use. You should place the driver Jar package in the `${GRAVITINO_HOME}/libs/` directory. | `org.h2.Driver` | Yes if the jdbc connection url is not `jdbc:h2` | 0.5.0 || `gravitino.entity.store.relational.jdbcUser` | The username that the `JDBCBackend` needs to use when connecting the database. It is required for `MySQL`. | `gravitino` | Yes if the jdbc connection url is not `jdbc:h2` | 0.5.0 |@@ -74,13 +74,13 @@ The following table lists the storage configuration items:We strongly recommend that you change the default value of `gravitino.entity.store.relational.storagePath`, as it's under the deployment directory and future version upgrades may remove it.:::-#### Create JDBC backend schema and table+#### Create JDBC Backend Schema and TableFor H2 database, All tables needed by Gravitino are created automatically when the Gravitino server starts up. For MySQL, you should firstly initialize the database tables yourself by executing the ddl scripts in the `${GRAVITINO_HOME}/scripts/mysql/` directory.-### Storage cache configuration+### Storage Cache Configuration-To enable storage caching, please modify the following settings in the `${GRAVITINO_HOME}/conf/gravitino.conf` file:+To enable storage caching, modify the following settings in the `${GRAVITINO_HOME}/conf/gravitino.conf` file:```# Whether to enable the cache@@ -107,7 +107,7 @@ gravitino.cache.lockSegments=16- `gravitino.cache.expireTimeInMs`: Controls the cache TTL in milliseconds.- If `gravitino.cache.enableStats` is enabled, Gravitino will log cache statistics (hit count, miss count, load failures, etc.) every 5 minutes at the Info level.-#### Eviction strategies+#### Eviction StrategiesGravitino supports multiple eviction strategies including capacity-based, weight-based, and time-based (TTL) eviction. The following describes how they work with Caffeine:@@ -132,9 +132,9 @@ All cache entries are subject to a TTL (Time-To-Live) expiration policy. By defa- TTL can work in conjunction with both capacity and weight-based eviction;- Expired entries will also trigger asynchronous cleanup mechanisms for resource release and logging.-### Tree lock configuration+### Tree Lock Configuration-Gravitino server uses tree lock to ensure the consistency of the data. The tree lock is a memory lock (Currently, Gravitino only supports in memory lock) that can be used to ensure the consistency of the data in Gravitino server. The configuration items are as follows:+The Gravitino server uses a tree lock to ensure data consistency. The tree lock is an in-memory lock; Gravitino currently supports only in-memory locks. The configuration items are as follows:| Configuration item | Description | Default value | Required | Since Version ||--------------------------------------|---------------------------------------------------------------|---------------|----------|---------------|@@ -142,7 +142,7 @@ Gravitino server uses tree lock to ensure the consistency of the data. The tree| `gravitino.lock.minNodes` | The minimum number of tree lock nodes to keep in memory | 1000 | No | 0.5.0 || `gravitino.lock.cleanIntervalInSecs` | The interval in seconds to clean up the stale tree lock nodes | 60 | No | 0.5.0 |-### Catalog configuration+### Catalog Configuration| Configuration item | Description | Default value | Required | Since version ||----------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|@@ -156,7 +156,7 @@ Gravitino server uses tree lock to ensure the consistency of the data. The tree|-----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|| `gravitino.schema.separator` | The separator used to represent a hierarchical (multi-level) schema in schema names at the API boundary, e.g. `:` for `A:B:C`. It only takes effect for catalogs that support hierarchical schemas (currently the Iceberg catalog). The value must not be blank and must not contain `.` or the internal physical separator (ASCII-1, `\u0001`). See [Hierarchical schema](./lakehouse-iceberg-catalog.md#hierarchical-schema). | `:` | No | 1.3.0 |-### Auxiliary service configuration+### Auxiliary Service Configuration| Configuration item | Description | Default value | Since Version ||-------------------------------|--------------------------------------------------------------------------------------------------------------------------------|---------------|---------------|@@ -164,7 +164,7 @@ Gravitino server uses tree lock to ensure the consistency of the data. The treeRefer to [Iceberg REST catalog service](iceberg-rest-service.md) for configuration details.-### Event listener configuration+### Event Listener ConfigurationGravitino provides event listener mechanism to allow users to capture the events which are provided by Gravitino server to integrate some custom operations.@@ -231,7 +231,7 @@ Gravitino triggers a pre-event before the operation, a post-event after the comp| policy operation | `CreatePolicyPreEvent`, `AlterPolicyPreEvent`, `DeletePolicyPreEvent`, `GetPolicyPreEvent`, `ListPoliciesPreEvent`, `ListPolicyInfosPreEvent`, `EnablePolicyPreEvent`, `DisablePolicyPreEvent`, `GetPolicyForMetadataObjectPreEvent`, `AssociatePoliciesForMetadataObjectPreEvent`, `ListPolicyInfosForMetadataObjectPreEvent`, `ListMetadataObjectsForPolicyPreEvent` | 1.1.0 || function operation | `RegisterFunctionPreEvent`, `GetFunctionPreEvent`, `AlterFunctionPreEvent`, `DropFunctionPreEvent`, `ListFunctionPreEvent` | 1.3.0 |-#### Event listener plugin+#### Event Listener PluginThe `EventListenerPlugin` defines an interface for event listeners that manage the lifecycle and state of a plugin. This includes handling its initialization, startup, and shutdown processes, as well as handing events triggered by various operations.@@ -243,9 +243,9 @@ The plugin provides several operational modes for how to process event, supporti- **ASYNC_ISOLATED**: Events are processed asynchronously, with each listener having its own dedicated queue and dispatcher thread. This approach offers better isolation but at the expense of multiple queues and dispatchers.-When processing pre-event, you could throw a `ForbiddenException` to skip the following executions. For more details, please refer to the definition of the plugin.+When processing pre-event, you could throw a `ForbiddenException` to skip the following executions. For more details, refer to the definition of the plugin.-### Audit log configuration+### Audit Log ConfigurationThe audit log framework defines how audit logs are formatted and written to various storages. The formatter defines an interface that transforms different `Event` types into a unified `AuditLog`. The writer defines an interface to writing AuditLog to different storages.@@ -257,11 +257,11 @@ Gravitino provides a default implementation to log basic audit information to a| `gravitino.audit.writer.className` | The class name of audit log writer. | org.apache.gravitino.audit.FileAuditWriter | NO | 0.7.0-incubating || `gravitino.audit.formatter.className` | The class name of audit log formatter. | org.apache.gravitino.audit.v2.SimpleFormatterV2 | NO | 0.7.0-incubating |-#### Audit log formatter+#### Audit Log FormatterThe `Formatter` interface transforms an `Event` into an `AuditLog`. `SimpleFormatterV2` is the default implementation and requires no extra configuration. It produces a tab-separated line with the following fields: timestamp, user, operation type, identifier, operation status, event source, remote address, and custom info.-#### Audit log writer+#### Audit Log WriterThe `AuditLogWriter` interface enables writing audit logs to different storage mediums (files, databases, etc.).@@ -291,17 +291,17 @@ Example — adjust retention to 90 days:appender.audit_file.strategy.delete.ifLastModified.age = 90d```-### Security configuration+### Security ConfigurationRefer to [security](security/security.md) for HTTPS and authentication configurations.-### Metrics configuration+### Metrics Configuration| Property name | Description | Default value | Required | Since Version ||-------------------------------------------|------------------------------------------------------|---------------|----------|---------------|| `gravitino.metrics.timeSlidingWindowSecs` | The seconds of Gravitino metrics time sliding window | 60 | No | 0.5.1 |-### Health check endpoints+### Health Check EndpointsGravitino exposes three health check endpoints following [MicroProfile Health](https://microprofile.io/project/eclipse/microprofile-health) semantics. All endpoints are exempt from authentication so that Kubernetes probes, load balancers, and global traffic managers can reach them without credentials.@@ -358,7 +358,7 @@ Unhealthy response (HTTP 503):Possible `reason` values in the `entityStore` DOWN check: `timeout`, `interrupted`, `probe-rejected`, or the class name of an unexpected exception.-### Memory settings+### Memory Settings`GRAVITINO_MEM` sets JVM heap/metaspace flags for the Gravitino server and is also read by the Iceberg REST server and Lance REST server launchers.@@ -369,7 +369,7 @@ Typical values:- Moderate production: `-Xms4g -Xmx4g -XX:MaxMetaspaceSize=1g`- Larger deployments: `-Xms8g -Xmx8g -XX:MaxMetaspaceSize=1g` or higher depending on catalog count, plugins, and query concurrency-## Apache Gravitino catalog properties configuration+## Catalog Properties ConfigurationThere are three types of catalog properties:@@ -419,13 +419,13 @@ The following table lists the catalog specific properties and their default pathThe Gravitino server automatically adds the catalog properties configuration directory to classpath.:::-## Some other configurations+## Some Other ConfigurationsYou could put HDFS configuration file to the catalog properties configuration dir, like `catalogs/lakehouse-iceberg/conf/`.-## Docker instructions+## Docker Instructions-You can run the Gravitino server through a Docker container:+Run the Gravitino server in a Docker container:```shelldocker run -d -p 8090:8090 apache/gravitino:latest@@ -534,7 +534,7 @@ docker run --rm -d \apache/gravitino:<tag>```-You can verify that the configuration was applied correctly by inspecting the container's `gravitino.conf`:+Verify that the configuration was applied correctly by inspecting the container's `gravitino.conf`:```shelldocker exec -it <container_id> cat /opt/gravitino/conf/gravitino.conf@@ -551,16 +551,16 @@ If both `gravitino.conf` and environment variable exist, the container’s start:::-## How to set up runtime environment variables+## Set Up Runtime Environment VariablesThe Gravitino server supports configuring runtime environment variables in two ways:1. **Local deployment:** Modify `gravitino-env.sh` located in the `conf` directory.2. **Docker container deployment:** Use environment variable injection during container startup. *(Since 1.0.0)*-### How to access Apache Hadoop+### Access Apache Hadoop-Currently, due to the absence of a comprehensive user permission system, Gravitino can only use a single username for+Due to the absence of a comprehensive user permission system, Gravitino can only use a single username forApache Hadoop access. Ensure that the user starting the Gravitino server has Hadoop (HDFS, YARN, etc.) accesspermissions; otherwise, you may encounter a `Permission denied` error. There are two ways to resolve this error:diff --git a/docs/hive-catalog-with-cloud-storage.md b/docs/hive-catalog-with-cloud-storage.mdindex 8344bc5b4b..03f0f343be 100644--- a/docs/hive-catalog-with-cloud-storage.md+++ b/docs/hive-catalog-with-cloud-storage.md@@ -1,8 +1,8 @@----title: "Hive catalog with S3, ADLS and GCS"-slug: /hive-catalog+title: "Hive Catalog with Cloud Storage"+slug: "/hive-catalog"date: 2024-9-24-keyword: Hive catalog cloud storage S3 ADLS GCS+keyword: "Hive catalog cloud storage S3 ADLS GCS"license: "This software is licensed under the Apache License version 2."---@@ -15,7 +15,7 @@ For ADLS (aka. Azure Blob Storage (ABS), or Azure Data Lake Storage (v2)) and GCThe following sections will guide you through the necessary steps to configure the Hive catalog to utilize S3, ADLS, and GCS as a storage backend, including configuration details and examples for creating databases and tables.-## Hive metastore configuration+## Hive Metastore ConfigurationThe following will mainly focus on configuring the Hive metastore to use S3 as a storage backend. The same configuration can be applied to ADLS and GCS with minor changes in the configuration properties.@@ -76,7 +76,7 @@ It's also applicable for Azure Blob Storage(ADLS) and GCS.```-### Adding Required JARs+### Add Required JARsAfter updating the `hive-site.xml`, you need to ensure that the necessary S3-related JARs are included in the Hive classpath. You can do this by executing the following command:```shell@@ -93,12 +93,12 @@ cp gcs-connector-hadoop3-2.2.22-shaded.jar ${HIVE_HOME}/libAlternatively, you can download the required JARs from the Maven repository and place them in the Hive classpath. It is crucial to verify that the JARs are compatible with the version of Hadoop you are using to avoid any compatibility issue.-### Restart Hive metastore+### Restart Hive MetastoreOnce all configurations have been correctly set, restart the Hive cluster to apply the changes. This step is essential to ensure that the new configurations take effect and that the Hive services can communicate with S3.-## Creating Tables or Databases with S3 Storage using Gravitino+## Create Tables or Databases with S3 Storage Using GravitinoAssuming you have already set up a Hive catalog with Gravitino, you can proceed to create tables or databases using S3 storage. For more information on catalog operations, refer to [Catalog operations](./manage-fileset-metadata-using-gravitino.md#catalog-operations)@@ -160,11 +160,11 @@ Schema schema = supportsSchemas.createSchema("hive_schema",</TabItem></Tabs>-After creating the database, you can proceed to create tables under this schema using S3 storage. For further details on table operations, please refer to [Table operations](./manage-relational-metadata-using-gravitino.md#table-operations).+After creating the database, you can proceed to create tables under this schema using S3 storage. For further details on table operations, refer to [Table operations](./manage-relational-metadata-using-gravitino.md#table-operations).-## Access tables with S3 storage by Hive CLI+## Access Tables with S3 Storage by Hive CLI-Assuming you have already created a table in the section [Creating Tables or Databases with S3 Storage using Gravitino](#creating-tables-or-databases-with-s3-storage-using-gravitino), let’s say the table is named `hive_table`. You can access the database/table and view its details using the Hive CLI as follows:+Assuming you have already created a table in the section [Create Tables or Databases with S3 Storage Using Gravitino](#create-tables-or-databases-with-s3-storage-using-gravitino), let’s say the table is named `hive_table`. You can access the database/table and view its details using the Hive CLI as follows:```shell@@ -230,7 +230,7 @@ Time taken: 0.116 seconds, Fetched: 1 row(s)This command shows the creation details of the database hive_schema, including its location in S3 and any associated properties.-## Accessing Tables with S3 Storage via Spark+## Access Tables with S3 Storage via SparkTo access S3-stored tables using Spark, you need to configure the SparkSession appropriately. Below is an example of how to set up the SparkSession with the necessary S3 configurations:diff --git a/docs/how-to-build.md b/docs/how-to-build.mdindex a675c1f0ff..52d79e21d9 100644--- a/docs/how-to-build.md+++ b/docs/how-to-build.md@@ -1,12 +1,12 @@----title: How to build Apache Gravitino-slug: /how-to-build+title: "Build Gravitino"+slug: "/how-to-build"license: "This software is licensed under the Apache License version 2."----- [Prerequisites](#prerequisites)-- [Quick start](#quick-start)-- [How to Build Apache Gravitino on Windows (Using WSL)](#how-to-build-apache-gravitino-on-windows-using-wsl)+## Introduction++Gravitino builds from source on Linux and macOS natively, and on Windows through WSL. The sections below cover prerequisites, the quick-start build sequence for the server and connectors, and the Windows-specific setup steps.## Prerequisites@@ -28,11 +28,11 @@ license: "This software is licensed under the Apache License version 2."+ Depending on how you deploy Gravitino, other software used in conjunction with Gravitino may contain known security vulnerabilities.:::-## Quick start+## Quick Start1. Clone the Gravitino project.- If you want to contribute to this open-source project, please fork the project on GitHub first. After forking, clone the forked project to your local environment, make your changes, and submit a pull request (PR).+ If you want to contribute to this open-source project, fork the project on GitHub first. After forking, clone the forked project to your local environment, make your changes, and submit a pull request (PR).```shellgit clone [email protected]:apache/gravitino.git@@ -47,7 +47,7 @@ license: "This software is licensed under the Apache License version 2."The `./gradlew build` command builds all the Gravitino components, including the Gravitino server, Java and Python clients, Trino and Spark connectors, and more.- For the Python client, the `./gradlew build` command builds the Python client with Python 3.12 by default. If you want to use Python 3.10 or 3.11 to build, please modify the property `pythonVersion` to 3.10 or 3.11 in the `gradle.properties` file, or specify the version with `-P` like:+ For the Python client, the `./gradlew build` command builds the Python client with Python 3.12 by default. If you want to use Python 3.10 or 3.11 to build, modify the property `pythonVersion` to 3.10 or 3.11 in the `gradle.properties` file, or specify the version with `-P` like:```shell./gradlew build -PpythonVersion=3.10@@ -88,9 +88,9 @@ license: "This software is licensed under the Apache License version 2."You can add `-x test` to skip the tests using `./gradlew build -x test`.- The built Gravitino libraries are Java 17 compatible and verified under 17 environments. You can use Java 17 runtimes to run the Gravitino server, no matter which JDK version was used to build the project.+ The built Gravitino libraries are Java 17 compatible and verified under 17 environments. Use Java 17 runtimes to run the Gravitino server, no matter which JDK version was used to build the project.- The built jars are under the modules `build/libs` directory. You can publish them in your Maven repository for use in your project.+ The built jars are under the modules `build/libs` directory. Publish them in your Maven repository for use in your project.:::3. Get the Gravitino server binary package.@@ -120,9 +120,9 @@ license: "This software is licensed under the Apache License version 2."The `assembleDistribution` command creates `gravitino-{version}-bin.tar.gz`, `gravitino-{version}-bin.tar.gz.sha256`, `gravitino-{version}-bin-all.tar.gz`, `gravitino-{version}-bin-all.tar.gz.sha256` under the `distribution` directory.- About the difference between `gravitino-{version}-bin.tar.gz` and `gravitino-{version}-bin-all.tar.gz`, please refer to the explanation of the difference between `package` and `package-all` in the previous step.+ `gravitino-{version}-bin.tar.gz` and `gravitino-{version}-bin-all.tar.gz` follow the same distinction as `package` and `package-all` from the previous step.- You can deploy these to your production environment.+ Deploy these to your production environment.:::noteThe `gravitino-{version}-bin.tar.gz` file is the Gravitino **server** distribution package, and the `gravitino-{version}-bin.tar.gz.sha256` file is the sha256 checksum file for the Gravitino server distribution package.@@ -151,7 +151,7 @@ license: "This software is licensed under the Apache License version 2."This creates `gravitino-iceberg-rest-server-{version}.tar.gz` and `gravitino-iceberg-rest-server-{version}.tar.gz.sha256` under the `distribution` directory. You can uncompress and deploy it to use the Gravitino Iceberg REST server.-## How to build Apache Gravitino on Windows (Using WSL)+## Build on Windows (Using WSL)### Download WSL (Ubuntu)@@ -163,7 +163,7 @@ Refer to this guide for installation: [WSL Installation Guide](https://learn.micThis step involves setting up your Windows machine's Windows Subsystem for Linux (WSL). WSL allows you to run a Linux distribution alongside Windows, providing a Linux-like environment for development.-### Update package list and install necessary packages+### Update Package List and Install Necessary Packages**On Ubuntu (WSL):**@@ -174,7 +174,7 @@ sudo apt install apt-transport-https ca-certificates curl software-properties-coUpdating the package list ensures you have the latest information on the newest versions of packages and dependencies. Installing the necessary packages lets your system download and manage additional software securely.-### Download and setup Java SDK 17+### Download and Set Up Java SDK 17**On Ubuntu (WSL):**@@ -229,7 +229,7 @@ python3.11 --versionThese commands add a repository that provides the latest Python versions and installs Python 3.11.-### Download Apache Gravitino project to WSL+### Download Apache Gravitino Project to WSL**On Ubuntu (WSL):**@@ -245,6 +245,6 @@ Access [http://localhost:8090](http://localhost:8090)Building the Gravitino project compiles the necessary components, and starting the server allows you to access the application in your browser.-Please refer to [CONTRIBUTING.md](https://github.com/apache/gravitino/blob/main/CONTRIBUTING.md) for instructions on running the project using VSCode or IntelliJ on Windows.+Refer to [CONTRIBUTING.md](https://github.com/apache/gravitino/blob/main/CONTRIBUTING.md) for instructions on running the project using VSCode or IntelliJ on Windows.<img src="https://analytics.apache.org/matomo.php?idsite=62&rec=1&bots=1&action_name=HowToBuild" alt="" />diff --git a/docs/how-to-install.md b/docs/how-to-install.mdindex 7626beb427..d7c21b3d65 100644--- a/docs/how-to-install.md+++ b/docs/how-to-install.md@@ -1,10 +1,10 @@----title: How to install Apache Gravitino-slug: /how-to-install+title: "Install Gravitino"+slug: "/how-to-install"license: "This software is licensed under the Apache License version 2."----## Install Apache Gravitino from scratch+## Install from a Binary Release:::noteApache Gravitino supports running on Java 17, and higher versions should also work but not fully tested. Make sure you have Java installed and@@ -12,12 +12,12 @@ Apache Gravitino supports running on Java 17, and higher versions should also wo`${JAVA_HOME}/bin/java -version` command.:::-The Gravitino package comprises both the Gravitino server and the Gravitino Iceberg REST server. You can manage these servers independently or run them concurrently on a single server.+The Gravitino package comprises both the Gravitino server and the Gravitino Iceberg REST server. Manage these servers independently or run them concurrently on a single server.-### Get the Apache Gravitino binary distribution package+### Get the Binary Distribution Package-Before installing Gravitino, make sure you have the Gravitino binary distribution package. You can download the latest Gravitino binary distribution package from [GitHub](https://github.com/apache/gravitino/releases).-You can also build it yourself by following the instructions in [How to Build Gravitino](./how-to-build.md).+Before installing Gravitino, make sure you have the Gravitino binary distribution package. Download the latest Gravitino binary distribution package from [GitHub](https://github.com/apache/gravitino/releases).+To build it yourself, follow the instructions in [How to Build Gravitino](./how-to-build.md).- If you build Gravitino yourself using the `./gradlew compileDistribution` command, you can find the Gravitino binary distribution package in the `distribution/package` and `distribution/package-all` directory. The main difference between these two packages is that the `package-all` package contains all catalogs including catalog under folder `catalogs-contrib`, while the `package` package only contains the main catalogs under folder `catalogs`.@@ -59,29 +59,29 @@ The Gravitino binary distribution package contains the following files::::noteCatalogs `OceanBase` and `ClickHouse` are not included in the Gravitino binary distribution package (see above) by default due to package size limitations and License compatibility issues since 1.2.0.-If you want to use these two catalogs, please build the Gravitino binary distribution package by yourself and use tarball `gravitino-<version>-bin-all.tar.gz`, which contains all catalogs including those in the `catalogs-contrib` module.-For more details about it, please refer to [Reorg catalogs structure](https://github.com/apache/gravitino/pull/9781)+If you want to use these two catalogs, build the Gravitino binary distribution package yourself and use tarball `gravitino-<version>-bin-all.tar.gz`, which contains all catalogs including those in the `catalogs-contrib` module.+For more details about it, refer to [Reorg catalogs structure](https://github.com/apache/gravitino/pull/9781):::#### Initialize the RDBMS (Optional)-If you want to use the relational backend storage, you need to initialize the RDBMS first. For the details on initializing the RDBMS, please check [How to use relational backend storage](./how-to-use-relational-backend-storage.md).+If you want to use the relational backend storage, you need to initialize the RDBMS first. For the details on initializing the RDBMS, see [How to use relational backend storage](./how-to-use-relational-backend-storage.md).-#### Configure the Apache Gravitino server+#### Configure the Server-The Gravitino server configuration file is `conf/gravitino.conf`. You can configure the Gravitino server by modifying this file. Basic configurations have already been added to this file. All the configurations are listed in [Gravitino Server Configurations](./gravitino-server-config.md).+The Gravitino server configuration file is `conf/gravitino.conf`. Configure the Gravitino server by modifying this file. Basic configurations have already been added to this file. All the configurations are listed in [Gravitino Server Configurations](./gravitino-server-config.md).-#### Configure the Apache Gravitino server log+#### Configure the Server Log-The Gravitino server log configuration file is `conf/log4j2.properties`. Gravitino uses Log4j2 as the Logging system. You can [Log4j2](https://logging.apache.org/log4j/2.x/) to do the log configuration.+The Gravitino server log configuration file is `conf/log4j2.properties`. Gravitino uses Log4j2 as the logging system. Refer to the [Log4j2 configuration guide](https://logging.apache.org/log4j/2.x/) to do the log configuration.-#### Configure the Apache Gravitino server environment+#### Configure the Server Environment-The Gravitino server environment configuration file is `conf/gravitino-env.sh`. Gravitino exposes several environment variables. You can modify them in this file.+The Gravitino server environment configuration file is `conf/gravitino-env.sh`. Gravitino exposes several environment variables. Modify them in this file.-#### Configure Apache Gravitino catalogs+#### Configure Catalogs-Gravitino supports multiple catalogs. You can configure the catalog-level configurations by modifying the related configuration file in the `catalogs/<catalog-provider>/conf` directory. The configurations you set here apply to all the catalogs of the same type you create.+Gravitino supports multiple catalogs. Configure the catalog-level configurations by modifying the related configuration file in the `catalogs/<catalog-provider>/conf` directory. The configurations you set here apply to all the catalogs of the same type you create.For example, if you want to configure the Hive catalog, you can modify the file `catalogs/hive/conf/hive.conf`. The detailed configurations are listed in the specific catalog documentation.@@ -98,7 +98,7 @@ Gravitino supports passing in catalog-specific configurations if you add `gravitAlso, Gravitino supports loading catalog-specific configurations from external files. For example,you can put your own `hive-site.xml` file in the `catalogs/hive/conf` directory, and Gravitino loads it automatically.-#### Start Apache Gravitino server+#### Start the ServerAfter configuring the Gravitino server, start the Gravitino server by running:@@ -106,13 +106,13 @@ After configuring the Gravitino server, start the Gravitino server by running:./bin/gravitino.sh start```-Alternatively, to start the Gravitino server Web UI, please run:+Alternatively, to start the Gravitino server Web UI, run:```shell./bin/gravitino.sh run```-You can access the Gravitino Web UI by typing [http://localhost:8090](http://localhost:8090) in your browser, or you can run:+Access the Gravitino Web UI by typing [http://localhost:8090](http://localhost:8090) in your browser, or you can run:```shellcurl -v -X GET -H "Accept: application/vnd.gravitino.v1+json" -H "Content-Type: application/json" http://localhost:8090/api/version@@ -124,15 +124,15 @@ to make sure Gravitino is running.If you need to debug the Gravitino server, enable the `GRAVITINO_DEBUG_OPTS` environment variable in the `conf/gravitino-env.sh` file. Then create a `Remote JVM Debug` configuration in `IntelliJ IDEA` and debug `gravitino.server.main`.:::-#### Manage Gravitino Iceberg REST server in Gravitino package+#### Manage Gravitino Iceberg REST Server in Gravitino Package-You can run the Iceberg REST server as either a standalone server or as an auxiliary service embedded in the Gravitino server. To start it as a standalone server, use the command `./bin/gravitino-iceberg-rest-server.sh start` with configurations specified in `./conf/gravitino-iceberg-rest-server.conf`. Alternatively, use `./bin/gravitino.sh start` to launch a Gravitino server that integrates both the Iceberg REST service and the Gravitino service, with all configurations centralized in `conf/gravitino.conf`.+Run the Iceberg REST server as either a standalone server or as an auxiliary service embedded in the Gravitino server. To start it as a standalone server, use the command `./bin/gravitino-iceberg-rest-server.sh start` with configurations specified in `./conf/gravitino-iceberg-rest-server.conf`. Alternatively, use `./bin/gravitino.sh start` to launch a Gravitino server that integrates both the Iceberg REST service and the Gravitino service, with all configurations centralized in `conf/gravitino.conf`.-For more detailed information about the Gravitino Iceberg REST server, please refer to [Iceberg REST server document](./iceberg-rest-service.md).+For more detailed information about the Gravitino Iceberg REST server, refer to [Iceberg REST server document](./iceberg-rest-service.md).-## Install Apache Gravitino using Docker+## Install Using Docker-### Get the Apache Gravitino Docker image+### Get the Docker ImageGravitino publishes the Docker image to [Docker Hub](https://hub.docker.com/r/apache/gravitino/tags).Run the Gravitino Docker image by running:@@ -161,7 +161,7 @@ docker run -d -i -p 8090:8090 \apache/gravitino:<version>```-## Install Apache Gravitino using Docker compose+## Install Using Docker ComposeThe published Gravitino Docker image only contains the Gravitino server with a basic configuration. If you want to experience the whole Gravitino system with other components, use the Docker `compose` file.@@ -171,7 +171,7 @@ For the details, review the<img src="https://analytics.apache.org/matomo.php?idsite=62&rec=1&bots=1&action_name=HowToInstall" alt="" />-## Deploy Apache Gravitino on Kubernetes Using Helm Chart+## Deploy on Kubernetes Using Helm ChartThe Apache Gravitino Helm chart provides a way to deploy Gravitino on Kubernetes with fully customizable configurations.For detailed installation instructions and configuration options, refer to the [Apache Gravitino Helm Chart](./chart.md).diff --git a/docs/how-to-sign-releases.md b/docs/how-to-sign-releases.mdindex 40aae0746a..ffe02b997f 100644--- a/docs/how-to-sign-releases.md+++ b/docs/how-to-sign-releases.md@@ -1,9 +1,11 @@----title: How to sign and verify Gravitino releases-slug: /how-to-sign-releases+title: "Sign and Verify Releases"+slug: "/how-to-sign-releases"license: "This software is licensed under the Apache License version 2."---+## Introduction+These instructions provide a guide to signing and verifying Apache Gravitino releases to enhance the security of releases. A signed release enables people to confirm the author of the release and guarantees that the code hasn't been altered.## Prerequisites@@ -13,7 +15,7 @@ Before signing or verifying a Gravitino release, ensure you have the following p- GPG/GnuPG- Release artifacts-## Platform support+## Platform SupportThese instructions are for macOS. You may need to make adjustments for other platforms.@@ -33,7 +35,7 @@ Before signing or verifying a Gravitino release, ensure you have the following pbrew install gpg```-## Signing a release+## Sign a Release1. **Create a Public/Private Key Pair:**@@ -155,7 +157,7 @@ Keep your private key secure and saved somewhere other than just on your computeUpload the generated .asc and .sha256 files along with the release artifacts and KEYS file to the release area.-## Verifying a release+## Verify a Release1. **Import public keys:**diff --git a/docs/how-to-test.md b/docs/how-to-test.mdindex fc8591889a..d9c6416b83 100644--- a/docs/how-to-test.md+++ b/docs/how-to-test.md@@ -1,9 +1,11 @@----title: How to test Apache Gravitino-slug: /how-to-test+title: "Test Gravitino"+slug: "/how-to-test"license: "This software is licensed under the Apache License version 2."---+## Introduction+Apache Gravitino has two types of tests:- Unit tests, focus on the functionalities of the specific class, module, or component.@@ -14,7 +16,7 @@ Apache Gravitino has two types of tests:environment.* Refer to [How to build Gravitino](./how-to-build.md) to make sure you havea build environment ready.-* You can use [OrbStack](https://orbstack.dev/) to replace Docker Desktop+* Use [OrbStack](https://orbstack.dev/) to replace Docker Desktopon macOS. OrbStack automatically configures the network between the Docker containers.* If you are using Docker Desktop for macOS, launch the[mac-docker-connector](https://github.com/wenjunxiao/mac-docker-connector) before running the tests.@@ -22,7 +24,7 @@ Apache Gravitino has two types of tests:`$GRAVITINO_HOME/dev/docker/tools/mac-docker-connector.sh` for more details.:::-## Run the unit tests+## Run the Unit TestsTo run the unit tests, run the following command:@@ -33,7 +35,7 @@ To run the unit tests, run the following command:This command runs all the unit tests and skips the integration tests.-## Run the integration tests+## Run the Integration TestsGravitino has two modes to run the integration tests, the default `embedded` mode and `deploy` mode.@@ -43,7 +45,7 @@ Gravitino has two modes to run the integration tests, the default `embedded` modintegration test launches and connects to the local Gravitino server to run the integrationtests.-### Run the integration tests in embedded mode+### Run the Integration Tests in Embedded Mode1. Run the `./gradlew build -x test` command to build the Gravitino project.@@ -54,7 +56,7 @@ Gravitino has two modes to run the integration tests, the default `embedded` modRunning the `./gradlew build` command triggers the build and runs the integration tests in embedded mode.:::-### Deploy the Apache Gravitino server and run the integration tests in deploy mode+### Deploy the Server and Run the Integration Tests in Deploy ModeTo deploy the Gravitino server locally to run the integration tests, follow these steps:@@ -71,21 +73,23 @@ To deploy the Gravitino server locally to run the integration tests, follow thesAlternatively, use `bash trino-connector/integration-test/trino-test-tools/run_test_with_versions.sh` command to executetests across different Trino versions.-## Skip tests+## Skip Tests* Skip unit tests by using the `./gradlew build -PskipTests` command.* Skip integration tests by using the `./gradlew build -PskipITs` command.* Skip web frontend integration tests by using the `./gradlew build -x :web:integration-test:test` command.* Skip both unit tests and integration tests by using the `./gradlew build -x test` or `./gradlew build -PskipTests -PskipITs` commands.-## Configuring parameters for integration tests+## Configure Parameters for Integration Tests+### `DISPLAY_WEBPAGE_IN_TESTING`+By default, the Gravitino web frontend page will not pop up when running integration tests.If you wish to display the web frontend page during integrations test, you can set the `DISPLAY_WEBPAGE_IN_TESTING` environment variable in `setIntegrationTestEnvironment` in file build.gradle.kts.For example:```param.environment("DISPLAY_WEBPAGE_IN_TESTING", true)```-## Docker test environment+## Docker Test EnvironmentSome integration test cases depend on the Gravitino CI Docker image.@@ -105,7 +109,7 @@ public class CatalogHiveIT extends AbstractIT {}```-## Running all the integration tests+## Run All Integration Tests:::note* Make sure that the `Docker server` is running before running all the@@ -133,13 +137,13 @@ Using Gravitino IT Docker container to run all integration tests. [deploy test]Complete integration tests only run when all the required environments are met. Otherwise,only parts of them without the `gravitino-docker-test` tag run.-## How to debug Apache Gravitino server and integration tests in embedded mode+## Debug Server and Integration Tests in Embedded ModeBy default, the integration tests run in the embedded mode, in which `MiniGravitino` starts in thesame process. Debugging `MiniGravitino` is simple and easy, you can modify any code in theGravitino project and set breakpoints anywhere.-## How to debug Apache Gravitino server and integration tests in deploy mode+## Debug Server and Integration Tests in Deploy ModeThis mode is closer to the actual environment, but more complex to debug. To debug the Gravitino server code, follow these steps:@@ -154,7 +158,7 @@ This mode is closer to the actual environment, but more complex to debug. To deb* Select the `gravitino.server.main` module classpath in the `Remote JVM Debug` to attach theGravitino server process and debug it.-## Running on GitHub actions+## Run on GitHub Actions* GitHub Actions automatically run integration tests in the embedded and deploy modes when yousubmit a pull request.@@ -164,7 +168,7 @@ This mode is closer to the actual environment, but more complex to debug. To deb* The Gravitino project compiles and packages in the `distribution` directory using the `./gradlew compileDistribution` command.* Run the `./gradlew test -PtestMode=[embedded|deploy]` command.-## Test failure and test log+## Test Failure and Test LogsIf a test fails, you can retrieve valuable information from the logs and test reports. Test reports are in the `./build/reports` directory. The integration test logs are in the `./integrate-test/build` directory. In deploy mode, Gravitino server logs are in the `./distribution/package/logs/` directory.diff --git a/docs/how-to-upgrade.md b/docs/how-to-upgrade.mdindex d9f7aac1ef..71774b3e01 100644--- a/docs/how-to-upgrade.md+++ b/docs/how-to-upgrade.md@@ -1,10 +1,11 @@----title: How to upgrade Apache Gravitino-slug: /how-to-upgrade+title: "Upgrade Gravitino"+slug: "/how-to-upgrade"license: "This software is licensed under the Apache License version 2."---## Introduction+This document describes how to upgrade the schema of backendGravitino instance from one release version of Gravitino to anotherrelease version of Gravitino. For example, by following the steps listed@@ -15,13 +16,15 @@ document and familiarize yourself with the required tools.## Upgrade Steps-### Step 1: Shutdown your Gravitino instance-Shutdown your Gravitino instance and restrict access to the+### Step 1: Shut Down the Gravitino Instance++Shut down the Gravitino instance and restrict access to theApache Gravitino's database. It is very important that no one elseaccesses or modifies the contents of database while you areperforming the schema upgrade.-### Step 2: Backup your Gravitino instance+### Step 2: Back Up the Gravitino Instance+Create a backup of your database. This will allowyou to revert any changes made during the upgrade process ifsomething goes wrong.@@ -37,27 +40,32 @@ Note that you may also need to specify a hostname and usernameusing the `--host` and `--user` command line switches.#### H2+The easiest way of accomplishing this task isby creating a copy of the directory containing your database.#### PostgreSQL+For PostgreSQL, you can use the following command to backup your database:```shellpg_dump -U username -h hostname -d database_name -n schema_name -a -F c -f data_backup.sql```-### Step 3: Dump your Gravitino database+### Step 3: Dump the Gravitino Database+Dump your Gravitino database schema to a file#### MySQL-You can use the mysqldump utility to dump the database schema to a file:++Use the mysqldump utility to dump the database schema to a file:```shellmysqldump --skip-add-drop-table --no-data <db_name> > schema-x.y.z-mysql.sql```#### H2+For H2, you can use the `Script` tool to dump the database schema to a file:```shell@@ -67,13 +75,15 @@ java -cp h2-1.4.200.jar org.h2.tools.Script -url "jdbc:h2:file:<db_file>;DB_CLOSNote that you may need to specify your h2 file path, username and password#### PostgreSQL+For PostgreSQL, you can use the following command to dump the database schema to a file:```shellpg_dump -U username -h hostname -d database_name -n schema_name -s -F c -f schema-x.y.z-postgresql.sql```-### Step 4: Determine differences between your schema and the official schema+### Step 4: Determine Differences Between the Existing Schema and the Official Schema+The schema upgrade scripts assume that the schema you are upgradingclosely matches the official schema for your particular version ofGravitino. The files in this directory with names like@@ -85,7 +95,8 @@ you created in the previous step. Some differences are acceptable and will not iwith the upgrade process, but others need to be resolved manuallyor the upgrade scripts will fail to complete.-### Step 5: Apply the upgrade scripts+### Step 5: Apply the Upgrade Scripts+You are now ready to run the schema upgrade scripts. If you areupgrading from Gravitino 0.6.0 to Gravitino 0.7.0 you need to run the`upgrade-0.6.0-to-0.7.0-<type>.sql` script, but if you are upgrading@@ -93,6 +104,7 @@ from 0.6.0 to 0.8.0 you will need to run the 0.6.0 to 0.7.0 upgradescript followed by the 0.7.0 to 0.8.0 upgrade script.#### MySQL+Assuming you are upgrading the version of Gravitino server from 0.6.0 to 0.8.0```shell@@ -102,7 +114,9 @@ Database changedmysql> source upgrade-0.6.0-to-0.7.0-mysql.sqlmysql> source upgrade-0.7.0-to-0.8.0-mysql.sql```+#### H2+For H2, you can use the `RunScript` tool to apply the upgrade script:```shell@@ -111,6 +125,7 @@ java -cp h2-1.4.200.jar org.h2.tools.RunScript -url "jdbc:h2:file:<db_file>;DB_C```#### PostgreSQL+For PostgreSQL, you can use the following command to apply the upgrade script:```shell@@ -123,7 +138,8 @@ These scripts should run to completion without any errors. If youdo encounter errors you need to analyze the cause and attempt totrace it back to one of the preceding steps.-### Step 6: Verify the upgrade+### Step 6: Verify the Upgrade+The final step of the upgrade process is validating your freshlyupgraded schema against the official schema for your particularversion of Gravitino. This is accomplished by repeating steps (3) anddiff --git a/docs/how-to-use-gravitino-client.md b/docs/how-to-use-gravitino-client.mdindex 2f559f3a27..321956d47e 100644--- a/docs/how-to-use-gravitino-client.md+++ b/docs/how-to-use-gravitino-client.md@@ -1,23 +1,23 @@----title: "How to use Apache Gravitino client"-slug: /how-to-use-gravitino-client+title: "Java Client"+slug: "/how-to-use-gravitino-client"date: 2025-07-09-keyword: Gravitino client-license: This software is licensed under the Apache License version 2.+keyword: "Gravitino client"+license: "This software is licensed under the Apache License version 2."---## Introduction-You can use Gravitino Java client library with Spark, Spring and other Java environment or+Use Gravitino Java client library with Spark, Spring and other Java environment oruse Gravitino Python client library with Spark, PyTorch, Tensorflow, Ray and Python environment.First of all, you must have a Gravitino server set up and run, you can refer document of[how to install Gravitino](./how-to-install.md) to build Gravitino server from source code andinstall it in your local.-## Gravitino Java client+## Java Client-You can customize the Gravitino Java client by using `withClientConfig` like this:+Customize the Gravitino Java client by using `withClientConfig` like this:```javaMap<String, String> properties =@@ -37,7 +37,7 @@ GravitinoAdminClient gravitinoAdminClient = GravitinoAdminClient.builder("http:/// ...```-### Gravitino Java client configuration+### Java Client Configuration| Configuration item | Description | Default value | Required | Since version ||----------------------------------------|------------------------------------------------------|---------------------|----------|---------------|@@ -46,9 +46,9 @@ GravitinoAdminClient gravitinoAdminClient = GravitinoAdminClient.builder("http:/**Note:** Invalid configuration properties will result in exceptions.-## Gravitino Python client+## Python Client-You can customize the Gravitino Python client with config properties like this:+Customize the Gravitino Python client with config properties like this:```pythongravitino_admin_client = GravitinoAdminClient(@@ -65,7 +65,7 @@ gravitino_client = GravitinoClient(# ...```-### Gravitino Python client configuration+### Python Client Configuration| Configuration item | Description | Default value | Required | Since version ||------------------------------------|----------------------------------------|---------------|----------|---------------|diff --git a/docs/how-to-use-gvfs.md b/docs/how-to-use-gvfs.mdindex 1710a31f76..a220aa300e 100644--- a/docs/how-to-use-gvfs.md+++ b/docs/how-to-use-gvfs.md@@ -1,6 +1,6 @@----title: How to use Apache Gravitino Virtual File System with Filesets-slug: /how-to-use-gvfs+title: "Gravitino Virtual File System"+slug: "/how-to-use-gvfs"license: "This software is licensed under the Apache License version 2."---@@ -32,19 +32,17 @@ fileset/${catalog_name}/${schema_name}/${fileset_name}/sub_dir/Here `gvfs` is the scheme of the GVFS, `fileset` is the root directory of the GVFS which can'tmodified, and `${catalog_name}/${schema_name}/${fileset_name}` is the virtual path of the fileset.-You can access the files and folders under this virtual path by concatenating a file or folder+Access the files and folders under this virtual path by concatenating a file or foldername to the virtual path.The usage pattern for GVFS is the same as HDFS or S3. GVFS internally managesthe path mapping and convert automatically.-## 1. Managing files of Fileset with Java GVFS+## Manage Files with Java GVFS### Prerequisites- - GVFS has been tested against Hadoop 3.3.1. It is recommended to use Hadoop 3.3.1 or later, but it should work with Hadoop 2.- x. Please create an [issue](https://www.github.com/apache/gravitino/issues) if you find any- compatibility issues.+ - GVFS requires Hadoop 3.3.1 or later.### Configuration@@ -52,10 +50,10 @@ the path mapping and convert automatically.|-------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------|-------------------------------------|------------------|| `fs.AbstractFileSystem.gvfs.impl` | The Gravitino Virtual File System abstract class, set it to `org.apache.gravitino.filesystem.hadoop.Gvfs`. | (none) | Yes | 0.5.0 || `fs.gvfs.impl` | The Gravitino Virtual File System implementation class, set it to `org.apache.gravitino.filesystem.hadoop.GravitinoVirtualFileSystem`. | (none) | Yes | 0.5.0 |-| `fs.gvfs.impl.disable.cache` | Disable the Gravitino Virtual File System cache in the Hadoop environment. If you need to proxy multi-user operations, please set this value to `true` and create a separate File System for each user. | `false` | No | 0.5.0 |+| `fs.gvfs.impl.disable.cache` | Disable the Gravitino Virtual File System cache in the Hadoop environment. If you need to proxy multi-user operations, set this value to `true` and create a separate File System for each user. | `false` | No | 0.5.0 || `fs.gravitino.server.uri` | The Gravitino server URI which GVFS needs to load the fileset metadata. | (none) | Yes | 0.5.0 || `fs.gravitino.client.metalake` | The metalake to which the fileset belongs. | (none) | Yes | 0.5.0 |-| `fs.gravitino.client.authType` | The auth type to initialize the Gravitino client to use with the Gravitino Virtual File System. Currently only supports `simple`, `oauth2` and `kerberos` auth types. | `simple` | No | 0.5.0 |+| `fs.gravitino.client.authType` | The auth type the Gravitino client uses with the Gravitino Virtual File System. Supports `simple`, `oauth2`, and `kerberos`. | `simple` | No | 0.5.0 || `fs.gravitino.client.oauth2.serverUri` | The auth server URI for the Gravitino client when using `oauth2` auth type with the Gravitino Virtual File System. | (none) | Yes if you use `oauth2` auth type | 0.5.0 || `fs.gravitino.client.oauth2.credential` | The auth credential for the Gravitino client when using `oauth2` auth type in the Gravitino Virtual File System. | (none) | Yes if you use `oauth2` auth type | 0.5.0 || `fs.gravitino.client.oauth2.path` | The auth server path for the Gravitino client when using `oauth2` auth type with the Gravitino Virtual File System. Please remove the first slash `/` from the path, for example `oauth/token`. | (none) | Yes if you use `oauth2` auth type | 0.5.0 |@@ -71,7 +69,7 @@ the path mapping and convert automatically.| `fs.gravitino.client.request.header.` | The configuration key prefix for the Gravitino client request header. You can set the request header for the Gravitino client. | (none) | No | 0.9.0-incubating || `fs.gravitino.enableCredentialVending` | Whether to enable credential vending for the Gravitino Virtual File System. | `false` | No | 0.9.0-incubating || `fs.gravitino.client.` | The configuration key prefix for the Gravitino client config. | (none) | No | 1.0.0 |-| `fs.gravitino.filesetMetadataCache.enable` | Whether to cache the fileset, fileset schema or fileset catalog metadata in the Gravitino Virtual File System. Note that this cache causes a side effect: if you modify the fileset or fileset catalog metadata, the client can not see the latest changes. | `false` | No | 1.0.0 |+| `fs.gravitino.filesetMetadataCache.enable` | Whether to cache the fileset, fileset schema or fileset catalog metadata in the Gravitino Virtual File System. Note that this cache causes a side effect: if you modify the fileset or fileset catalog metadata, the client cannot see the latest changes. | `false` | No | 1.0.0 || `fs.gravitino.autoCreateLocation` | The configuration key for whether to enable auto-creation of fileset location when the server-side filesystem ops are disabled and the location does not exist. | `true` | No | 1.1.0 || `fs.path.config.<name>` | Defines a logical location entry. Set `fs.path.config.<name>` to the real base URI (for example, `hdfs://cluster1/`). Any key that starts with the same prefix (such as `fs.path.config.<name>.config.resource`) is treated as a location-scoped property and will be forwarded to the underlying filesystem client. Note: location names must not contain (`.`, `_`). | (none) | No | 1.1.0 |@@ -79,7 +77,7 @@ To configure the Gravitino client, use properties prefixed with `fs.gravitino.cl:::noteWhen users work with a multi-cluster fileset catalog, they can configure separate sets of properties for the base paths-of the different clusters. [Manage fileset with multiple clusters](./manage-fileset-metadata-using-gravitino.md#manage-fileset-with-multiple-clusters)+of the different clusters. [Manage filesets across multiple clusters](./manage-fileset-metadata-using-gravitino.md#manage-filesets-across-multiple-clusters)For example, a complex catalog structure might look like this:@@ -111,24 +109,25 @@ The plain `fs.path.config.<name>` entry specifies the base path of the filesyste**Example:** Setting `fs.gravitino.client.socketTimeoutMs` is equivalent to setting `gravitino.client.socketTimeoutMs` for the Gravitino client.-**Note:** Invalid configuration properties will result in exceptions. Please see [Gravitino Java client configurations](./how-to-use-gravitino-client.md#gravitino-java-client-configuration) for more support client configuration.+**Note:** Invalid configuration properties will result in exceptions. Please see [Gravitino Java client configurations](./how-to-use-gravitino-client.md#java-client-configuration) for more support client configuration.-Apart from the above properties, to access fileset like S3, GCS, OSS and custom fileset, extra properties are needed, please see-[S3 GVFS Java client configurations](./fileset-catalog-with-s3.md#using-the-gvfs-java-client-to-access-the-fileset),-[GCS GVFS Java client configurations](./fileset-catalog-with-gcs.md#using-the-gvfs-java-client-to-access-the-fileset),-[OSS GVFS Java client configurations](./fileset-catalog-with-oss.md#using-the-gvfs-java-client-to-access-the-fileset)-and [Azure Blob Storage GVFS Java client configurations](./fileset-catalog-with-adls.md#using-the-gvfs-java-client-to-access-the-fileset) for more details.+Apart from the above properties, to access fileset like S3, GCS, OSS and custom fileset, extra properties are needed; see+[S3 GVFS Java client configurations](./fileset-catalog-with-s3.md#access-the-fileset-with-the-gvfs-java-client),+[GCS GVFS Java client configurations](./fileset-catalog-with-gcs.md#access-the-fileset-with-the-gvfs-java-client),+[OSS GVFS Java client configurations](./fileset-catalog-with-oss.md#access-the-fileset-with-the-gvfs-java-client)+and [Azure Blob Storage GVFS Java client configurations](./fileset-catalog-with-adls.md#access-the-fileset-with-the-gvfs-java-client) for more details.++#### Custom Fileset-#### Custom filesetSince 0.7.0-incubating, users can define their own fileset type and configure the corresponding-properties, for more, please refer to [Custom Fileset](./fileset-catalog.md#how-to-custom-your-own-hcfs-file-system-fileset).+properties, for more, refer to [Custom Fileset](./fileset-catalog.md#implement-a-custom-hcfs-file-system-fileset).So, if you want to access the custom fileset through GVFS, you need to configure the corresponding properties.| Configuration item | Description | Default value | Required | Since version ||--------------------------------|---------------------------------------------------------------------------------------------------------|---------------|----------|------------------|| `your-custom-properties` | The properties will be used to create a FileSystem instance in `CustomFileSystemProvider#getFileSystem` | (none) | No | - |-You can configure these properties in two ways:+Configure these properties in two ways:1. Before obtaining the `FileSystem` in the code, construct a `Configuration` object and set its properties:@@ -166,7 +165,7 @@ You can configure these properties in two ways:</property>```-### Usage examples+### ExamplesFirst make sure to obtain the Gravitino Virtual File System runtime jar, which you can get intwo ways:@@ -190,9 +189,9 @@ For fileset with multiple locations, you can specify which location to access us3. If neither is specified, the system will use the value of `default-location-name` from the fileset properties:::-#### Via Hadoop shell command+#### Via Hadoop Shell Command-You can use the Hadoop shell command to perform operations on the fileset storage. For example:+Use the Hadoop shell command to perform operations on the fileset storage. For example:```shell# 1. Configure the hadoop `core-site.xml` configuration@@ -213,9 +212,9 @@ kinit -kt your_kerberos.keytab [email protected]./${HADOOP_HOME}/bin/hadoop dfs -ls gvfs://fileset/test_catalog/test_schema/test_fileset_1```-#### Via Java code+#### Via Java Code-You can also perform operations on the files or directories managed by fileset through Java code.+Perform operations on the files or directories managed by fileset through Java code.Make sure that your code is using the correct Hadoop environment, and that your environmenthas the `gravitino-filesystem-hadoop3-runtime-{version}.jar` dependency.@@ -275,7 +274,7 @@ fs.getFileStatus(filesetPath);rdd.foreach(println)```-#### Via Tensorflow+#### Via TensorFlowFor Tensorflow to support GVFS, you need to recompile the [tensorflow-io](https://github.com/tensorflow/io) module.@@ -288,7 +287,7 @@ For Tensorflow to support GVFS, you need to recompile the [tensorflow-io](https:2. Then you need to configure the Hadoop configuration.You need to configure the Hadoop configuration and add `gravitino-filesystem-hadoop3-runtime-{version}.jar`,- and set up the Kerberos environment according to the [Use GVFS via Hadoop shell command](#use-gvfs-via-hadoop-shell-command) sections.+ and set up the Kerberos environment according to the [Use GVFS via Hadoop shell command](#via-hadoop-shell-command) sections.Then you need to set your environment as follows:@@ -318,13 +317,11 @@ For Tensorflow to support GVFS, you need to recompile the [tensorflow-io](https:### Authentication-Currently, Gravitino Virtual File System supports two kinds of authentication types to access Gravitino server: `simple` and `oauth2`.+Gravitino Virtual File System supports two kinds of authentication types to access Gravitino server: `simple` and `oauth2`.The type of `simple` is the default authentication type in Gravitino Virtual File System.-#### How to use authentication--##### Using `simple` authentication+#### `simple` AuthenticationFirst, make sure that your Gravitino server is also configured to use the `simple` authentication mode.@@ -348,10 +345,10 @@ Path filesetPath = new Path("gvfs://fileset/test_catalog/test_schema/test_fileseFileSystem fs = filesetPath.getFileSystem(conf);```-##### Using `OAuth` authentication+#### `OAuth` AuthenticationIf you want to use `oauth2` authentication for the Gravitino client in the Gravitino Virtual File System,-please refer to this document to complete the configuration of the Gravitino server and the OAuth server: [Security](security/security.md).+refer to this document to complete the configuration of the Gravitino server and the OAuth server: [Security](security/security.md).Then, you can configure the Hadoop configuration like this:@@ -372,10 +369,10 @@ Path filesetPath = new Path("gvfs://fileset/test_catalog/test_schema/test_fileseFileSystem fs = filesetPath.getFileSystem(conf);```-##### Using `Kerberos` authentication+#### `Kerberos` AuthenticationIf you want to use `kerberos` authentication for the Gravitino client in the Gravitino Virtual File System,-please refer to this document to complete the configuration of the Gravitino server: [Security](security/security.md).+refer to this document to complete the configuration of the Gravitino server: [Security](security/security.md).Then, you can configure the Hadoop configuration like this:@@ -395,14 +392,12 @@ Path filesetPath = new Path("gvfs://fileset/test_catalog/test_schema/test_fileseFileSystem fs = filesetPath.getFileSystem(conf);```-## 2. Managing files of Fileset with Python GVFS+## Manage Files with Python GVFS### Prerequisites-+ A Hadoop environment with HDFS or other Hadoop Compatible File System (HCFS) implementations like S3, GCS, etc. GVFS has been tested against Hadoop 3.3.1. It is recommended to use Hadoop 3.3.1 or later, but it should work with Hadoop 2.x. Please create an [issue](https://www.github.com/apache/gravitino/issues)- if you find any compatibility issues.-+ Python version >= 3.12. It has been tested GVFS works well with Python 3.12.- Your Python version should be at least Python 3.12.++ A Hadoop environment with HDFS or another Hadoop Compatible File System (HCFS) implementation such as S3 or GCS. GVFS requires Hadoop 3.3.1 or later.++ Python 3.12 or later.Attention: If you are using macOS or Windows operating system, you need to follow the steps in the[Hadoop official building documentation](https://github.com/apache/hadoop/blob/trunk/BUILDING.txt)(Need match your Hadoop version)@@ -416,7 +411,7 @@ to recompile the native libraries like `libhdfs` and others, and completely repl| `metalake_name` | The metalake name which the fileset belongs to. | (none) | Yes | 0.6.0-incubating || `cache_size` | The cache capacity of the Gravitino Virtual File System. | `20` | No | 0.6.0-incubating || `cache_expired_time` | The value of time that the cache expires after accessing in the Gravitino Virtual File System. The value is in `seconds`. | `3600` | No | 0.6.0-incubating |-| `auth_type` | The auth type to initialize the Gravitino client to use with the Gravitino Virtual File System. Currently supports `simple`, `basic`, and `oauth2` auth types. | `simple` | No | 0.6.0-incubating |+| `auth_type` | The auth type the Gravitino client uses with the Gravitino Virtual File System. Supports `simple`, `basic`, and `oauth2`. | `simple` | No | 0.6.0-incubating || `basic_username` | The username for the Gravitino client when using `basic` auth type with the built-in IDP. | (none) | Yes if you use `basic` auth type | 1.3.0 || `basic_password` | The password for the Gravitino client when using `basic` auth type with the built-in IDP. | (none) | Yes if you use `basic` auth type | 1.3.0 || `oauth2_server_uri` | The auth server URI for the Gravitino client when using `oauth2` auth type. | (none) | Yes if you use `oauth2` auth type | 0.7.0-incubating |@@ -431,7 +426,7 @@ to recompile the native libraries like `libhdfs` and others, and completely repl| `client_request_header_` | The configuration key prefix for the Gravitino client request header. You can set the request header for the Gravitino client. | (none) | No | 0.9.0-incubating || `enable_credential_vending` | Whether to enable credential vending for the Gravitino Virtual File System. | `false` | No | 0.9.0-incubating || `gvfs_gravitino_client_` | The configuration key prefix for the Gravitino client. You can set the config for the Gravitino client. | (none) | No | 1.0.0 |-| `enable_fileset_metadata_cache` | Whether to cache the fileset or fileset catalog metadata in the Gravitino Virtual File System. Note that this cache causes a side effect: if you modify the fileset or fileset catalog metadata, the client can not see the latest changes. | `false` | No | 1.0.0 |+| `enable_fileset_metadata_cache` | Whether to cache the fileset or fileset catalog metadata in the Gravitino Virtual File System. Note that this cache causes a side effect: if you modify the fileset or fileset catalog metadata, the client cannot see the latest changes. | `false` | No | 1.0.0 || `auto_create_location` | The configuration key for whether to enable auto-creation of fileset location when the server-side filesystem ops are disabled and the location does not exist. | `true` | No | 1.1.0 || `fs_path_config_<name>` | Defines a logical location entry. Set `fs_path_config_<name>` to the real base URI (for example, `hdfs://cluster1/`). Any key that starts with the same prefix (such as `fs_path_config_<name>_config.resource`) is treated as a location-scoped property and will be forwarded to the underlying filesystem client. Note: location names must not contain (`.`, `_`). | (none) | No | 1.2.0 |@@ -439,11 +434,11 @@ To configure the Gravitino client, use properties prefixed with `gvfs_gravitino_**Example:** Setting `gvfs_gravitino_client_request_timeout` is equivalent to setting `gravitino_client_request_timeout` for the Gravitino client.-**Note:** Invalid configuration properties will result in exceptions. Please see [Gravitino Python client configurations](./how-to-use-gravitino-client.md#gravitino-python-client-configuration) for more support client configuration.+**Note:** Invalid configuration properties will result in exceptions. Please see [Gravitino Python client configurations](./how-to-use-gravitino-client.md#python-client-configuration) for more support client configuration.:::noteWhen users work with a multi-cluster fileset catalog, they can configure separate sets of properties for the base paths-of the different clusters. [Manage fileset with multiple clusters](./manage-fileset-metadata-using-gravitino.md#manage-fileset-with-multiple-clusters)+of the different clusters. [Manage filesets across multiple clusters](./manage-fileset-metadata-using-gravitino.md#manage-filesets-across-multiple-clusters)For example, a complex catalog structure might look like this:@@ -475,18 +470,18 @@ options = {The plain `fs_path_config_<name>` entry specifies the base path of the filesystem. Any additional key under the same prefix (`fs_path_config_<name>_<config_key>`) is treated as a location-scoped configuration (for example, `config.resource` for HDFS) and is forwarded directly to the underlying filesystem client.:::-#### Configurations for S3, GCS, OSS and Azure Blob storage fileset+#### Configurations for S3, GCS, OSS and Azure Blob Storage Fileset-Please see the cloud-storage-specific configurations [GCS GVFS Java client configurations](./fileset-catalog-with-gcs.md#using-the-gvfs-python-client-to-access-a-fileset),-[S3 GVFS Java client configurations](./fileset-catalog-with-s3.md#using-the-gvfs-python-client-to-access-a-fileset),-[OSS GVFS Java client configurations](./fileset-catalog-with-oss.md#using-the-gvfs-python-client-to-access-a-fileset)-and [Azure Blob Storage GVFS Java client configurations](./fileset-catalog-with-adls.md#using-the-gvfs-python-client-to-access-a-fileset) for more details.+Please see the cloud-storage-specific configurations [GCS GVFS Python client configurations](./fileset-catalog-with-gcs.md#access-the-fileset-with-the-gvfs-python-client),+[S3 GVFS Python client configurations](./fileset-catalog-with-s3.md#access-the-fileset-with-the-gvfs-python-client),+[OSS GVFS Python client configurations](./fileset-catalog-with-oss.md#access-the-fileset-with-the-gvfs-python-client)+and [Azure Blob Storage GVFS Python client configurations](./fileset-catalog-with-adls.md#access-the-fileset-with-the-gvfs-python-client) for more details.:::note-Gravitino python client does not support [customized file systems](fileset-catalog.md#how-to-custom-your-own-hcfs-file-system-fileset) defined by users due to the limit of `fsspec` library.+Gravitino python client does not support [customized file systems](fileset-catalog.md#implement-a-custom-hcfs-file-system-fileset) defined by users due to the limit of `fsspec` library.:::-### Usage examples+### Examples:::noteFor fileset with multiple locations, you can specify which location to access using one of these methods (in priority order):@@ -537,9 +532,9 @@ For fileset with multiple locations, you can specify which location to access usexport CLASSPATH=`$HADOOP_HOME/bin/hdfs classpath --glob````-#### Via fsspec-style interface+#### Via Fsspec-style Interface-You can use the fsspec-style interface to perform operations on the fileset files.+Use the fsspec-style interface to perform operations on the fileset files.For example:@@ -604,9 +599,9 @@ fs.get_file(rpath="gvfs://fileset/fileset_catalog/tmp/tmp_fileset/test-1.txt",lpath="/tmp/local-file-1.txt")```-#### Integrating with Third-party Python libraries+#### Integrate with Third-party Python Libraries-You can also perform operations on the files or directories managed by fileset+Perform operations on the files or directories managed by filesetintegrating with some Third-party Python libraries which support fsspec compatible filesystems.For example:@@ -697,13 +692,11 @@ print(documents)### Authentication-Currently, Gravitino Virtual File System in Python supports three kinds of authentication types to access Gravitino server: `simple`, `basic`, and `oauth2`.+Gravitino Virtual File System in Python supports three kinds of authentication types to access Gravitino server: `simple`, `basic`, and `oauth2`.The type of `simple` is the default authentication type in Gravitino Virtual File System in Python.-#### How to use authentication--##### Using `simple` authentication+#### `simple` AuthenticationFirst, make sure that your Gravitino server is also configured to use the `simple` authentication mode.@@ -717,7 +710,7 @@ fs = gvfs.GravitinoVirtualFileSystem(server_uri="http://localhost:8090", metalakprint(fs.ls("gvfs://fileset/fileset_catalog/tmp/test_fileset"))```-##### Using `basic` authentication+#### `basic` AuthenticationFirst, make sure that your Gravitino server is also configured to use the `basic` authentication mode.See [How to authenticate](security/how-to-authenticate.md#basic-mode) for server-side setup.@@ -737,7 +730,7 @@ fs = gvfs.GravitinoVirtualFileSystem(server_uri="http://localhost:8090", metalakprint(fs.ls("gvfs://fileset/fileset_catalog/tmp/test_fileset"))```-##### Using `OAuth` authentication+#### `OAuth` AuthenticationFirst, make sure that your Gravitino server is also configured to use the `oauth2` authentication mode,and you have an OAuth server to fetch the token: [Security](security/security.md).diff --git a/docs/how-to-use-python-client.md b/docs/how-to-use-python-client.mdindex 5d03d72a7e..c6ba115c26 100644--- a/docs/how-to-use-python-client.md+++ b/docs/how-to-use-python-client.md@@ -1,11 +1,11 @@----title: "How to use Apache Gravitino Python client"-slug: /how-to-use-gravitino-python-client+title: "Python Client"+slug: "/how-to-use-gravitino-python-client"date: 2024-05-09-keyword: Gravitino Python client-license: This software is licensed under the Apache License version 2.+keyword: "Gravitino Python client"+license: "This software is licensed under the Apache License version 2."----# Apache Gravitino Python client+## IntroductionApache Gravitino is a high-performance, geo-distributed, and federated metadata lake.It manages the metadata directly in different sources, types, and regions, also provides users@@ -15,15 +15,15 @@ Gravitino Python client helps data scientists easily manage metadata using Pytho-## Use Guidance+## Usage-You can use Gravitino Python client library with Spark, PyTorch, Tensorflow, Ray and Python environment.+Use Gravitino Python client library with Spark, PyTorch, Tensorflow, Ray and Python environment.First of all, You must have a Gravitino server set up and run, You can refer document of[How to install Gravitino](./how-to-install.md) to build Gravitino server from source code andinstall it in your local.-### Apache Gravitino Python client API+### Python Client API```shellpip install apache-gravitino@@ -32,7 +32,7 @@ pip install apache-gravitino1. [Manage metalake using Gravitino Python API](./manage-metalake-using-gravitino.md?language=python)2. [Manage fileset metadata using Gravitino Python API](./manage-fileset-metadata-using-gravitino.md?language=python)-### Apache Gravitino Fileset Example+### Fileset ExampleWe offer a playground environment to help you quickly understand how to use Gravitino Pythonclient to manage non-tabular data on HDFS via Fileset in Gravitino. You can refer to the@@ -63,9 +63,9 @@ contains the following code snippets:11. Drop this `Fileset.Type.EXTERNAL` type fileset and check if the fileset location wasnot deleted in HDFS.-## How to develop Apache Gravitino Python Client+## Python Client Development-You can ues any IDE to develop Gravitino Python Client. Directly open the client-python module project in the IDE.+Use any IDE to develop Gravitino Python Client. Directly open the client-python module project in the IDE.### Prerequisites@@ -73,7 +73,7 @@ You can ues any IDE to develop Gravitino Python Client. Directly open the client+ Refer to [How to build Gravitino](./how-to-build.md#prerequisites) to have necessary buildenvironment ready for building.-### Build and testing+### Build and Test1. Clone the Gravitino project.@@ -121,7 +121,7 @@ You can ues any IDE to develop Gravitino Python Client. Directly open the client./gradlew :clients:client-python:deploy```-### IDE specific settings+### IDE Specific Settings#### JetBrains IntelliJ IDEA@@ -129,7 +129,7 @@ We use Conda Environment to manage Python Environment, to configure PythonSDK, you need to:1. Make sure you installed [Python Plugin](https://plugins.jetbrains.com/plugin/631-python).-2. Make sure you followed the step to build python module in [Build and testing](#build-and-testing)+2. Make sure you followed the step to build python module in [Build and Test](#build-and-test)3. Make sure you are at the root directory of Gravitino Git repository.4. Find conda executable by executing this command@@ -162,9 +162,9 @@ And you will see a new Python SDK is added, and it has several packages installe9. Done! Now, open any python files and start developing Gravitino Python Client.-##### Note about running integration tests of Gravitino Python client in IntelliJ IDEA.+##### Running Integration Tests in IntelliJ IDEA-Since integration tests require Gravitino Java distribution, so you can not run tests with IntelliJ+Since integration tests require Gravitino Java distribution, so you cannot run tests with IntelliJ[Run tests button](https://www.jetbrains.com/help/idea/performing-tests.html),Please execute this gradle task with [Gradle Plugin](https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html)or in command line to run integration tests.diff --git a/docs/how-to-use-relational-backend-storage.md b/docs/how-to-use-relational-backend-storage.mdindex e934fea4f2..849604e2dd 100644--- a/docs/how-to-use-relational-backend-storage.md+++ b/docs/how-to-use-relational-backend-storage.md@@ -1,6 +1,6 @@----title: How to use relational backend storage-slug: /how-to-use-relational-backend-storage+title: "Relational Backend Storage"+slug: "/how-to-use-relational-backend-storage"license: "This software is licensed under the Apache License version 2."---@@ -16,16 +16,16 @@ store data or lack available a KV storage, and want to use Gravitino.With relational backend storage, you can quickly deploy Gravitino in a production environment andtake advantage of relational storage to manage metadata.-### What kind of backend storage is supported+### What Kind of Backend Storage Is Supported-Currently, relational backend storage supports the `JDBCBackend`, and `H2`, `MySQL` and `PostgreSQL` are supported currently for `JDBCBackend`, `H2` is the+Relational backend storage supports the `JDBCBackend`, and `H2`, `MySQL` and `PostgreSQL` are supported for `JDBCBackend`, `H2` is thedefault storage for `JDBCBackend`.-## How to use H2+## H2As mentioned above, `H2` is the default storage for `JDBCBackend`, so you can use `H2` directly without any additional configuration.-## How to use MySQL+## MySQL### Prerequisites@@ -33,9 +33,9 @@ As mentioned above, `H2` is the default storage for `JDBCBackend`, so you can us+ Gravitino distribution package.+ MySQL connector Jar (Should be compatible with the version of MySQL instance).-### Step 1: Get the initialization script+### Step 1: Get the Initialization Script-You need to `download` and `unzip` the distribution package firstly, please see+You need to `download` and `unzip` the distribution package first; see[How to install Gravitino](how-to-install.md).Then you can get the initialization script in the directory:@@ -48,23 +48,23 @@ The script name is like `schema-{version}-mysql.sql`, and the `version` dependsFor example, if your Gravitino version is `0.6.0-incubating`, then you can choose the **latest version** script.If you used a legacy script, you can use `upgrade-{old version}-to-{new version}-mysql.sql` to upgrade the schema.-### Step 2: Initialize the database+### Step 2: Initialize the DatabasePlease create a database in MySQL in advance, and execute the initialization script obtained above in the database.-### Step 3: Place the MySQL connector Jar+### Step 3: Place the MySQL Connector JarYou should **download** the MySQL connector Jar for the corresponding version of MySQL you use(You can download it from the [maven-central-repo](https://repo1.maven.org/maven2/mysql/mysql-connector-java/)),which is name like `mysql-connector-java-{version}.jar`.-Then please place it in the distribution package directory:+Then place it in the distribution package directory:```text${GRAVITINO_HOME}/libs/```-### Step 4: Set up the Apache Gravitino server configs+### Step 4: Set Up the Apache Gravitino Server ConfigsFind the server configuration file which name is `gravitino.conf` in the distribution package directory:@@ -83,7 +83,7 @@ gravitino.entity.store.relational.jdbcUser = ${your_username}gravitino.entity.store.relational.jdbcPassword = ${your_password}```-### Step 5: Start the server+### Step 5: Start the ServerFinally, you can run the script in the distribution package directory to start the server:@@ -91,7 +91,7 @@ Finally, you can run the script in the distribution package directory to start t./${GRAVITINO_HOME}/bin/gravitino.sh start```-## How to use PostgreSQL+## PostgreSQL### Prerequisites@@ -99,9 +99,9 @@ Finally, you can run the script in the distribution package directory to start t- Gravitino distribution package with version `0.7.0` or above.- PostgreSQL connector Jar (Should be compatible with the version of PostgreSQL instance).-### Step 1: Get the initialization script+### Step 1: Get the Initialization Script-You need to `download` and `unzip` the distribution package firstly, please see+You need to `download` and `unzip` the distribution package first; see[How to install Gravitino](how-to-install.md).Then you can get the initialization script in the directory:@@ -114,7 +114,7 @@ The script name is like `schema-{version}-postgresql.sql`, and the `version` depFor example, if your Gravitino version is the latest release version, then you can choose the **latest version** script.If you used a legacy script, you can use `upgrade-{old version}-to-{new version}-postgresql.sql` to upgrade the schema.-### Step 2: Initialize the database+### Step 2: Initialize the DatabasePlease create a database and schema in PostgreSQL in advance, and execute the initialization script obtained above in the database.@@ -135,19 +135,19 @@ create them in advance and set the database and schema in the JDBC URL.:::-### Step 3: Place the PostgreSQL connector Jar+### Step 3: Place the PostgreSQL Connector JarYou should **download** the PostgreSQL connector Jar for the corresponding version of PostgreSQL you use(You can download it from the [PostgreSQL-driver-jar](https://jdbc.postgresql.org/download/postgresql-42.7.0.jar)),which is name like `postgresql-{version}.jar`.-Then please place it in the distribution package directory:+Then place it in the distribution package directory:```text${GRAVITINO_HOME}/libs/```-### Step 4: Set up the Apache Gravitino server configs+### Step 4: Set Up the Apache Gravitino Server ConfigsFind the server configuration file which name is `gravitino.conf` in the distribution package directory:@@ -171,6 +171,6 @@ gravitino.entity.store.relational.jdbcUser = ${your_username}gravitino.entity.store.relational.jdbcPassword = ${your_password}```-### Step 5: Start the server+### Step 5: Start the ServerPlease see the above steps in the MySQL section.\ No newline at end of filediff --git a/docs/how-to-use-the-playground.md b/docs/how-to-use-the-playground.mdindex d65d40acdd..90089cf5ab 100644--- a/docs/how-to-use-the-playground.md+++ b/docs/how-to-use-the-playground.md@@ -1,11 +1,11 @@----title: "How to use the playground"-slug: /how-to-use-the-playground-keyword: playground+title: "Playground"+slug: "/how-to-use-the-playground"+keyword: "playground"license: "This software is licensed under the Apache License version 2."----## Playground introduction+## IntroductionThe playground is a complete Apache Gravitino Docker runtime environment with `Apache Hive`, `HDFS`, `Trino`, `MySQL`, `PostgreSQL`, `Jupyter`, and a `Apache Gravitino` server.@@ -19,7 +19,7 @@ Install Git (optional), Docker, Docker Compose.2 CPU cores, 8 GB RAM, 25 GB disk storage, MacOS or Linux OS (Verified Ubuntu22.04 Ubuntu24.04 AmazonLinux).-## TCP ports used+## TCP PortsThe playground runs several services. The TCP ports used may clash with existing services you run, such as MySQL or Postgres.@@ -34,15 +34,15 @@ The playground runs several services. The TCP ports used may clash with existing| playground-prometheus | 19090 || playground-grafana | 13000 |-## Playground usage+## Playground Usage-### Curl command to launch the playground+### Curl Command to Launch the Playground```shell/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/apache/gravitino-playground/HEAD/install.sh)"```-### Using git to download and launch the playground+### Launch the Playground with Git```shellgit clone [email protected]:apache/gravitino-playground.git@@ -55,21 +55,21 @@ cd gravitino-playground./playground.sh start```-#### Check status+#### Check Status```shell./playground.sh status```-#### Stop playground+#### Stop Playground```shell./playground.sh stop```-## Experiencing Apache Gravitino with Trino SQL+## Experience Apache Gravitino with Trino SQL-### Using Trino CLI in Docker Container+### Trino CLI in Docker Container1. Login to the Gravitino playground Trino Docker container using the following command:@@ -83,7 +83,7 @@ docker exec -it playground-trino bashtrino@container_id:/$ trino```-## Using Jupyter Notebook+## Jupyter Notebook1. Open the Jupyter Notebook in the browser at [http://localhost:18888](http://localhost:18888).@@ -91,7 +91,7 @@ trino@container_id:/$ trino3. Start the notebook and run the cells.-## Using Spark client+## Spark Client1. Login to the Gravitino playground Spark Docker container using the following command:@@ -105,7 +105,7 @@ docker exec -it playground-spark bashspark@container_id:/$ cd /opt/spark && /bin/bash bin/spark-sql```-## Monitoring Gravitino+## Monitor Gravitino1. Open the Grafana in the browser at [http://localhost:13000](http://localhost:13000).@@ -115,9 +115,9 @@ spark@container_id:/$ cd /opt/spark && /bin/bash bin/spark-sql## Example-### Simple Trino queries+### Simple Trino Queries-You can use simple queries to test in the Trino CLI.+Use simple queries to test in the Trino CLI.```SQLSHOW CATALOGS;@@ -147,9 +147,9 @@ DESCRIBE catalog_hive.company.employees;SHOW TABLES from catalog_hive.company;```-### Cross-catalog queries+### Cross-Catalog Queries-In a company, there may be different departments using different data stacks. In this example, the HR department uses Apache Hive to store its data, and the sales department uses PostgreSQL. You can run some interesting queries by joining the two departments' data together with Gravitino.+In a company, there may be different departments using different data stacks. In this example, the HR department uses Apache Hive to store its data, and the sales department uses PostgreSQL. Gravitino lets you join the two departments' data together with interesting queries.To know which employee has the largest sales amount, run this SQL:@@ -186,7 +186,7 @@ WHERE e.employee_id = p.employee_id AND p.employee_id = s.employee_idGROUP BY e.employee_id, given_name, family_name;```-### Using Spark and Trino+### Spark and TrinoConsider generating data with SparkSQL and then querying this data using Trino. Give it a try with Gravitino:@@ -220,10 +220,10 @@ SELECT * FROM catalog_hive.product.employees WHERE department = 'Engineering';The demo is located in the `jupyter` folder, and you can open the `gravitino-spark-trino-example.ipynb`demo via Jupyter Notebook by [http://localhost:18888](http://localhost:18888).-### Using Apache Iceberg REST service+### Apache Iceberg REST ServiceSuppose you want to migrate your business from Hive to Iceberg. Some tables will use Hive, and the other tables will use Iceberg.-Gravitino provides an Iceberg REST catalog service. You can use Spark to access the REST catalog to write the table data.+Gravitino provides an Iceberg REST catalog service. Use Spark to access the REST catalog to write the table data.Then, you can use Trino to read the data from the Hive table and join it with the Iceberg table.`spark-defaults.conf` is as follows (It's already configured in the playground):@@ -259,7 +259,7 @@ insert into customers (customer_id, customer_name, customer_email) values (12,'J```2. Login Trino container and execute the steps.-You can get all the customers from both the Hive and Iceberg tables.+Get all the customers from both the Hive and Iceberg tables.```shelldocker exec -it playground-trino bash@@ -278,7 +278,7 @@ select * from catalog_iceberg.sales.customers;The demo is located in the `jupyter` folder, and you can open the `gravitino-spark-trino-example.ipynb`demo via Jupyter Notebook by [http://localhost:18888](http://localhost:18888).-### Using Gravitino with LlamaIndex+### Gravitino with LlamaIndexThe Gravitino playground also provides a simple RAG demo with LlamaIndex. This demo will show you theability to use Gravitino to manage both tabular and non-tabular datasets, connecting todiff --git a/docs/iceberg-compaction-policy.md b/docs/iceberg-compaction-policy.mdindex b68edf0511..86b492ee64 100644--- a/docs/iceberg-compaction-policy.md+++ b/docs/iceberg-compaction-policy.md@@ -1,9 +1,9 @@----title: "Iceberg compaction policy"-slug: /iceberg-compaction-policy+title: "Iceberg Compaction Policy"+slug: "/iceberg-compaction-policy"date: 2026-03-05-keyword: iceberg, compaction, policy, optimizer, Gravitino-license: This software is licensed under the Apache License version 2.+keyword: "iceberg, compaction, policy, optimizer, Gravitino"+license: "This software is licensed under the Apache License version 2."---import Tabs from '@theme/Tabs';@@ -15,7 +15,7 @@ import TabItem from '@theme/TabItem';This policy supports `CATALOG`, `SCHEMA`, and `TABLE` metadata objects.-## Policy content+## Policy ContentThe typed content for `system_iceberg_compaction` supports the following fields:@@ -28,7 +28,7 @@ The typed content for `system_iceberg_compaction` supports the following fields:| `maxPartitionNum` | No | `50` | Maximum number of partitions selected by optimizer. Must be `> 0`. || `rewriteOptions` | No | `{}` | Additional rewrite options, expanded as `job.options.*` rules. |-## Generated rules and properties+## Generated Rules and PropertiesThe policy content is converted to:@@ -41,9 +41,9 @@ The policy content is converted to:- `max-partition-num=<maxPartitionNum>`- `job.options.<key>=<value>` for each rewrite option-## Parameter tuning guide+## Parameter Tuning Guide-### Metric unit and threshold formula+### Metric Unit and Threshold Formula`custom-data-file-mse` is expected to be in `byte^2`.@@ -59,14 +59,14 @@ Default values use:- `ratio = 0.15`- `minDataFileMse = 405323966463344`-### Trigger behavior+### Trigger BehaviorThe trigger expression uses `>=`.- Set `minDeleteFileNumber = 1` to trigger when at least one delete file exists.- Set `minDeleteFileNumber > 1` to reduce compaction frequency for delete files.-### Score weights+### Score WeightsScore is computed as:@@ -76,7 +76,7 @@ Score is computed as:- Increase `deleteFileNumberWeight` if you want partitions with more delete files to be prioritized.- Keep both weights non-negative.-### Recommended defaults for production start+### Recommended Defaults for Production Start- `minDataFileMse = 405323966463344` (computed from 128 MiB and ratio `0.15`)- `minDeleteFileNumber = 1`@@ -90,7 +90,7 @@ Recommended `rewriteOptions`:- `min-input-files = 5`- `delete-file-threshold = 1`-## Create policy examples+## Policy Examples<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -128,7 +128,7 @@ Policy policy =</TabItem></Tabs>-## Attach policy to metadata objects+## Attach Policy to Metadata ObjectsAfter the policy is created, associate it with a catalog, schema, or table through standard policy association APIs.The optimizer will read the generated rules and properties to evaluate strategy triggering and job submission context.diff --git a/docs/iceberg-rest-catalog-chart.md b/docs/iceberg-rest-catalog-chart.mdindex b88313b5eb..22cf7fba68 100644--- a/docs/iceberg-rest-catalog-chart.md+++ b/docs/iceberg-rest-catalog-chart.md@@ -1,12 +1,12 @@----title: "Install Iceberg Rest catalog server on Kubernetes"-slug: /iceberg-rest-catalog-chart+title: "Install Iceberg REST Catalog Server on Kubernetes"+slug: "/iceberg-rest-catalog-chart"keyword:- Iceberg REST Helm Chartlicense: "This software is licensed under the Apache License version 2."----# Install Iceberg Rest catalog server on Kubernetes+## IntroductionThis Helm chart deploys Apache Gravitino Iceberg REST Catalog Server on Kubernetes with customizable configurations.@@ -31,7 +31,7 @@ Or install directly:helm upgrade --install gravitino-iceberg oci://registry-1.docker.io/apache/gravitino-iceberg-rest-server-helm --version <VERSION> -n gravitino --create-namespace```-### Install from Local Repository (For Development or Unreleased Versions)+### Install from Local Repository (for Development or Unreleased Versions)Clone the repository and navigate to the chart directory:@@ -54,7 +54,7 @@ helm upgrade --install gravitino-iceberg ./gravitino-iceberg-rest-server -n grav## View Chart Values-You can customize values.yaml parameters to override chart default settings. Additionally, Gravitino Iceberg REST Catalog Server configurations in [gravitino-iceberg-rest-server.conf](../dev/charts/gravitino-iceberg-rest-server/resources/gravitino-iceberg-rest-server.conf) can be modified through Helm values.yaml.+Customize values.yaml parameters to override chart default settings. Additionally, Gravitino Iceberg REST Catalog Server configurations in [gravitino-iceberg-rest-server.conf](../dev/charts/gravitino-iceberg-rest-server/resources/gravitino-iceberg-rest-server.conf) can be modified through Helm values.yaml.To display the default values of the chart, run:diff --git a/docs/iceberg-rest-engine/doris.md b/docs/iceberg-rest-engine/doris.mdindex e662077e81..ae43b380bf 100755--- a/docs/iceberg-rest-engine/doris.md+++ b/docs/iceberg-rest-engine/doris.md@@ -1,9 +1,9 @@----title: Connect Doris via Iceberg REST-sidebar_label: Doris+title: "Connect Doris to Iceberg REST"+sidebar_label: "Doris"----# Connecting Apache Doris via Iceberg REST+## IntroductionApache Gravitino exposes an [Iceberg REST catalog](../iceberg-rest-service.md) endpoint that anyIceberg-compatible engine can connect to directly. This page describes how to configure Apache Doris@@ -31,7 +31,7 @@ CREATE CATALOG iceberg PROPERTIES ();```-## Usage examples+## Examples```sqlSWITCH iceberg;@@ -42,7 +42,7 @@ INSERT INTO t VALUES (1);SELECT * FROM t;```-## Gravitino connector vs Iceberg REST+## Gravitino Connector vs. Iceberg REST| Feature | Gravitino Engine Connector | Iceberg REST ||:-------------------------|:----------------------------|:------------------------------|diff --git a/docs/iceberg-rest-engine/flink.md b/docs/iceberg-rest-engine/flink.mdindex 7efc54809e..53856de3f3 100755--- a/docs/iceberg-rest-engine/flink.md+++ b/docs/iceberg-rest-engine/flink.md@@ -1,9 +1,9 @@----title: Connect Flink via Iceberg REST-sidebar_label: Flink+title: "Connect Flink to Iceberg REST"+sidebar_label: "Flink"----# Connecting Apache Flink via Iceberg REST+## IntroductionApache Gravitino exposes an [Iceberg REST catalog](../iceberg-rest-service.md) endpoint that anyIceberg-compatible engine can connect to directly — without installing a Gravitino-specific@@ -51,18 +51,18 @@ sql-client.execution.result-mode: tableauresults in a full-screen pager.:::-### Starting the Flink SQL Client+### Start the Flink SQL Client```bash$FLINK_HOME/bin/sql-client.sh```-## Registering the catalog+## Register the CatalogAt the Flink SQL Client prompt, run the following `CREATE CATALOG` statement. Replace`<gravitino-host>` with your Gravitino server address and supply your S3 credentials.-### Without authentication+### No Authentication```sqlCREATE CATALOG gravitino_irc WITH (@@ -76,7 +76,7 @@ CREATE CATALOG gravitino_irc WITH ();```-### With OAuth2 authentication+### OAuth2 Authentication```sqlCREATE CATALOG gravitino_irc WITH (@@ -112,33 +112,33 @@ See [gravitino-irc-quickstart](https://github.com/markhoerth/gravitino-irc-quickcomplete local development environment using MinIO.:::-## Usage examples+## Examples-### Use the catalog+### Use the Catalog```sqlUSE CATALOG gravitino_irc;```-### List databases+### List Databases```sqlSHOW DATABASES;```-### List tables+### List Tables```sqlSHOW TABLES IN <namespace>;```-### Query a table+### Query a Table```sqlSELECT * FROM <namespace>.<table>;```-### Create a table+### Create a Table```sqlCREATE TABLE gravitino_irc.<namespace>.new_table (@@ -148,13 +148,13 @@ CREATE TABLE gravitino_irc.<namespace>.new_table ();```-### Insert data+### Insert Data```sqlINSERT INTO gravitino_irc.<namespace>.new_table VALUES (1, 'example', CURRENT_TIMESTAMP);```-## Gravitino connector vs Iceberg REST+## Gravitino Connector vs. Iceberg REST| Feature | Gravitino Engine Connector | Iceberg REST ||:-------------------------|:----------------------------|:------------------------------|diff --git a/docs/iceberg-rest-engine/pyiceberg.md b/docs/iceberg-rest-engine/pyiceberg.mdindex 99e2fddb44..1b8a648b71 100755--- a/docs/iceberg-rest-engine/pyiceberg.md+++ b/docs/iceberg-rest-engine/pyiceberg.md@@ -1,9 +1,9 @@----title: Connect PyIceberg via Iceberg REST-sidebar_label: PyIceberg+title: "Connect PyIceberg to Iceberg REST"+sidebar_label: "PyIceberg"----# Connecting PyIceberg via Iceberg REST+## IntroductionApache Gravitino exposes an [Iceberg REST catalog](../iceberg-rest-service.md) endpoint that anyIceberg-compatible client can connect to directly. This page describes how to use PyIceberg with@@ -30,7 +30,7 @@ catalog = load_catalog()```-### With credential vending+### Credential Vending```pythoncatalog = load_catalog(@@ -43,7 +43,7 @@ catalog = load_catalog()```-### With OAuth2 authentication+### OAuth2 Authentication```pythoncatalog = load_catalog(@@ -59,29 +59,29 @@ catalog = load_catalog(See [How to authenticate](../security/how-to-authenticate.md) for Gravitino authenticationconfiguration options.-## Usage examples+## Examples-### List namespaces+### List Namespaces```pythoncatalog.list_namespaces()```-### Load a table+### Load a Table```pythontable = catalog.load_table("db.table")print(table.schema())```-### Scan a table+### Scan a Table```pythondf = table.scan().to_arrow()print(df)```-### Create a namespace and table+### Create a Namespace and Table```pythoncatalog.create_namespace("db")@@ -96,7 +96,7 @@ schema = Schema(catalog.create_table("db.new_table", schema=schema)```-## Gravitino connector vs Iceberg REST+## Gravitino Connector vs. Iceberg REST| Feature | Gravitino Engine Connector | Iceberg REST ||:-------------------------|:----------------------------|:------------------------------|diff --git a/docs/iceberg-rest-engine/ray.md b/docs/iceberg-rest-engine/ray.mdindex c75a315b28..fc74863a9a 100644--- a/docs/iceberg-rest-engine/ray.md+++ b/docs/iceberg-rest-engine/ray.md@@ -1,9 +1,9 @@----title: Connect Ray via Iceberg REST-sidebar_label: Ray+title: "Connect Ray to Iceberg REST"+sidebar_label: "Ray"----# Connecting Ray via Iceberg REST+## IntroductionApache Gravitino exposes an [Iceberg REST catalog](../iceberg-rest-service.md) endpoint that anyIceberg-compatible client can connect to directly. This page describes how to use Ray Data with@@ -27,7 +27,7 @@ or PyIceberg to manage table metadata.Ray Data connects to the Gravitino IRC endpoint via `catalog_kwargs` passed directly to theread/write functions. No separate catalog registration is required.-### Without authentication+### No Authentication```pythoncatalog_kwargs = {@@ -37,7 +37,7 @@ catalog_kwargs = {}```-### With credential vending and Basic authentication+### Credential Vending with Basic Authentication```pythoncatalog_kwargs = {@@ -55,9 +55,9 @@ catalog_kwargs = {See [How to authenticate](../security/how-to-authenticate.md) for Gravitino authenticationconfiguration options.-## Usage examples+## Examples-### Write to an Iceberg table+### Write to an Iceberg Table```pythonimport ray@@ -71,7 +71,7 @@ ds.write_iceberg()```-### Read from an Iceberg table+### Read from an Iceberg Table```pythonimport ray@@ -83,7 +83,7 @@ ds = ray.data.read_iceberg(ds.show(limit=1)```-## Gravitino connector vs Iceberg REST+## Gravitino Connector vs. Iceberg REST| Feature | Gravitino Engine Connector | Iceberg REST ||:-------------------------|:----------------------------|:------------------------------|diff --git a/docs/iceberg-rest-engine/spark.md b/docs/iceberg-rest-engine/spark.mdindex abdc8d7ada..4cabcd471a 100755--- a/docs/iceberg-rest-engine/spark.md+++ b/docs/iceberg-rest-engine/spark.md@@ -1,9 +1,9 @@----title: Connect Spark via Iceberg REST-sidebar_label: Spark+title: "Connect Spark to Iceberg REST"+sidebar_label: "Spark"----# Connecting Apache Spark via Iceberg REST+## IntroductionApache Gravitino exposes an [Iceberg REST catalog](../iceberg-rest-service.md) endpoint that anyIceberg-compatible engine can connect to directly — without installing a Gravitino-specific@@ -45,7 +45,7 @@ If the file doesn't exist yet, copy the template:cp $SPARK_HOME/conf/spark-defaults.conf.template $SPARK_HOME/conf/spark-defaults.conf```-### Simple authentication+### Simple AuthenticationAdd the following to `$SPARK_HOME/conf/spark-defaults.conf`:@@ -78,7 +78,7 @@ be supplied via environment variables (`AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_instance profile, in which case the explicit credential lines can be omitted.:::-### With OAuth2 authentication+### OAuth2 AuthenticationIf Gravitino is configured with OAuth2, add the auth properties to the same`$SPARK_HOME/conf/spark-defaults.conf` file:@@ -132,7 +132,7 @@ See [gravitino-irc-quickstart](https://github.com/markhoerth/gravitino-irc-quickcomplete local development environment using MinIO.:::-### With credential vending+### Credential VendingIf Gravitino is configured with credential vending, add the following to enable it on the client side:@@ -151,50 +151,50 @@ spark.sql.catalog.gravitino_irc.<configuration-key> <property-value>```:::-## Starting Spark+## Start SparkOnce `spark-defaults.conf` is in place, start your Spark session normally. The Gravitino IRCcatalog is available immediately without any additional flags.-### spark-shell (Scala)+### Spark Shell (Scala)```bash$SPARK_HOME/bin/spark-shell```-### spark-sql+### Spark SQL```bash$SPARK_HOME/bin/spark-sql```-### pyspark+### PySpark```bash$SPARK_HOME/bin/pyspark```-## Usage examples+## Examples-### List namespaces+### List Namespaces```sqlSHOW NAMESPACES IN gravitino_irc;```-### List tables+### List Tables```sqlSHOW TABLES IN gravitino_irc.<namespace>;```-### Query a table+### Query a Table```sqlSELECT * FROM gravitino_irc.<namespace>.<table> LIMIT 10;```-### Create a table+### Create a Table```sqlCREATE TABLE gravitino_irc.<namespace>.new_table (@@ -204,13 +204,13 @@ CREATE TABLE gravitino_irc.<namespace>.new_table () USING iceberg;```-### Insert data+### Insert Data```sqlINSERT INTO gravitino_irc.<namespace>.new_table VALUES (1, 'example', current_timestamp());```-## Gravitino connector vs Iceberg REST+## Gravitino Connector vs. Iceberg REST| Feature | Gravitino Engine Connector | Iceberg REST ||:-------------------------|:----------------------------|:------------------------------|diff --git a/docs/iceberg-rest-engine/starrocks.md b/docs/iceberg-rest-engine/starrocks.mdindex 4eff1cfb97..8a7ed4f638 100755--- a/docs/iceberg-rest-engine/starrocks.md+++ b/docs/iceberg-rest-engine/starrocks.md@@ -1,9 +1,9 @@----title: Connect StarRocks via Iceberg REST-sidebar_label: StarRocks+title: "Connect StarRocks to Iceberg REST"+sidebar_label: "StarRocks"----# Connecting StarRocks via Iceberg REST+## IntroductionApache Gravitino exposes an [Iceberg REST catalog](../iceberg-rest-service.md) endpoint that anyIceberg-compatible engine can connect to directly. This page describes how to configure StarRocks@@ -39,7 +39,7 @@ PROPERTIES`client.factory` must be set explicitly for StarRocks to correctly initialize the Iceberg AWS client.:::-## Usage examples+## Examples```sqlSET CATALOG iceberg;@@ -50,7 +50,7 @@ INSERT INTO t VALUES (1);SELECT * FROM t;```-## Gravitino connector vs Iceberg REST+## Gravitino Connector vs. Iceberg REST| Feature | Gravitino Engine Connector | Iceberg REST ||:-------------------------|:----------------------------|:------------------------------|diff --git a/docs/iceberg-rest-engine/trino.md b/docs/iceberg-rest-engine/trino.mdindex e4c2820ac7..30f446f51f 100755--- a/docs/iceberg-rest-engine/trino.md+++ b/docs/iceberg-rest-engine/trino.md@@ -1,9 +1,9 @@----title: Connect Trino via Iceberg REST-sidebar_label: Trino+title: "Connect Trino to Iceberg REST"+sidebar_label: "Trino"----# Connecting Trino via Iceberg REST+## IntroductionApache Gravitino exposes an [Iceberg REST catalog](../iceberg-rest-service.md) endpoint that anyIceberg-compatible engine can connect to directly — without installing a Gravitino-specific@@ -33,7 +33,7 @@ The `warehouse` property is managed by the Gravitino IRC server and does not neethe Trino catalog configuration.:::-### Without authentication+### No Authentication```propertiesconnector.name=iceberg@@ -51,7 +51,7 @@ iceberg.file-format=PARQUETiceberg.compression-codec=ZSTD```-### With OAuth2 authentication+### OAuth2 Authentication```propertiesconnector.name=iceberg@@ -92,7 +92,7 @@ See [gravitino-irc-quickstart](https://github.com/markhoerth/gravitino-irc-quickcomplete local development environment using MinIO.:::-## Starting Trino+## Start TrinoTrino is a server process — the catalog is picked up automatically when Trino starts. Afterplacing `gravitino_irc.properties` in `etc/catalog/`, restart Trino:@@ -113,29 +113,29 @@ Or connect without specifying a default catalog and qualify queries fully:trino --server http://<trino-host>:8080```-## Usage examples+## ExamplesOnce connected, use the Trino CLI or any Trino-compatible client.-### List schemas+### List Schemas```sqlSHOW SCHEMAS FROM gravitino_irc;```-### List tables+### List Tables```sqlSHOW TABLES FROM gravitino_irc.<namespace>;```-### Query a table+### Query a Table```sqlSELECT * FROM gravitino_irc.<namespace>.<table> LIMIT 10;```-### Create a schema+### Create a SchemaWhen creating a schema in Trino, a storage location must be specified:@@ -144,7 +144,7 @@ CREATE SCHEMA gravitino_irc.<namespace>WITH (location = 's3://<bucket>/<namespace>/');```-### Create a table+### Create a Table```sqlCREATE TABLE gravitino_irc.<namespace>.new_table (@@ -158,9 +158,9 @@ WITH ();```-## Known issues+## Known Issues-### `TIMESTAMP WITH TIME ZONE` values are not adjusted to the client session time zone+### `TIMESTAMP WITH TIME ZONE` Values Are Not Adjusted to the Client Session Time ZoneFor `TIMESTAMP WITH TIME ZONE` values, Trino does not adjust query results according to the clientsession time zone. Unlike Spark and Flink, Trino displays these values based on the stored@@ -176,7 +176,7 @@ SELECTFROM <catalog>.<namespace>.<table>;```-## Gravitino connector vs Iceberg REST+## Gravitino Connector vs. Iceberg REST| Feature | Gravitino Engine Connector | Iceberg REST ||:-------------------------|:----------------------------|:------------------------------|@@ -185,9 +185,7 @@ FROM <catalog>.<namespace>.<table>;| Supported engines | Trino, Spark, Flink, Daft | Any Iceberg-compatible engine || Credential vending | Varies | Yes (S3, GCS, OSS, ADLS) |-## Known issues--### Trino identifiers are not treated as case sensitive+### Trino Identifiers Are Not Treated as Case SensitiveTrino identifiers are not treated as case sensitive. As a result, metadata names that differonly by letter case cannot be distinguished. See [Trino identifier@@ -202,6 +200,6 @@ For the best compatibility with Trino:## Related- [Iceberg REST catalog service](../iceberg-rest-service.md)-- [Connect Spark via Iceberg REST](./spark.md)-- [Connect Flink via Iceberg REST](./flink.md)+- [Connect Spark to Iceberg REST](./spark.md)+- [Connect Flink to Iceberg REST](./flink.md)- [Trino Gravitino connector](../trino-connector/trino-connector.md)diff --git a/docs/iceberg-rest-service.md b/docs/iceberg-rest-service.mdindex a92ac2fe72..afb6c17ef2 100644--- a/docs/iceberg-rest-service.md+++ b/docs/iceberg-rest-service.md@@ -1,6 +1,6 @@----title: "Iceberg REST catalog service"-slug: /iceberg-rest-service+title: "Iceberg REST Catalog Service"+slug: "/iceberg-rest-service"keywords:- Iceberg REST cataloglicense: "This software is licensed under the Apache License version 2."@@ -35,14 +35,14 @@ There are some key difference between Gravitino Iceberg REST server and Gravitin- Supports table metadata cache.- Supports scan plan cache.-## Server management+## Server ManagementThere are three deployment scenarios for Gravitino Iceberg REST server:- A standalone server in a standalone Gravitino Iceberg REST server package, the classpath is `libs`.- A standalone server in the Gravitino server package, the classpath is `iceberg-rest-server/libs`.- An auxiliary service embedded in the Gravitino server, the classpath is `iceberg-rest-server/libs`.-For detailed instructions on how to build and install the Gravitino server package, please refer to [How to build](./how-to-build.md) and [How to install](./how-to-install.md). To build the Gravitino Iceberg REST server package, use the command `./gradlew compileIcebergRESTServer -x test`. Alternatively, to create the corresponding compressed package in the distribution directory, use `./gradlew assembleIcebergRESTServer -x test`. The Gravitino Iceberg REST server package includes the following files:+For detailed instructions on how to build and install the Gravitino server package, refer to [How to build](./how-to-build.md) and [How to install](./how-to-install.md). To build the Gravitino Iceberg REST server package, use the command `./gradlew compileIcebergRESTServer -x test`. Alternatively, to create the corresponding compressed package in the distribution directory, use `./gradlew assembleIcebergRESTServer -x test`. The Gravitino Iceberg REST server package includes the following files:```text|── ...@@ -58,13 +58,13 @@ For detailed instructions on how to build and install the Gravitino server packa|── logs/ # Gravitino Iceberg REST server logs. Automatically created after the server starts.```-## Apache Gravitino Iceberg REST catalog server configuration+## Iceberg REST Server ConfigurationThere are distinct configuration files for standalone and auxiliary server: `gravitino-iceberg-rest-server.conf` is used for the standalone server, while `gravitino.conf` is for the auxiliary server. Although the configuration files differ, the configuration items remain the same.Starting with version `0.6.0-incubating`, the prefix `gravitino.auxService.iceberg-rest.` for auxiliary server configurations has been deprecated. If both `gravitino.auxService.iceberg-rest.key` and `gravitino.iceberg-rest.key` are present, the latter will take precedence. The configurations listed below use the `gravitino.iceberg-rest.` prefix.-### Configuration to enable Iceberg REST service in Gravitino server.+### Enable Iceberg REST Service| Configuration item | Description | Default value | Required | Since Version ||------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|@@ -73,7 +73,7 @@ Starting with version `0.6.0-incubating`, the prefix `gravitino.auxService.icebePlease note that, it only takes affect in `gravitino.conf`, you don't need to specify the above configurations if start as a standalone server.-### HTTP server configuration+### HTTP Server Configuration| Configuration item | Description | Default value | Required | Since Version ||--------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|----------|---------------|@@ -89,9 +89,9 @@ Please note that, it only takes affect in `gravitino.conf`, you don't need to sp| `gravitino.iceberg-rest.customFilters` | Comma-separated list of filter class names to apply to the APIs. | (none) | No | 0.4.0 |The filter in `customFilters` should be a standard javax servlet filter.-You can also specify filter parameters by setting configuration entries in the style `gravitino.iceberg-rest.<class name of filter>.param.<param name>=<value>`.+Specify filter parameters by setting configuration entries in the style `gravitino.iceberg-rest.<class name of filter>.param.<param name>=<value>`.-### Asynchronous table purge+### Asynchronous Table PurgeBy default, dropping a table with `purgeRequested=true` is synchronous: the catalog entry and the table files are removed before the `DELETE` returns.@@ -111,13 +111,13 @@ The settings below tune the background workers and are optional.| `gravitino.iceberg-rest.async-cleanup.max-attempts` | Number of failed attempts before a cleanup job is marked `FAILED`. | `5` | No | 1.3.0 || `gravitino.iceberg-rest.async-cleanup.retention-hours` | Retention time for terminal `SUCCEEDED` or `FAILED` cleanup rows before pruning. | `720` | No | 1.3.0 |-### Catalog backend configuration+### Catalog Backend Configuration:::info-The Gravitino Iceberg REST catalog service uses the memory catalog backend by default. You can specify a Hive, JDBC or REST catalog backend for production environment.+The Gravitino Iceberg REST catalog service uses the memory catalog backend by default. Specify a Hive, JDBC or REST catalog backend for production environment.:::-#### Hive backend configuration+#### Hive Backend Configuration| Configuration item | Description | Default value | Required | Since Version ||---------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|----------|---------------|@@ -126,7 +126,7 @@ The Gravitino Iceberg REST catalog service uses the memory catalog backend by de| `gravitino.iceberg-rest.warehouse` | The warehouse directory of the Hive catalog, such as `/user/hive/warehouse-hive/`. | (none) | Yes | 0.2.0 || `gravitino.iceberg-rest.catalog-backend-name` | The catalog backend name passed to underlying Iceberg catalog backend. Catalog name in JDBC backend is used to isolate namespace and tables. | `hive` for Hive backend, `jdbc` for JDBC backend, `memory` for memory backend | No | 0.5.2 |-#### JDBC backend configuration+#### JDBC Backend Configuration| Configuration item | Description | Default value | Required | Since Version ||-----------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|----------|---------------|@@ -144,11 +144,11 @@ The Gravitino Iceberg REST catalog service uses the memory catalog backend by deIf you have a JDBC Iceberg catalog prior, you must set `catalog-backend-name` to keep consistent with your Jdbc Iceberg catalog name to operate the prior namespace and tables.:::caution-You must download the corresponding JDBC driver to the `iceberg-rest-server/libs` directory.+Download the corresponding JDBC driver to the `iceberg-rest-server/libs` directory.If you are using multiple JDBC catalog backends, setting `jdbc-initialize` to true may not take effect for RDBMS like `Mysql`, you should create Iceberg meta tables explicitly.:::-#### REST backend configuration+#### REST Backend ConfigurationUse the REST backend to proxy another Iceberg REST catalog server (IRC2). The Gravitino Iceberg REST service acts as IRC1 and forwards catalog operations to IRC2.@@ -192,7 +192,7 @@ If IRC2 does not enforce authorization, keeping `gravitino.iceberg-rest.disable-- `vended-credentials`: clients should request credential vending (`X-Iceberg-Access-Delegation: vended-credentials`).- `remote-signing`: Gravitino doesn't support this mode yet.-#### Custom backend configuration+#### Custom Backend Configuration| Configuration item | Description | Default value | Required | Since Version ||-----------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|---------------|----------|------------------|@@ -201,7 +201,7 @@ If IRC2 does not enforce authorization, keeping `gravitino.iceberg-rest.disable-If you want to use a custom Iceberg Catalog as `catalog-backend`, you can add a corresponding jar file to the classpath and load a custom Iceberg Catalog implementation by specifying the `catalog-backend-impl` property.-### Multiple catalog backend support+### Multiple Catalog Backend SupportThe Gravitino Iceberg REST server supports multiple catalog backend, and you could use `catalog-config-provider` to control the behavior about how to manage catalog backend configurations.@@ -212,7 +212,7 @@ The Gravitino Iceberg REST server supports multiple catalog backend, and you couUse `static-config-provider` to manage catalog configuration in the file, the catalog configuration is loaded when the server start up and couldn't be changed.While `dynamic-config-provider` is used to manage catalog config through Gravitino server, you could add&delete&change the catalog configurations dynamically.-#### Static catalog configuration provider+#### Static Catalog Configuration ProviderThe static catalog configuration provider retrieves the catalog configuration from the configuration file of the Gravitino Iceberg REST server. You could configure the default catalog with `gravitino.iceberg-rest.<param name>=<value>`. For others, use `gravitino.iceberg-rest.catalog.<catalog name>.<param name>=<value>` to config the catalog with `catalog name`.@@ -233,7 +233,7 @@ gravitino.iceberg-rest.catalog.jdbc_backend.warehouse = hdfs://127.0.0.1:9000/us...```-#### Dynamic catalog configuration provider+#### Dynamic Catalog Configuration ProviderThe dynamic catalog configuration provider retrieves the catalog configuration from the Gravitino server, and the catalog configuration could be updated dynamically.@@ -264,9 +264,9 @@ gravitino.iceberg-rest.gravitino-metalake = testSuppose there are two Iceberg catalogs `hive_catalog` and `jdbc_catalog` in Gravitino server, `dynamic-config-provider` will poll the catalog properties internally and register `hive_catalog` and `jdbc_catalog` in Iceberg REST server side. Dynamic config provider will get all catalog properties, for the properties that start with `gravitino.bypass.` prefix, it will remove the prefix and use the rest part as the catalog property key.-#### How to access the specific catalog+#### Access the Specific Catalog-You can access different catalogs by setting the `warehouse` to the specific catalog name in the Iceberg REST client configuration. The default catalog will be used if you do not specify a `warehouse`. For instance, suppose there are three catalog backends: default catalog, `hive_catalog` and `jdbc_catalog`, consider the case of SparkSQL:+Access different catalogs by setting the `warehouse` to the specific catalog name in the Iceberg REST client configuration. The default catalog will be used if you do not specify a `warehouse`. For instance, suppose there are three catalog backends: default catalog, `hive_catalog` and `jdbc_catalog`, consider the case of SparkSQL:```shell./bin/spark-sql -v \@@ -290,13 +290,13 @@ In the Spark SQL side, you could use `default_rest_catalog` to access the defaul#### OAuth2-Please refer to [OAuth2 Configuration](./security/how-to-authenticate#server-configuration) for how to enable OAuth2.+Refer to [OAuth2 Configuration](./security/how-to-authenticate#server-configuration) for how to enable OAuth2.-When enabling OAuth2 and leveraging a dynamic configuration provider to retrieve catalog information from the Gravitino server, please use the following configuration parameters to establish OAuth2 authentication for secure communication with the Gravitino server:+When enabling OAuth2 and leveraging a dynamic configuration provider to retrieve catalog information from the Gravitino server, use the following configuration parameters to establish OAuth2 authentication for secure communication with the Gravitino server:| Configuration item | Description | Default value | Required | Since Version ||------------------------------------------------------|-------------------------------------------------------------------------------------|-----------------------|-------------------|---------------|-| `gravitino.iceberg-rest.gravitino-auth-type` | The auth type to communicate with Gravitino server, supports `simple` and `oauth2`. | `simple` | No | 1.0.0 |+| `gravitino.iceberg-rest.gravitino-auth-type` | The auth type for communicating with the Gravitino server. Supported values: `simple`, `oauth2`. | `simple` | No | 1.0.0 || `gravitino.iceberg-rest.gravitino-simple.user-name` | The username when using `simple` auth type. | `iceberg-rest-server` | No | 1.0.0 || `gravitino.iceberg-rest.gravitino-oauth2.server-uri` | The OAuth2 server uri address. | (none) | Yes, for `oauth2` | 1.0.0 || `gravitino.iceberg-rest.gravitino-oauth2.credential` | The credential to request the OAuth2 token. | (none) | Yes, for `oauth2` | 1.0.0 |@@ -313,7 +313,7 @@ gravitino.authenticator.oauth.tokenPath = oauth2/tokengravitino.authenticator.oauth.serverUri = http://localhost:8177```-You should add extra configurations if using `dynamic-config-provider` in standalone mode:+Add extra configurations if using `dynamic-config-provider` in standalone mode:```textgravitino.iceberg-rest.catalog-config-provider = dynamic-config-provider@@ -381,13 +381,13 @@ iceberg.rest-catalog.session=NONEiceberg.rest-catalog.oauth2.token-exchange-enabled=false```-You can omit `iceberg.rest-catalog.session=NONE` because `NONE` is the default value.+Omit `iceberg.rest-catalog.session=NONE` because `NONE` is the default value.#### HTTPS-Please refer to [HTTPS Configuration](./security/how-to-use-https/#apache-iceberg-rest-services-configuration) for how to enable HTTPS for Gravitino Iceberg REST server.+Refer to [HTTPS Configuration](./security/how-to-use-https.md#apache-iceberg-rest-service-configuration) for how to enable HTTPS for Gravitino Iceberg REST server.-#### Backend authentication+#### Backend AuthenticationFor JDBC backend, you can use the `gravitino.iceberg-rest.jdbc-user` and `gravitino.iceberg-rest.jdbc-password` to authenticate the JDBC connection. For Hive backend, you can use the `gravitino.iceberg-rest.authentication.type` to specify the authentication type, and use the `gravitino.iceberg-rest.authentication.kerberos.principal` and `gravitino.iceberg-rest.authentication.kerberos.keytab-uri` to authenticate the Kerberos connection.The detailed configuration items are as follows:@@ -402,11 +402,11 @@ The detailed configuration items are as follows:| `gravitino.iceberg-rest.authentication.kerberos.check-interval-sec` | The check interval of Kerberos credential for Iceberg catalog. | 60 | No | 0.7.0-incubating || `gravitino.iceberg-rest.authentication.kerberos.keytab-fetch-timeout-sec` | The fetch timeout of retrieving Kerberos keytab from `authentication.kerberos.keytab-uri`. | 60 | No | 0.7.0-incubating |-### Credential vending+### Credential Vending-Please refer to [Credential vending](./security/credential-vending.md) for more details.+Refer to [Credential vending](./security/credential-vending.md) for more details.-### Access control+### Access Control#### Prerequisites@@ -422,9 +422,9 @@ Access control for the Iceberg REST Catalog (IRC) is only supported when runningWhen running as an auxiliary service, the `gravitino.iceberg-rest.gravitino-uri` configuration is **not required**. The service will use internal interfaces to access Gravitino directly, providing better performance and avoiding the need for HTTP-based communication.:::-Please refer to [Access Control](./security/access-control.md) for details on how to configure authorization, create roles, and grant privileges in Gravitino.+Refer to [Access Control](./security/access-control.md) for details on how to configure authorization, create roles, and grant privileges in Gravitino.-#### How access control works+#### Access Control FlowWhen access control is enabled:@@ -433,12 +433,12 @@ When access control is enabled:3. Gravitino verifies the user has the necessary privileges to perform the operation on the specified metadata object4. Upon successful authorization, the Iceberg REST service executes the operation; otherwise, it returns an authorization error-Please refer to [Access Control](./security/access-control.md) for the complete list of privileges and how to grant them.+Refer to [Access Control](./security/access-control.md) for the complete list of privileges and how to grant them.### Storage-#### S3 configuration+#### S3| Configuration item | Description | Default value | Required | Since Version ||-----------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|------------------------------------------------|------------------|@@ -449,7 +449,7 @@ Please refer to [Access Control](./security/access-control.md) for the completeFor other Iceberg s3 properties not managed by Gravitino like `s3.sse.type`, you could config it directly by `gravitino.iceberg-rest.s3.sse.type`.-Please refer to [S3 credentials](./security/credential-vending.md#s3-credentials) for credential related configurations.+Refer to [S3 credentials](./security/credential-vending.md#s3-credentials) for credential related configurations.:::info- For the JDBC catalog backend, set the `gravitino.iceberg-rest.warehouse` parameter to `s3://{bucket_name}/${prefix_name}`.@@ -457,7 +457,7 @@ Please refer to [S3 credentials](./security/credential-vending.md#s3-credentials- Additionally, download the [Gravitino Iceberg AWS bundle](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-iceberg-aws-bundle) and place it in the classpath of Iceberg REST server.:::-#### OSS configuration+#### OSS| Configuration item | Description | Default value | Required | Since Version ||---------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------|------------------------------------------------------|------------------|@@ -467,9 +467,9 @@ Please refer to [S3 credentials](./security/credential-vending.md#s3-credentialsFor other Iceberg OSS properties not managed by Gravitino like `client.security-token`, you could config it directly by `gravitino.iceberg-rest.client.security-token`.-Please refer to [OSS credentials](./security/credential-vending.md#oss-credentials) for credential related configurations.+Refer to [OSS credentials](./security/credential-vending.md#oss-credentials) for credential related configurations.-Additionally, please download the [Gravitino Iceberg Aliyun bundle jar](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-iceberg-aliyun-bundle) and place it in the classpath of Iceberg REST server, you can refer to [server management](#server-management) for classpath details.+Download the [Gravitino Iceberg Aliyun bundle jar](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-iceberg-aliyun-bundle) and place it in the classpath of the Iceberg REST server. For classpath details, refer to [server management](#server-management).:::infoPlease set the `gravitino.iceberg-rest.warehouse` parameter to `oss://{bucket_name}/${prefix_name}`.@@ -485,10 +485,10 @@ Supports using static GCS credential file or generating GCS token to access GCSFor other Iceberg GCS properties not managed by Gravitino like `gcs.project-id`, you could config it directly by `gravitino.iceberg-rest.gcs.project-id`.-Please refer to [GCS credentials](./security/credential-vending.md#gcs-credentials) for credential related configurations.+Refer to [GCS credentials](./security/credential-vending.md#gcs-credentials) for credential related configurations.:::note-Please ensure that the credential file can be accessed by the Gravitino server. For example, if the server is running on a GCE machine, or you can set the environment variable as `export GOOGLE_APPLICATION_CREDENTIALS=/xx/application_default_credentials.json`, even when the `gcs-service-account-file` has already been configured.+Ensure that the credential file is accessible by the Gravitino server. For example, the server may be running on a GCE machine, or you may set the environment variable `export GOOGLE_APPLICATION_CREDENTIALS=/xx/application_default_credentials.json` even when `gcs-service-account-file` is already configured.::::::info@@ -503,35 +503,35 @@ Please set `gravitino.iceberg-rest.warehouse` to `gs://{bucket_name}/${prefix_naFor other Iceberg ADLS properties not managed by Gravitino like `adls.read.block-size-bytes`, you could config it directly by `gravitino.iceberg-rest.adls.read.block-size-bytes`.-Please refer to [ADLS credentials](./security/credential-vending.md#adls-credentials) for credential related configurations.+Refer to [ADLS credentials](./security/credential-vending.md#adls-credentials) for credential related configurations.:::infoPlease set `gravitino.iceberg-rest.warehouse` to `abfs[s]://{container-name}@{storage-account-name}.dfs.core.windows.net/{path}`, and download the [Gravitino Iceberg Azure bundle](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-iceberg-azure-bundle) and place it in the classpath of Iceberg REST server.:::-#### HDFS configuration+#### HDFS-You should place HDFS configuration file to the classpath of the Iceberg REST server, `iceberg-rest-server/conf` for Gravitino server package, `conf` for standalone Gravitino Iceberg REST server package. When writing to HDFS, the Gravitino Iceberg REST catalog service can only operate as the specified HDFS user and doesn't support proxying to other HDFS users. See [How to access Apache Hadoop](gravitino-server-config.md#how-to-access-apache-hadoop) for more details.+Place HDFS configuration file to the classpath of the Iceberg REST server, `iceberg-rest-server/conf` for Gravitino server package, `conf` for standalone Gravitino Iceberg REST server package. When writing to HDFS, the Gravitino Iceberg REST catalog service can only operate as the specified HDFS user and doesn't support proxying to other HDFS users. See [Access Apache Hadoop](gravitino-server-config.md#access-apache-hadoop) for more details.:::infoBuilds with Hadoop 2.10.x. There may be compatibility issues when accessing Hadoop 3.x clusters.:::-#### Other storages+#### Other Storage-For other storages that are not managed by Gravitino directly, you can manage them through custom catalog properties.+For storages not managed by Gravitino directly, configure them through custom catalog properties.| Configuration item | Description | Default value | Required | Since Version ||----------------------------------|-----------------------------------------------------------------------------------------|---------------|----------|------------------|-| `gravitino.iceberg-rest.io-impl` | The IO implementation for `FileIO` in Iceberg, please use the full qualified classname. | (none) | No | 0.6.0-incubating |+| `gravitino.iceberg-rest.io-impl` | The IO implementation for `FileIO` in Iceberg; use the fully qualified classname. | (none) | No | 0.6.0-incubating |-To pass custom properties such as `security-token` to your custom `FileIO`, you can directly configure it by `gravitino.iceberg-rest.security-token`. `security-token` will be included in the properties when the initialize method of `FileIO` is invoked.+To pass custom properties such as `security-token` to your custom `FileIO`, configure them via `gravitino.iceberg-rest.security-token`. The `security-token` is included in the properties when the `FileIO` initialize method is invoked.:::infoPlease set the `gravitino.iceberg-rest.warehouse` parameter to `{storage_prefix}://{bucket_name}/${prefix_name}`. Additionally, download corresponding jars in the classpath of Iceberg REST server, `iceberg-rest-server/libs` for the auxiliary server, `libs` for the standalone server.:::-### View support+### ViewsView operations are supported when using the JDBC catalog backend with schema version `V1`. The default schema version is now `V1`, so view support is enabled out of the box. Iceberg will automatically migrate the database schema on the first restart and detect the migration on all subsequent restarts.@@ -539,9 +539,9 @@ View operations are supported when using the JDBC catalog backend with schema ve|----------------------------------------------|----------------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|| `gravitino.iceberg-rest.jdbc-schema-version` | The schema version of the JDBC catalog backend. Defaults to `V1` to enable view operations. Set to `V0` to opt out. | `V1` | No | 1.2.0 |-### Other Apache Iceberg catalog properties+### Other Iceberg Catalog Properties-You can add other properties defined in [Iceberg catalog properties](https://iceberg.apache.org/docs/1.11.0/configuration/#catalog-properties).+Add other properties defined in [Iceberg catalog properties](https://iceberg.apache.org/docs/1.10.0/configuration/#catalog-properties).The `clients` property for example:| Configuration item | Description | Default value | Required |@@ -552,17 +552,17 @@ The `clients` property for example:`catalog-impl` has no effect.:::-### Event listener+### Event Listener-Gravitino generates pre-event and post-event for table operations and provide a pluggable event listener to allow you to inject custom logic. For more details, please refer to [Event listener configuration](gravitino-server-config.md#event-listener-configuration).+Gravitino generates pre-event and post-event for table operations and provide a pluggable event listener to allow you to inject custom logic. For more details, refer to [Event listener configuration](gravitino-server-config.md#event-listener-configuration).-### Audit log+### Audit Log-Gravitino provides a pluggable audit log mechanism, please refer to [Audit log configuration](gravitino-server-config.md#audit-log-configuration).+Gravitino provides a pluggable audit log mechanism, refer to [Audit log configuration](gravitino-server-config.md#audit-log-configuration).-### Apache Iceberg metrics store configuration+### Apache Iceberg Metrics Store Configuration-Gravitino provides a pluggable metrics store interface to store and delete Iceberg metrics. You can develop a class that implements `org.apache.gravitino.iceberg.service.metrics.IcebergMetricsStore` and add the corresponding jar file to the Iceberg REST service classpath directory.+Gravitino provides a pluggable metrics store interface to store and delete Iceberg metrics. Develop a class that implements `org.apache.gravitino.iceberg.service.metrics.IcebergMetricsStore` and add the corresponding jar file to the Iceberg REST service classpath directory.| Configuration item | Description | Default value | Required | Since Version ||-------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|@@ -571,8 +571,8 @@ Gravitino provides a pluggable metrics store interface to store and delete Icebe| `gravitino.iceberg-rest.metricsQueueCapacity` | The size of queue to store metrics temporally before storing to the persistent storage. Metrics will be dropped when queue is full. | 1000 | No | 0.4.0 |If you want to use jdbc as metrics store, you can set the `gravitino.iceberg-rest.metricsStore` to `jdbc`, and set the following configurations to connect to the database.-You should initialize the database using the sql scripts in the directory `scripts`.-You must download the corresponding JDBC driver to the `iceberg-rest-server/libs` directory.+Initialize the database using the sql scripts in the directory `scripts`.+Download the corresponding JDBC driver to the `iceberg-rest-server/libs` directory.| Configuration item | Description | Default value | Required | Since Version ||-----------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|@@ -581,7 +581,7 @@ You must download the corresponding JDBC driver to the `iceberg-rest-server/libs| `gravitino.iceberg-rest.jdbc-metrics.jdbc-password` | The password of the JDBC connection. | (none) | No | 1.1.0 || `gravitino.iceberg-rest.jdbc-metrics.jdbc-driver` | `com.mysql.jdbc.Driver` or `com.mysql.cj.jdbc.Driver` for MySQL, `org.postgresql.Driver` for PostgreSQL. | (none) | Yes | 1.1.0 |-### Iceberg table metadata cache configuration+### Iceberg Table Metadata Cache ConfigurationGravitino features a pluggable cache system for updating or retrieving table metadata in the cache. It validates the location of table metadata against the catalog backend to ensure the correctness of cached data.@@ -593,7 +593,7 @@ Gravitino features a pluggable cache system for updating or retrieving table metGravitino provides the build-in `org.apache.gravitino.iceberg.common.cache.LocalTableMetadataCache` to store the cached data in the memory. You could also implement your custom table metadata cache by implementing the `org.apache.gravitino.iceberg.common.cache.TableMetadataCache` interface.-### Iceberg scan plan cache configuration+### Iceberg Scan Plan Cache ConfigurationGravitino caches scan plan results to speed up repeated queries with identical parameters. The cache uses snapshot ID as part of the cache key, so queries against different snapshots will not use stale cached data.@@ -607,15 +607,15 @@ Plan scan responses follow the Iceberg 1.11 REST API: completed plans return strThe scan plan cache uses snapshot ID as part of the cache key, ensuring automatic invalidation when table data changes. This can provide significant speedup for repeated queries like dashboard refreshes or BI tool queries.-Gravitino provides the built-in `org.apache.gravitino.iceberg.service.cache.LocalScanPlanCache` to store the cached data in memory. You can also implement your custom scan plan cache by implementing the `org.apache.gravitino.iceberg.service.cache.ScanPlanCache` interface.+Gravitino provides the built-in `org.apache.gravitino.iceberg.service.cache.LocalScanPlanCache` to store the cached data in memory. Also implement your custom scan plan cache by implementing the `org.apache.gravitino.iceberg.service.cache.ScanPlanCache` interface.-### Misc configurations+### Misc Configurations| Configuration item | Description | Default value | Required | Since Version ||---------------------------------------------|--------------------------------------------------------------|---------------|----------|------------------|| `gravitino.iceberg-rest.extension-packages` | Comma-separated list of Iceberg REST API packages to expand. | (none) | No | 0.7.0-incubating |-### Health check endpoints+### Health Check EndpointsThe Iceberg REST server exposes three health check endpoints following the same [MicroProfile Health](https://microprofile.io/project/eclipse/microprofile-health) semantics as the main Gravitino server. All endpoints are exempt from authentication. The readiness probe checks whether the `IcebergCatalogWrapperManager` has been initialized — it performs no I/O and has no configurable timeout.@@ -664,7 +664,7 @@ Unhealthy response (HTTP 503):}```-### Memory settings+### Memory SettingsThe Iceberg REST server uses `GRAVITINO_MEM` for JVM heap/metaspace flags. Default: `-Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=512m`. Launch scripts append `GRAVITINO_MEM` to `JAVA_OPTS`; set it to adjust heap/metaspace sizes.Example tuning:@@ -672,7 +672,7 @@ Example tuning:- Medium workloads: `GRAVITINO_MEM="-Xms4g -Xmx4g -XX:MaxMetaspaceSize=1g"`- Higher concurrency or catalog counts: increase heap and metaspace accordingly.-## Starting the Iceberg REST server+## Start the Iceberg REST ServerTo start as an auxiliary service with Gravitino server:@@ -694,15 +694,15 @@ curl http://127.0.0.1:9001/iceberg/v1/configNormally you will see the output like `{"defaults":{},"overrides":{}, "endpoints":["GET /v1/{prefix}/namespaces", ...]}%`.-## Docker instructions+## Docker Instructions-You could run Gravitino Iceberg REST server through docker container:+Run the Gravitino Iceberg REST server in a Docker container:```shelldocker run -d -p 9001:9001 apache/gravitino-iceberg-rest:latest```-Gravitino Iceberg REST server in docker image could access local storage by default, you could set the following environment variables if the storage is cloud/remote storage like S3, please refer to [storage section](#storage) for more details.+Gravitino Iceberg REST server in the Docker image could access local storage by default, you could set the following environment variables if the storage is cloud/remote storage like S3, refer to [storage section](#storage) for more details.| Environment Variable | Configuration items | Since version ||----------------------------------------------------------|------------------------------------------------------|------------------|@@ -737,7 +737,7 @@ Gravitino Iceberg REST server in docker image could access local storage by defa| `GRAVITINO_ICEBERG_REST_OSS_ROLE_ARN` | `gravitino.iceberg-rest.oss-role-arn` | 1.3.0 || `GRAVITINO_ICEBERG_REST_OSS_EXTERNAL_ID` | `gravitino.iceberg-rest.oss-external-id` | 1.3.0 |-The below environment is deprecated, please use the corresponding configuration items instead.+The below environment is deprecated; use the corresponding configuration items instead.| Deprecated Environment variables | New environment variables | Since version | Deprecated version ||----------------------------------------------------------|------------------------------------------------------|------------------|--------------------|@@ -750,13 +750,13 @@ Or build it manually to add custom configuration or logics:sh ./dev/docker/build-docker.sh --platform linux/arm64 --type iceberg-rest-server --image apache/gravitino-iceberg-rest --tag $tag```-You could try Spark with Gravitino REST catalog service in our [playground](./how-to-use-the-playground.md#using-apache-iceberg-rest-service).+You could try Spark with Gravitino REST catalog service in our [playground](./how-to-use-the-playground.md#apache-iceberg-rest-service).-## Quick Start: Enable Access Control for Iceberg REST Server+## Enable Access ControlTo enable access control for the Iceberg REST server using Gravitino's dynamic configuration provider, follow these steps:-### 1. Enable Authorization and Dynamic Config Provider+### Step 1: Enable Authorization and Dynamic Config ProviderAdd the following to your Gravitino server configuration file (`gravitino.conf`).Note that access control is only supported when running the Iceberg REST server as an auxiliary service within the Gravitino server:@@ -775,7 +775,7 @@ Restart the Iceberg REST server after updating the configuration.----### 2. Create a Metalake+### Step 2: Create a Metalake```shellcurl -X POST -H "Accept: application/vnd.gravitino.v1+json" \@@ -786,7 +786,7 @@ curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \----### 3. Create a Catalog+### Step 3: Create a Catalog```shellcurl -X POST -H "Accept: application/vnd.gravitino.v1+json" \@@ -800,7 +800,7 @@ curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \----### 4. Create a Role and Grant Privileges+### Step 4: Create a Role and Grant Privileges```shellcurl -X POST -H "Accept: application/vnd.gravitino.v1+json" \@@ -832,7 +832,7 @@ curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \----#### Verify Access is Denied Without Privileges+#### Verify Access Is Denied Without PrivilegesBefore granting any privileges, verify that the user cannot access the catalog. Try to list tables as `user1` (replace with your actual authentication method):@@ -858,7 +858,7 @@ curl -X PUT -H "Accept: application/vnd.gravitino.v1+json" \----#### Verify Access is Granted With Privileges+#### Verify Access Is Granted with PrivilegesAfter granting the role with privileges, repeat the request as `user1`:diff --git a/docs/index.md b/docs/index.mdindex d991250e92..673fe652a3 100644--- a/docs/index.md+++ b/docs/index.md@@ -1,10 +1,10 @@----title: Apache Gravitino overview-slug: /+title: "Apache Gravitino"+slug: "/"license: "This software is licensed under the Apache License version 2."----## What's Apache Gravitino?+## OverviewApache Gravitino is a high-performance, geo-distributed, and federated metadata lake.It manages the metadata directly in different sources, types, and regions.@@ -14,7 +14,7 @@ It also provides users with unified metadata access for data and AI assets.## Downloading-You can get Gravitino from the [download page](https://gravitino.apache.org/downloads),+Get Gravitino from the [download page](https://gravitino.apache.org/downloads),or you can build Gravitino from source code. See [How to build Gravitino](./how-to-build.md).Gravitino runs on both Linux and macOS platforms, and it requires the installation of Java 17.@@ -32,11 +32,11 @@ Gravitino also provides a playground to experience the whole Gravitino system wiSee the [Gravitino playground repository](https://github.com/apache/gravitino-playground)and [How to use the playground](./how-to-use-the-playground.md).-## Getting started+## Getting StartedTo get started with Gravitino, see [Getting started](./getting-started/index.md) for the details.-* [Getting started locally](./getting-started/index.md#local): a quick guide to starting+* [Getting started locally](./getting-started/index.md#local-workstation): a quick guide to startingand using Gravitino locally.* [Running on Amazon Web Services](./getting-started/index.md#aws): a@@ -45,11 +45,11 @@ To get started with Gravitino, see [Getting started](./getting-started/index.md)* [Running on Google Cloud Platform](./getting-started/index.md#gcp):a quick guide to starting and using Gravitino on GCP.-## How to use Apache Gravitino+## Manage Metadata with GravitinoGravitino provides two SDKs to manage metadata from different catalogs in a unified way:the REST API and the Java SDK.-You can use either to manage metadata. See+Use either to manage metadata. See* [Manage metalake using Gravitino](./manage-metalake-using-gravitino.md) to learn how to managemetalakes.@@ -76,7 +76,7 @@ See [Gravitino web UI](./webui.md) for details.Gravitino also provides a Command Line Interface (CLI) to manage the metadata. See [Gravitino CLI](./cli.md) for details.-Gravitino currently supports the following catalogs:+Gravitino supports the following catalogs:**Relational catalogs:**@@ -93,7 +93,7 @@ Gravitino currently supports the following catalogs:* [**ClickHouse catalog**](./jdbc-clickhouse-catalog.md)\** [**Lakehouse generic catalog**](./lakehouse-generic-catalog.md)-If you want to operate table and partition statistics, you can refer to the [document](./manage-statistics-in-gravitino.md).+To manage table and partition statistics, see [Manage statistics in Gravitino](./manage-statistics-in-gravitino.md).**Fileset catalogs:**@@ -113,7 +113,7 @@ Start with Gravitino built-in policies and built-in job templates, and extend viCatalogs with an asterisk (\*) aren’t in the standard release tarball and Docker image since 1.2.0. In 1.2.0, Gravitino introducesfolder `catalogs-contrib` to host the contributed catalogs, which aren’t in the standard release but can be built and used separately. See [how to build Gravitino](./how-to-build.md#quick-start) for details.-## Apache Gravitino playground+## Apache Gravitino PlaygroundTo experience Gravitino with other components easily, Gravitino provides a playground to run.It integrates Apache Hadoop, Apache Hive, Trino, MySQL, PostgreSQL, and Gravitino together as a@@ -128,7 +128,7 @@ complete environment. To experience all the features, see* [How to use the Gravitino playground](./how-to-use-the-playground.md): provides an example of howto use Gravitino and other components together.-## Where to go from here+## Where to Go from Here### Catalogs@@ -162,43 +162,44 @@ Gravitino provides governance features to manage metadata in a unified way. See:* [Manage jobs in Gravitino](./manage-jobs-in-gravitino.md): a complete guide to using Gravitinoto manage jobs.-### Gravitino Iceberg REST catalog service+### Gravitino Iceberg REST Catalog Service* [Iceberg REST catalog service](./iceberg-rest-service.md): a guide to using Gravitinoas an Apache Iceberg REST catalog service.-### Gravitino Lance REST catalog service+### Gravitino Lance REST Catalog Service+* [Lance REST catalog service](./lance-rest-service.md): a guide to using Gravitinoas a Lance REST catalog service.### Connectors-#### Trino connector+#### Trino ConnectorGravitino provides a Trino connector to manage Trino metadata in a unified way. To use the Trino connector, see:* [How to use Gravitino Trino connector](./trino-connector/index.md): a complete guide to using the Gravitino Trino connector.-#### Spark connector+#### Spark ConnectorGravitino provides a Spark connector to manage metadata in a unified way. To use the Spark connector, see:* [Gravitino Spark connector](./spark-connector/spark-connector.md): a complete guide to using the Gravitino Spark connector.-#### Flink connector+#### Flink ConnectorGravitino provides a Flink connector to manage metadata in a unified way. To use the Flink connector, see:* [Gravitino Flink connector](./flink-connector/flink-connector.md): a complete guide to using the Gravitino Flink connector.-#### Daft connector+#### Daft ConnectorGravitino provides a Daft connector to access Gravitino metadata from Daft dataframes. To use the Daft connector, see:* [Gravitino Daft connector](./daft-connector/daft-connector.md): an introduction to the Gravitino Daft connector.-### Server administration+### Server AdministrationGravitino provides several ways to configure and manage the Gravitino server. See:@@ -215,19 +216,19 @@ Gravitino provides security configurations for Gravitino, including HTTPS, authe* [Access Control](./security/access-control.md): provides access control configurations.* [CORS](./security/how-to-use-cors.md): provides CORS configurations.-### Gravitino MCP server+### Gravitino MCP ServerGravitino MCP server provides the ability to manage Gravitino metadata for AI tools.* [Gravitino MCP server](./gravitino-mcp-server.md): a complete guide to using the Gravitino MCP server.-### Programming guides+### Programming Guides* [Gravitino Open API](./api/rest/gravitino-rest-api): provides the complete Open API definition of Gravitino.* [Gravitino Java doc](pathname:///docs/1.4.0-SNAPSHOT/api/java/index.html): provides the Javadoc for the Gravitino API.* [Gravitino Python doc](pathname:///docs/1.4.0-SNAPSHOT/api/python/index.html): provides the Python doc for the Gravitino API.-### Development guides+### Development Guides* [How to build Gravitino](./how-to-build.md): a complete guide to building Gravitino fromsource.diff --git a/docs/jdbc-clickhouse-catalog.md b/docs/jdbc-clickhouse-catalog.mdindex 6a6ed463fd..524b2b060a 100644--- a/docs/jdbc-clickhouse-catalog.md+++ b/docs/jdbc-clickhouse-catalog.md@@ -1,6 +1,6 @@----title: "ClickHouse catalog"-slug: /jdbc-clickhouse-catalog+title: "ClickHouse Catalog"+slug: "/jdbc-clickhouse-catalog"keywords:- jdbc- clickhouse@@ -21,17 +21,17 @@ ClickHouse catalog is not included in the standard Gravitino server distribution## Catalog-### Catalog capabilities+### Catalog Capabilities| Item | Description ||-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|| Scope | One catalog maps to one ClickHouse instance || Metadata/DDL | Supports JDBC-based metadata management and DDL || Column defaults | Supports column default values |-| Drivers | Requires user-provided ClickHouse JDBC driver in `${GRAVITINO_HOME}/catalogs/jdbc-clickhouse/libs`, please download the jar from [link](https://repo1.maven.org/maven2/com/clickhouse/clickhouse-jdbc/0.7.1/) |+| Drivers | Requires user-provided ClickHouse JDBC driver in `${GRAVITINO_HOME}/catalogs/jdbc-clickhouse/libs`, download the jar from [link](https://repo1.maven.org/maven2/com/clickhouse/clickhouse-jdbc/0.7.1/) || Supported version | All the codes are tested by ClickHouse `24.8.14`, newer versions like `25.x` may also work but we did not conduct thorough tests. Report to the community if something does not work as expected. |-### ClickHouse server and JDBC driver compatibility matrix+### ClickHouse Server and JDBC Driver Compatibility Matrix| ClickHouse version | Supported ClickHouse JDBC driver versions ||--------------------------------|-------------------------------------------|@@ -42,11 +42,11 @@ For other ClickHouse versions (not 24.8.x), the required JDBC driver version mayUse your staging validation results and the official ClickHouse documentation as the final reference.:::-### Catalog properties+### Catalog Properties-You can pass any JDBC pool property that Gravitino does not define by adding the `gravitino.bypass.` prefix (for example `gravitino.bypass.maxWaitMillis`). See [commons-dbcp configuration](https://commons.apache.org/proper/commons-dbcp/configuration.html) for details.+Pass any JDBC pool property that Gravitino does not define by adding the `gravitino.bypass.` prefix (for example `gravitino.bypass.maxWaitMillis`). See [commons-dbcp configuration](https://commons.apache.org/proper/commons-dbcp/configuration.html) for details.-When using the JDBC catalog you must provide `jdbc-url`, `jdbc-driver`, `jdbc-user`, and `jdbc-password`. Common catalog properties are listed [here](./gravitino-server-config.md#apache-gravitino-catalog-properties-configuration); ClickHouse adds no extra catalog-scoped keys.+When using the JDBC catalog you must provide `jdbc-url`, `jdbc-driver`, `jdbc-user`, and `jdbc-password`. Common catalog properties are listed [here](./gravitino-server-config.md#catalog-properties-configuration); ClickHouse adds no extra catalog-scoped keys.| Configuration item | Description | Default value | Required | Since Version ||-------------------------|-----------------------------------------------------------------------------|---------------|----------|---------------|@@ -58,7 +58,7 @@ When using the JDBC catalog you must provide `jdbc-url`, `jdbc-driver`, `jdbc-us| `jdbc.pool.max-size` | Maximum pool size | `10` | No | 1.2.0 || `jdbc.pool.max-wait-ms` | Max wait time for a connection | `30000` | No | 1.2.0 |-### Create a ClickHouse catalog+### Create a ClickHouse CatalogThe following example creates a ClickHouse catalog with the required JDBC properties and optional connection pool settings. Note that the `jdbc-driver` class must be available in the Gravitino classpath (for example by placing the ClickHouse JDBC driver JAR in `${GRAVITINO_HOME}/catalogs/jdbc-clickhouse/libs`).Description about some of the properties:@@ -111,7 +111,7 @@ See [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-us## Schema-### Schema capabilities+### Schema Capabilities| Item | Description ||--------------|--------------------------------------------------------------------|@@ -120,7 +120,7 @@ See [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-us| Comments | Schema comments supported || Cluster mode | Optional `ON CLUSTER` for creation when `cluster-name` is provided |-### Schema properties+### Schema Properties| Property Name | Description | Default Value | Required | Immutable | Since version ||----------------|------------------------------------------------------------------------------------|---------------|----------|-----------|---------------|@@ -131,7 +131,7 @@ See [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-us**Cluster properties only reflect Gravitino-managed schemas.** Gravitino embeds the cluster name inside the schema's `COMMENT` field at creation time (because `SHOW CREATE DATABASE` does not include `ON CLUSTER` for standard Atomic databases). Schemas created outside Gravitino will not have this metadata, so `on-cluster` and `cluster-name` will be absent when loaded, and `DROP SCHEMA` will not propagate `ON CLUSTER` to other cluster nodes.:::-### Create a schema+### Create a Schema<Tabs groupId="language" queryString><TabItem value="shell" label="Shell">@@ -165,7 +165,7 @@ See [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-us## Table-### Table capabilities+### Table Capabilities| Area | Details ||---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|@@ -177,7 +177,7 @@ See [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-us| Column defaults | Supported. || Unsupported | Engine change after creation; removing table properties; auto-increment columns. |-### Table column types+### Table Column Types| Gravitino Type | ClickHouse Type ||---------------------|----------------------------------------|@@ -201,7 +201,7 @@ See [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-usOther ClickHouse types are exposed as [External Type](./manage-relational-metadata-using-gravitino.md#external-type).-### Table properties+### Table Properties:::note- `settings.*` keys are passed to the ClickHouse `SETTINGS` clause verbatim.@@ -236,14 +236,14 @@ If you need Gravitino to manage an existing cluster database or table, recreate\* Required when `on-cluster=true` or `engine=Distributed`.\*\* Required when `engine=Distributed`.-### Table indexes+### Table Indexes- `PRIMARY_KEY`- Data-skipping indexes:- `DATA_SKIPPING_MINMAX` (`GRANULARITY` fixed to 1)- `DATA_SKIPPING_BLOOM_FILTER` (`GRANULARITY` fixed to 3)-### Partitioning, sorting, and distribution+### Partitioning, Sorting, and Distribution- `ORDER BY`: required for MergeTree-family engines and only columns identity are supported;- Accept format: `id`, `(id, name)`, `(func(id), name)`, `func(id)`;@@ -253,11 +253,11 @@ If you need Gravitino to manage an existing cluster database or table, recreateIn all, the following partitioning expressions are supported:- Identity: `PARTITION BY column_name`- Functions: `PARTITION BY toDate(column_name)`, `PARTITION BY toYear(column_name)`, `PARTITION BY toYYYYMM(column_name)`. Other functions are not supported.- - Not support: `PARTITION BY (column_name + 1)`, `PARTITION BY (toYear(column_name) + 1)`, etc. (Note: ClickHouse itself does support arbitrary partitioning expressions, but Gravitino currently only supports the above patterns for partitioning).+ - Not support: `PARTITION BY (column_name + 1)`, `PARTITION BY (toYear(column_name) + 1)`, etc. (Note: ClickHouse itself does support arbitrary partitioning expressions, but Gravitino supports only the above patterns for partitioning).- Distribution: fixed to `Distributions.NONE`. For a `Distributed` engine table, you can specify the sharding key and remote database/table through table properties to fulfill the same use cases. We will later consider adding more flexible distribution strategies if there is demand.-### Create a table+### Create a TableThe following example creates a `MergeTree` table with `ORDER BY`, partitioning, indexes, comments, and properties including `ON CLUSTER`. Note that the `engine` property is required for MergeTree-family tables, and that the cluster properties must align with the schema-level cluster settings if `on-cluster=true`.@@ -339,7 +339,7 @@ tableCatalog.createTable(</TabItem></Tabs>-### Table operations+### Table OperationsSupported:- Create table with engine, `ORDER BY`, optional partition, indexes, comments, default values, and `SETTINGS`.diff --git a/docs/jdbc-doris-catalog.md b/docs/jdbc-doris-catalog.mdindex 67b0bbf002..5fec89c72b 100644--- a/docs/jdbc-doris-catalog.md+++ b/docs/jdbc-doris-catalog.md@@ -1,6 +1,6 @@----title: "Apache Doris catalog"-slug: /jdbc-doris-catalog+title: "Doris Catalog"+slug: "/jdbc-doris-catalog"keywords:- jdbc- Apache Doris@@ -17,29 +17,29 @@ Apache Gravitino provides the ability to manage [Apache Doris](https://doris.apa:::cautionGravitino saves some system information in schema and table comments, like-`(From Gravitino, DO NOT EDIT: gravitino.v1.uid1078334182909406185)`, please don't change or remove this message.+`(From Gravitino, DO NOT EDIT: gravitino.v1.uid1078334182909406185)`, do not change or remove this message.:::## Catalog-### Catalog capabilities+### Catalog Capabilities- Gravitino catalog corresponds to the Doris instance.- Supports metadata management of Doris (1.2.x).- Supports table index.- Supports [column default value](./manage-relational-metadata-using-gravitino.md#table-column-default-value).-### Catalog properties+### Catalog Properties-You can pass to a Doris data source any property that isn't defined by Gravitino by adding+Pass to a Doris data source any property that isn't defined by Gravitino by adding`gravitino.bypass.` prefix as a catalog property. For example, catalog property`gravitino.bypass.maxWaitMillis` will pass `maxWaitMillis` to the data source property.-You can check the relevant data source configuration in+Check the relevant data source configuration in[data source properties](https://commons.apache.org/proper/commons-dbcp/configuration.html) formore details.-Besides the [common catalog properties](./gravitino-server-config.md#apache-gravitino-catalog-properties-configuration), the Doris catalog has the following properties:+Besides the [common catalog properties](./gravitino-server-config.md#catalog-properties-configuration), the Doris catalog has the following properties:| Configuration item | Description | Default value | Required | Since Version ||-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|------------------|@@ -49,7 +49,7 @@ Besides the [common catalog properties](./gravitino-server-config.md#apache-grav| `jdbc-password` | The JDBC password. | (none) | Yes | 0.5.0 || `jdbc.pool.min-size` | The minimum number of connections in the pool. `2` by default. | `2` | No | 0.5.0 || `jdbc.pool.max-size` | The maximum number of connections in the pool. `10` by default. | `10` | No | 0.5.0 |-| `replication_num` | The number of replications for the table. If not specified and the number of backend servers less than 3, then the default value is 1; If not specified and the number of backend servers greater or equals to 3, the default value (3) in Doris server will be used. For more, please see the [doc](https://doris.apache.org/docs/1.2/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE/) | `1` or `3` | No | 0.6.0-incubating |+| `replication_num` | The number of replications for the table. If not specified and the number of backend servers less than 3, then the default value is 1; If not specified and the number of backend servers greater or equals to 3, the default value (3) in Doris server will be used. For more, see the [doc](https://doris.apache.org/docs/1.2/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE/) | `1` or `3` | No | 0.6.0-incubating || `jdbc.pool.max-wait-ms` | The maximum Duration that the pool will wait for a connection to be returned. `30000` by default. | `30000` | No | 1.1.0 |Before using the Doris Catalog, you must download the corresponding JDBC driver to the `catalogs/jdbc-doris/libs` directory.@@ -80,36 +80,36 @@ Returning null for DATETIME type precision. Driver version: mysql-connector-java**Recommended driver versions:**- `mysql-connector-java-8.0.16` or higher-### Catalog operations+### Catalog OperationsRefer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#catalog-operations) for more details.## Schema-### Schema capabilities+### Schema Capabilities- Gravitino's schema concept corresponds to the Doris database.- Supports creating schema.- Supports dropping schema.-### Schema properties+### Schema Properties- Support schema properties, including Doris database properties and user-defined properties.-### Schema operations+### Schema Operations-Please refer to+Refer to[Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#schema-operations) for more details.## Table-### Table capabilities+### Table Capabilities- Gravitino's table concept corresponds to the Doris table.- Supports index.- Supports [column default value](./manage-relational-metadata-using-gravitino.md#table-column-default-value).-#### Table column types+#### Table Column Types| Gravitino Type | Doris Type ||------------------|-----------------|@@ -132,27 +132,27 @@ Doris doesn't support Gravitino `Fixed` `Timestamp_tz` `IntervalDay` `IntervalYeThe data types other than those listed above are mapped to Gravitino's **[Unparsed Type](./manage-relational-metadata-using-gravitino.md#unparsed-type)** that represents an unresolvable data type since 0.5.0.:::note-Gravitino can not load Doris `array`, `map` and `struct` type correctly, because Doris doesn't support these types in JDBC.+Gravitino cannot load Doris `array`, `map` and `struct` type correctly, because Doris doesn't support these types in JDBC.:::-### Table column auto-increment+### Table Column Auto-IncrementUnsupported for now.-### Table properties+### Table Properties- Doris supports table properties, and you can set them in the table properties.- Only supports Doris table properties and doesn't support user-defined properties.-### Table indexes+### Table Indexes- Supports PRIMARY_KEYPlease be aware that the index can only apply to a single column.<Tabs groupId='language' queryString>- <TabItem value="json" label="Json">+ <TabItem value="json" label="JSON">```json{@@ -178,7 +178,7 @@ Unsupported for now.</TabItem></Tabs>-### Table partitioning+### Table PartitioningThe Doris catalog supports partitioned tables.Users can create partitioned tables in the Doris catalog with specific partitioning attributes. It is also supported to pre-assign partitions when creating Doris tables.@@ -191,20 +191,20 @@ Note that although Gravitino supports several partitioning strategies, Apache DoThe `fieldName` specified in the partitioning attributes must be the name of columns defined in the table.:::-### Table distribution+### Table Distribution-Users can also specify the distribution strategy when creating tables in the Doris catalog. Currently, the Doris catalog supports the following distribution strategies:+Users can also specify the distribution strategy when creating tables in the Doris catalog. The Doris catalog supports the following distribution strategies:- `HASH`- `RANDOM`For the `RANDOM` distribution strategy, Gravitino uses the `EVEN` to represent it. More information about the distribution strategy defined in Gravitino can be found [here](./table-partitioning-distribution-sort-order-indexes.md#table-distribution).-### Table operations+### Table Operations-Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.+Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.-#### Alter table operations+#### Alter Table OperationsGravitino supports these table alteration operations:@@ -224,6 +224,6 @@ Please be aware that:- Supports modifying multiple column comments at the same time.- Doesn't support modifying the column type and column comment at the same time.- The schema alteration in Doris is asynchronous. You might get an outdated schema if you- execute a schema query immediately after the alteration. It is recommended to pause briefly- after the schema alteration. Gravitino will add the schema alteration status into- the schema information in the upcoming version to solve this problem.+ execute a schema query immediately after the alteration. Pause briefly+ after the alteration. Gravitino will surface the schema-alteration status in the+ schema information in an upcoming release to solve this.diff --git a/docs/jdbc-hologres-catalog.md b/docs/jdbc-hologres-catalog.mdindex 5124bd648d..8c1aee3165 100644--- a/docs/jdbc-hologres-catalog.md+++ b/docs/jdbc-hologres-catalog.md@@ -1,6 +1,6 @@----title: "Hologres catalog"-slug: /jdbc-hologres-catalog+title: "Hologres Catalog"+slug: "/jdbc-hologres-catalog"keywords:- jdbc- Hologres@@ -18,12 +18,12 @@ Apache Gravitino provides the ability to manage [Hologres](https://help.aliyun.cHologres is a real-time data warehouse service provided by Alibaba Cloud, designed for high-concurrency and low-latency online analytical processing (OLAP). Hologres is fully compatible with the PostgreSQL protocol and uses the PostgreSQL JDBC Driver for connections.:::caution-Gravitino saves some system information in schema and table comment, like `(From Gravitino, DO NOT EDIT: gravitino.v1.uid1078334182909406185)`, please don't change or remove this message.+Gravitino saves some system information in schema and table comment, like `(From Gravitino, DO NOT EDIT: gravitino.v1.uid1078334182909406185)`, do not change or remove this message.:::## Catalog-### Catalog capabilities+### Catalog Capabilities- Gravitino catalog corresponds to a Hologres database instance.- Supports metadata management of Hologres.@@ -34,14 +34,14 @@ Gravitino saves some system information in schema and table comment, like `(From- Supports Hologres-specific table properties via `WITH` clause (orientation, clustering_key, distribution_key, etc.).- Does not support [auto-increment](./manage-relational-metadata-using-gravitino.md#table-column-auto-increment).-### Catalog properties+### Catalog Properties-You can pass to a Hologres data source any property that isn't defined by Gravitino by adding `gravitino.bypass.` prefix as a catalog property. For example, catalog property `gravitino.bypass.maxWaitMillis` will pass `maxWaitMillis` to the data source property.+Pass to a Hologres data source any property that isn't defined by Gravitino by adding `gravitino.bypass.` prefix as a catalog property. For example, catalog property `gravitino.bypass.maxWaitMillis` will pass `maxWaitMillis` to the data source property.Check the relevant data source configuration in [data source properties](https://commons.apache.org/proper/commons-dbcp/configuration.html)If you use a JDBC catalog, you must provide `jdbc-url`, `jdbc-driver`, `jdbc-database`, `jdbc-user` and `jdbc-password` to catalog properties.-Besides the [common catalog properties](./gravitino-server-config.md#apache-gravitino-catalog-properties-configuration), the Hologres catalog has the following properties:+Besides the [common catalog properties](./gravitino-server-config.md#catalog-properties-configuration), the Hologres catalog has the following properties:| Configuration item | Description | Default value | Required | Since Version ||-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|------------------|@@ -57,30 +57,30 @@ Besides the [common catalog properties](./gravitino-server-config.md#apache-gravHologres uses the PostgreSQL JDBC Driver (version 42.3.2 or later recommended). You need to download the PostgreSQL JDBC Driver and place it in the `catalogs/jdbc-hologres/libs` directory under the Gravitino distribution (e.g., `distribution/package/catalogs/jdbc-hologres/libs` or `distribution/package-all/catalogs/jdbc-hologres/libs`).:::-### Catalog operations+### Catalog OperationsRefer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#catalog-operations) for more details.## Schema-### Schema capabilities+### Schema Capabilities- Gravitino's schema concept corresponds to the Hologres (PostgreSQL) schema.- Supports creating schema with comment.- Supports dropping schema.- System schemas are automatically filtered: `pg_toast`, `pg_catalog`, `information_schema`, `hologres`, `hg_internal`, `hg_recyclebin`, `hologres_object_table`, `hologres_sample`, `hologres_streaming_mv`, `hologres_statistic`.-### Schema properties+### Schema Properties- Doesn't support any schema property settings.-### Schema operations+### Schema OperationsRefer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#schema-operations) for more details.## Table-### Table capabilities+### Table Capabilities- Gravitino's table concept corresponds to the Hologres table.- Supports DDL operation for Hologres tables.@@ -90,7 +90,7 @@ Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metada- Supports LIST partitioning (physical and logical).- Does not support [auto-increment](./manage-relational-metadata-using-gravitino.md#table-column-auto-increment). Creating auto-increment columns is rejected in both CREATE TABLE and ALTER TABLE.-### Table properties+### Table PropertiesHologres-specific table properties are set via the `WITH` clause during CREATE TABLE and read from the `hologres.hg_table_properties` system table. The following user-relevant properties are supported:@@ -112,7 +112,7 @@ Hologres-specific table properties are set via the `WITH` clause during CREATE T- The properties `distribution_key`, `is_logical_partitioned_table`, and `primary_key` are managed via their dedicated parameters (Distribution, Partitioning, Indexes) and should not be set directly in table properties.:::-### Table column types+### Table Column Types| Gravitino Type | Hologres Type | Notes ||-----------------------------|----------------------------|----------------------------------------------------|@@ -144,12 +144,12 @@ Hologres-specific table properties are set via the `WITH` clause during CREATE T- Types like `json`, `jsonb`, `uuid`, `inet`, `money`, `roaringbitmap` are mapped to Gravitino **[External Type](./manage-relational-metadata-using-gravitino.md#external-type)** with the original type name preserved.:::-### Table distribution+### Table DistributionHologres supports HASH distribution via the `distribution_key` property in the `WITH` clause.<Tabs groupId='language' queryString>-<TabItem value="json" label="Json">+<TabItem value="json" label="JSON">```json{@@ -176,7 +176,7 @@ Distribution distribution = Distributions.hash(0, NamedReference.field("id"));</TabItem></Tabs>-### Table partitioning+### Table PartitioningHologres supports LIST partitioning with two variants:@@ -184,7 +184,7 @@ Hologres supports LIST partitioning with two variants:- **Logical partition tables** (Hologres V3.1+): `LOGICAL PARTITION BY LIST(col1[, col2])` — supports 1–2 partition columns. Enabled by setting property `is_logical_partitioned_table` to `true`.<Tabs groupId='language' queryString>-<TabItem value="json" label="Json">+<TabItem value="json" label="JSON">```json{@@ -213,13 +213,13 @@ Transform[] partitioning = new Transform[] {Creating partition child tables (e.g., `CREATE TABLE child PARTITION OF parent FOR VALUES IN ('value')`) is not yet supported through Gravitino.:::-### Table indexes+### Table Indexes- Supports PRIMARY_KEY in CREATE TABLE.- Adding or deleting indexes via ALTER TABLE is not yet supported by Gravitino (Hologres natively supports index modification via rebuild commands, but this is not yet implemented in Gravitino).<Tabs groupId='language' queryString>-<TabItem value="json" label="Json">+<TabItem value="json" label="JSON">```json{@@ -245,11 +245,11 @@ Index[] indexes = new Index[] {</TabItem></Tabs>-### Table operations+### Table OperationsRefer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.-#### Alter table operations+#### Alter Table OperationsGravitino supports these table alteration operations for Hologres:diff --git a/docs/jdbc-mysql-catalog.md b/docs/jdbc-mysql-catalog.mdindex 81f4b4124f..f447ae76c1 100644--- a/docs/jdbc-mysql-catalog.md+++ b/docs/jdbc-mysql-catalog.md@@ -1,6 +1,6 @@----title: "MySQL catalog"-slug: /jdbc-mysql-catalog+title: "MySQL Catalog"+slug: "/jdbc-mysql-catalog"keywords:- jdbc- MySQL@@ -16,12 +16,12 @@ import TabItem from '@theme/TabItem';Apache Gravitino provides the ability to manage MySQL metadata.:::caution-Gravitino saves some system information in schema and table comment, like `(From Gravitino, DO NOT EDIT: gravitino.v1.uid1078334182909406185)`, please don't change or remove this message.+Gravitino saves some system information in schema and table comment, like `(From Gravitino, DO NOT EDIT: gravitino.v1.uid1078334182909406185)`, do not change or remove this message.:::## Catalog-### Catalog capabilities+### Catalog Capabilities- Gravitino catalog corresponds to the MySQL instance.- Supports metadata management of MySQL (5.7, 8.0).@@ -30,16 +30,16 @@ Gravitino saves some system information in schema and table comment, like `(From- Supports [column default value](./manage-relational-metadata-using-gravitino.md#table-column-default-value) and [auto-increment](./manage-relational-metadata-using-gravitino.md#table-column-auto-increment).- Supports managing MySQL table features through table properties, like using `engine` to set MySQL storage engine.-### Catalog properties+### Catalog Properties-You can pass to a MySQL data source any property that isn't defined by Gravitino by adding `gravitino.bypass.` prefix as a catalog property. For example, catalog property `gravitino.bypass.maxWaitMillis` will pass `maxWaitMillis` to the data source property.+Pass to a MySQL data source any property that isn't defined by Gravitino by adding `gravitino.bypass.` prefix as a catalog property. For example, catalog property `gravitino.bypass.maxWaitMillis` will pass `maxWaitMillis` to the data source property.Check the relevant data source configuration in [data source properties](https://commons.apache.org/proper/commons-dbcp/configuration.html)-When you use the Gravitino with Trino. You can pass the Trino MySQL connector configuration using prefix `trino.bypass.`. For example, using `trino.bypass.join-pushdown.strategy` to pass the `join-pushdown.strategy` to the Gravitino MySQL catalog in Trino runtime.+When using Gravitino with Trino, pass the Trino MySQL connector configuration using the `trino.bypass.` prefix. For example, using `trino.bypass.join-pushdown.strategy` to pass the `join-pushdown.strategy` to the Gravitino MySQL catalog in Trino runtime.If you use a JDBC catalog, you must provide `jdbc-url`, `jdbc-driver`, `jdbc-user` and `jdbc-password` to catalog properties.-Besides the [common catalog properties](./gravitino-server-config.md#apache-gravitino-catalog-properties-configuration), the MySQL catalog has the following properties:+Besides the [common catalog properties](./gravitino-server-config.md#catalog-properties-configuration), the MySQL catalog has the following properties:| Configuration item | Description | Default value | Required | Since Version ||-------------------------|--------------------------------------------------------------------------------------------------------|---------------|----------|---------------|@@ -52,7 +52,7 @@ Besides the [common catalog properties](./gravitino-server-config.md#apache-grav| `jdbc.pool.max-wait-ms` | The maximum Duration that the pool will wait for a connection to be returned. `30000` by default. | `30000` | No | 1.1.0 |:::caution-You must download the corresponding JDBC driver to the `catalogs/jdbc-mysql/libs` directory.+Download the corresponding JDBC driver to the `catalogs/jdbc-mysql/libs` directory.:::### Driver Version Compatibility@@ -82,30 +82,30 @@ Returning null for TIMESTAMP type precision. Driver version: mysql-connector-jav**Recommended driver versions:**- `mysql-connector-java-8.0.16` or higher-### Catalog operations+### Catalog OperationsRefer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#catalog-operations) for more details.## Schema-### Schema capabilities+### Schema Capabilities- Gravitino's schema concept corresponds to the MySQL database.- Supports creating schema, but does not support setting comment.- Supports dropping schema.- Supports cascade dropping schema.-### Schema properties+### Schema Properties- Doesn't support any schema property settings.-### Schema operations+### Schema OperationsRefer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#schema-operations) for more details.## Table-### Table capabilities+### Table Capabilities- Gravitino's table concept corresponds to the MySQL table.- Supports DDL operation for MySQL tables.@@ -113,7 +113,7 @@ Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metada- Supports [column default value](./manage-relational-metadata-using-gravitino.md#table-column-default-value) and [auto-increment](./manage-relational-metadata-using-gravitino.md#table-column-auto-increment)..- Supports managing MySQL table features through table properties, like using `engine` to set MySQL storage engine.-### Table column types+### Table Column Types| Gravitino Type | MySQL Type ||----------------------|---------------------|@@ -143,14 +143,14 @@ MySQL doesn't support Gravitino `Fixed` `Struct` `List` `Map` `IntervalDay` `IntMeanwhile, the data types other than listed above are mapped to Gravitino **[External Type](./manage-relational-metadata-using-gravitino.md#external-type)** that represents an unresolvable data type since 0.6.0-incubating.:::-### Table column auto-increment+### Table Column Auto-Increment:::noteMySQL setting an auto-increment column requires simultaneously setting a unique index; otherwise, an error will occur.:::<Tabs groupId='language' queryString>-<TabItem value="json" label="Json">+<TabItem value="json" label="JSON">```json{@@ -196,7 +196,7 @@ Index[] indexes = new Index[] {</TabItem></Tabs>-### Table properties+### Table PropertiesAlthough MySQL itself does not support table properties, Gravitino offers table property management for MySQL tables through the `jdbc-mysql` catalog, enabling control over table features. The supported properties are listed as follows:@@ -221,7 +221,7 @@ Some MySQL storage engines, such as FEDERATED, are not enabled by default and rerefer to the [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/federated-storage-engine.html).:::-### Table indexes+### Table Indexes- Supports PRIMARY_KEY and UNIQUE_KEY.@@ -231,7 +231,7 @@ The index name of the PRIMARY_KEY must be PRIMARY:::<Tabs groupId='language' queryString>-<TabItem value="json" label="Json">+<TabItem value="json" label="JSON">```json{@@ -263,11 +263,11 @@ Index[] indexes = new Index[] {</TabItem></Tabs>-### Table operations+### Table OperationsRefer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.-#### Alter table operations+#### Alter Table OperationsGravitino supports these table alteration operations:diff --git a/docs/jdbc-oceanbase-catalog.md b/docs/jdbc-oceanbase-catalog.mdindex fa1f47ba7a..00face9557 100644--- a/docs/jdbc-oceanbase-catalog.md+++ b/docs/jdbc-oceanbase-catalog.md@@ -1,6 +1,6 @@----title: "OceanBase catalog"-slug: /jdbc-oceanbase-catalog+title: "OceanBase Catalog"+slug: "/jdbc-oceanbase-catalog"keywords:- jdbc- OceanBase@@ -16,13 +16,13 @@ import TabItem from '@theme/TabItem';Apache Gravitino provides the ability to manage OceanBase metadata.:::caution-1. Gravitino saves some system information in schema and table comment, like `(From Gravitino, DO NOT EDIT: gravitino.v1.uid1078334182909406185)`, please don't change or remove this message.+1. Gravitino saves some system information in schema and table comment, like `(From Gravitino, DO NOT EDIT: gravitino.v1.uid1078334182909406185)`, do not change or remove this message.2. Since 1.2.0, OceanBase catalog is not included in standard Gravitino distribution, but you can still build it from source if you need it. Check [build from source](./how-to-build.md) for more details.:::## Catalog-### Catalog capabilities+### Catalog Capabilities- Gravitino catalog corresponds to the OceanBase instance.- Supports metadata management of OceanBase (4.x).@@ -30,14 +30,14 @@ Apache Gravitino provides the ability to manage OceanBase metadata.- Supports table index.- Supports [column default value](./manage-relational-metadata-using-gravitino.md#table-column-default-value) and [auto-increment](./manage-relational-metadata-using-gravitino.md#table-column-auto-increment).-### Catalog properties+### Catalog Properties-You can pass to a OceanBase data source any property that isn't defined by Gravitino by adding `gravitino.bypass.` prefix as a catalog property. For example, catalog property `gravitino.bypass.maxWaitMillis` will pass `maxWaitMillis` to the data source property.+Pass to a OceanBase data source any property that isn't defined by Gravitino by adding `gravitino.bypass.` prefix as a catalog property. For example, catalog property `gravitino.bypass.maxWaitMillis` will pass `maxWaitMillis` to the data source property.Check the relevant data source configuration in [data source properties](https://commons.apache.org/proper/commons-dbcp/configuration.html)If you use a JDBC catalog, you must provide `jdbc-url`, `jdbc-driver`, `jdbc-user` and `jdbc-password` to catalog properties.-Besides the [common catalog properties](./gravitino-server-config.md#apache-gravitino-catalog-properties-configuration), the OceanBase catalog has the following properties:+Besides the [common catalog properties](./gravitino-server-config.md#catalog-properties-configuration), the OceanBase catalog has the following properties:| Configuration item | Description | Default value | Required | Since Version ||-------------------------|---------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|------------------|@@ -82,41 +82,41 @@ Returning null for TIMESTAMP type precision. Driver version: mysql-connector-jav- `mysql-connector-java-8.0.16` or higher- `com.oceanbase.jdbc.Driver` (OceanBase official driver)-### Catalog operations+### Catalog OperationsRefer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#catalog-operations) for more details.## Schema-### Schema capabilities+### Schema Capabilities- Gravitino's schema concept corresponds to the OceanBase database.- Supports creating schema, but does not support setting comment.- Supports dropping schema.- Supports cascade dropping schema.-### Schema properties+### Schema Properties- Doesn't support any schema property settings.-### Schema operations+### Schema OperationsRefer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#schema-operations) for more details.## Table-### Table capabilities+### Table Capabilities- Gravitino's table concept corresponds to the OceanBase table.- Supports DDL operation for OceanBase tables.- Supports index.- Supports [column default value](./manage-relational-metadata-using-gravitino.md#table-column-default-value) and [auto-increment](./manage-relational-metadata-using-gravitino.md#table-column-auto-increment)..-### Table properties+### Table Properties- Doesn't support table properties.-### Table column types+### Table Column Types| Gravitino Type | OceanBase Type ||---------------------|---------------------|@@ -145,14 +145,14 @@ OceanBase doesn't support Gravitino `Boolean` `Fixed` `Struct` `List` `Map` `IntMeanwhile, the data types other than listed above are mapped to Gravitino **[External Type](./manage-relational-metadata-using-gravitino.md#external-type)** that represents an unresolvable data type since 0.6.0-incubating.:::-### Table column auto-increment+### Table Column Auto-Increment:::noteOceanBase setting an auto-increment column requires simultaneously setting a unique index; otherwise, an error will occur.:::<Tabs groupId='language' queryString>-<TabItem value="json" label="Json">+<TabItem value="json" label="JSON">```json{@@ -199,12 +199,12 @@ Index[] indexes = new Index[] {</Tabs>-### Table indexes+### Table Indexes- Supports PRIMARY_KEY and UNIQUE_KEY.<Tabs groupId='language' queryString>-<TabItem value="json" label="Json">+<TabItem value="json" label="JSON">```json{@@ -236,7 +236,7 @@ Index[] indexes = new Index[] {</TabItem></Tabs>-### Table operations+### Table Operations:::noteThe OceanBase catalog does not support creating partitioned tables in the current version.@@ -244,7 +244,7 @@ The OceanBase catalog does not support creating partitioned tables in the currenRefer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.-#### Alter table operations+#### Alter Table OperationsGravitino supports these table alteration operations:diff --git a/docs/jdbc-postgresql-catalog.md b/docs/jdbc-postgresql-catalog.mdindex 1a69a26a0b..235abee1ff 100644--- a/docs/jdbc-postgresql-catalog.md+++ b/docs/jdbc-postgresql-catalog.md@@ -1,6 +1,6 @@----title: "PostgreSQL catalog"-slug: /jdbc-postgresql-catalog+title: "PostgreSQL Catalog"+slug: "/jdbc-postgresql-catalog"keywords:- jdbc- PostgreSQL@@ -16,12 +16,12 @@ import TabItem from '@theme/TabItem';Apache Gravitino provides the ability to manage PostgreSQL metadata.:::caution-Gravitino saves some system information in schema and table comment, like `(From Gravitino, DO NOT EDIT: gravitino.v1.uid1078334182909406185)`, please don't change or remove this message.+Gravitino saves some system information in schema and table comment, like `(From Gravitino, DO NOT EDIT: gravitino.v1.uid1078334182909406185)`, do not change or remove this message.:::## Catalog-### Catalog capabilities+### Catalog Capabilities- Gravitino catalog corresponds to the PostgreSQL database.- Supports metadata management of PostgreSQL (12.x, 13.x, 14.x, 15.x, 16.x).@@ -29,15 +29,15 @@ Gravitino saves some system information in schema and table comment, like `(From- Supports table index.- Supports [column default value](./manage-relational-metadata-using-gravitino.md#table-column-default-value). and [auto-increment](./manage-relational-metadata-using-gravitino.md#table-column-auto-increment).-### Catalog properties+### Catalog PropertiesAny property that isn't defined by Gravitino can pass to PostgreSQL data source by adding `gravitino.bypass.` prefix as a catalog property. For example, catalog property `gravitino.bypass.maxWaitMillis` will pass `maxWaitMillis` to the data source property.-You can check the relevant data source configuration in [data source properties](https://commons.apache.org/proper/commons-dbcp/configuration.html)+Check the relevant data source configuration in [data source properties](https://commons.apache.org/proper/commons-dbcp/configuration.html)-When you use the Gravitino with Trino. You can pass the Trino PostgreSQL connector configuration using prefix `trino.bypass.`. For example, using `trino.bypass.join-pushdown.strategy` to pass the `join-pushdown.strategy` to the Gravitino PostgreSQL catalog in Trino runtime.+When using Gravitino with Trino, pass the Trino PostgreSQL connector configuration using the `trino.bypass.` prefix. For example, using `trino.bypass.join-pushdown.strategy` to pass the `join-pushdown.strategy` to the Gravitino PostgreSQL catalog in Trino runtime.If you use JDBC catalog, you must provide `jdbc-url`, `jdbc-driver`, `jdbc-database`, `jdbc-user` and `jdbc-password` to catalog properties.-Besides the [common catalog properties](./gravitino-server-config.md#apache-gravitino-catalog-properties-configuration), the PostgreSQL catalog has the following properties:+Besides the [common catalog properties](./gravitino-server-config.md#catalog-properties-configuration), the PostgreSQL catalog has the following properties:| Configuration item | Description | Default value | Required | Since Version ||-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|@@ -51,37 +51,37 @@ Besides the [common catalog properties](./gravitino-server-config.md#apache-grav| `jdbc.pool.max-wait-ms` | The maximum Duration that the pool will wait for a connection to be returned. `30000` by default. | `30000` | No | 1.1.0 |:::caution-You must download the corresponding JDBC driver to the `catalogs/jdbc-postgresql/libs` directory.-You must explicitly specify the database in both `jdbc-url` and `jdbc-database`. An error may occur if the values in both aren't consistent.+Download the corresponding JDBC driver to the `catalogs/jdbc-postgresql/libs` directory.+Explicitly specify the database in both `jdbc-url` and `jdbc-database`. An error may occur if the values in both aren't consistent.::::::infoIn PostgreSQL, the database corresponds to the Gravitino catalog, and the schema corresponds to the Gravitino schema.:::-### Catalog operations+### Catalog Operations-Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#catalog-operations) for more details.+Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#catalog-operations) for more details.## Schema-### Schema capabilities+### Schema Capabilities- Gravitino schema corresponds to the PostgreSQL schema.- Supports creating schema with comments.- Supports dropping schema.- Supports cascade dropping schema.-### Schema properties+### Schema Properties- Doesn't support any schema property settings.-### Schema operations+### Schema Operations-Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#schema-operations) for more details.+Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#schema-operations) for more details.## Table-### Table capabilities+### Table Capabilities- The Gravitino table corresponds to the PostgreSQL table.- Supports DDL operation for PostgreSQL tables.@@ -89,7 +89,7 @@ Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational- Support [column default value](./manage-relational-metadata-using-gravitino.md#table-column-default-value) and [auto-increment](./manage-relational-metadata-using-gravitino.md#table-column-auto-increment).- Doesn't support table property settings.-### Table column types+### Table Column Types| Gravitino Type | PostgreSQL Type ||-------------------|------------------|@@ -116,20 +116,20 @@ PostgreSQL doesn't support Gravitino `Fixed` `Struct` `Map` `IntervalDay` `InterMeanwhile, the data types other than listed above are mapped to Gravitino **[External Type](./manage-relational-metadata-using-gravitino.md#external-type)** that represents an unresolvable data type since 0.6.0-incubating.:::-### Table column auto-increment+### Table Column Auto-Increment- Supports setting auto-increment.-### Table properties+### Table Properties- Doesn't support table properties.-### Table indexes+### Table Indexes- Supports PRIMARY_KEY and UNIQUE_KEY.<Tabs groupId='language' queryString>-<TabItem value="json" label="Json">+<TabItem value="json" label="JSON">```json{@@ -161,11 +161,11 @@ Index[] indexes = new Index[] {</TabItem></Tabs>-### Table operations+### Table Operations-Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.+Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.-#### Alter table operations+#### Alter Table OperationsSupports operations:diff --git a/docs/jdbc-starrocks-catalog.md b/docs/jdbc-starrocks-catalog.mdindex 7864052939..aeb6dd9c86 100644--- a/docs/jdbc-starrocks-catalog.md+++ b/docs/jdbc-starrocks-catalog.md@@ -1,6 +1,6 @@----title: "StarRocks catalog"-slug: /jdbc-starrocks-catalog+title: "StarRocks Catalog"+slug: "/jdbc-starrocks-catalog"keywords:- jdbc- starrocks@@ -17,28 +17,28 @@ Apache Gravitino provides the ability to manage [StarRocks](https://www.starrock:::cautionGravitino saves some system information in table comments, like-`(From Gravitino, DO NOT EDIT: gravitino.v1.uid1078334182909406185)`, please don't change or remove this message.+`(From Gravitino, DO NOT EDIT: gravitino.v1.uid1078334182909406185)`, do not change or remove this message.:::## Catalog-### Catalog capabilities+### Catalog Capabilities- Gravitino catalog corresponds to the StarRocks instance.- Supports metadata management of StarRocks (3.3.x).- Supports [column default value](./manage-relational-metadata-using-gravitino.md#table-column-default-value).-### Catalog properties+### Catalog Properties-You can pass to a StarRocks data source any property that isn't defined by Gravitino by adding+Pass to a StarRocks data source any property that isn't defined by Gravitino by adding`gravitino.bypass.` prefix as a catalog property. For example, catalog property`gravitino.bypass.maxWaitMillis` will pass `maxWaitMillis` to the data source property.-You can check the relevant data source configuration in+Check the relevant data source configuration in[data source properties](https://commons.apache.org/proper/commons-dbcp/configuration.html) formore details.-Besides the [common catalog properties](./gravitino-server-config.md#apache-gravitino-catalog-properties-configuration), the StarRocks catalog has the following properties:+Besides the [common catalog properties](./gravitino-server-config.md#catalog-properties-configuration), the StarRocks catalog has the following properties:| Configuration item | Description | Default value | Required | Since Version ||-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|-----------------|@@ -78,35 +78,35 @@ Returning null for DATETIME type precision. Driver version: mysql-connector-java**Recommended driver versions:**- `mysql-connector-java-8.0.16` or higher-### Catalog operations+### Catalog OperationsRefer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#catalog-operations) for more details.## Schema-### Schema capabilities+### Schema Capabilities- Gravitino's schema concept corresponds to the StarRocks database.- Supports creating schema.- Supports dropping schema.-### Schema properties+### Schema PropertiesAs StarRocks can't get thr properties after set, So now we do not support set Schema properties.-### Schema operations+### Schema Operations-Please refer to+Refer to[Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#schema-operations) for more details.## Table-### Table capabilities+### Table Capabilities- Gravitino's table concept corresponds to the StarRocks table.- Supports [column default value](./manage-relational-metadata-using-gravitino.md#table-column-default-value).-#### Table column types+#### Table Column Types| Gravitino Type | StarRocks Type ||----------------|----------------|@@ -130,24 +130,24 @@ StarRocks doesn't support Gravitino `Fixed` `Timestamp_tz` `IntervalDay` `IntervThe data types other than those listed above are mapped to Gravitino's **[Unparsed Type](./manage-relational-metadata-using-gravitino.md#unparsed-type)** that represents an unresolvable data type since 1.0.0.:::note-Gravitino can not load StarRocks `array`, `map` and `struct` type correctly, because StarRocks doesn't support these types in JDBC.+Gravitino cannot load StarRocks `array`, `map` and `struct` type correctly, because StarRocks doesn't support these types in JDBC.:::-### Table column auto-increment+### Table Column Auto-IncrementUnsupported for now.-### Table properties+### Table Properties- StarRocks supports table properties, and you can set them in the table properties.- Only supports StarRocks table properties and doesn't support user-defined properties.-### Table indexes+### Table IndexesUnsupported-### Table partitioning+### Table PartitioningThe StarRocks catalog supports partitioned tables.Users can create partitioned tables in the StarRocks catalog with specific partitioning attributes. It is also supported to pre-assign partitions when creating StarRocks tables.@@ -160,20 +160,20 @@ Note that although Gravitino supports several partitioning strategies, StarRocksThe `fieldName` specified in the partitioning attributes must be the name of columns defined in the table.:::-### Table distribution+### Table Distribution-Users can also specify the distribution strategy when creating tables in the StarRocks catalog. Currently, the StarRocks catalog supports the following distribution strategies:+Users can also specify the distribution strategy when creating tables in the StarRocks catalog. The StarRocks catalog supports the following distribution strategies:- `HASH`- `RANDOM`For the `RANDOM` distribution strategy, Gravitino uses the `EVEN` to represent it. More information about the distribution strategy defined in Gravitino can be found [here](./table-partitioning-distribution-sort-order-indexes.md#table-distribution).-### Table operations+### Table Operations-Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.+Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.-#### Alter table operations+#### Alter Table OperationsGravitino supports these table alteration operations:@@ -190,7 +190,7 @@ Please be aware that:- Not all table alteration operations can be processed in batches.- Schema changes, such as adding/modifying/dropping columns can be processed in batches.- The schema alteration in StarRocks is asynchronous. You might get an outdated schema if you- execute a schema query immediately after the alteration. It is recommended to pause briefly- after the schema alteration. Gravitino will add the schema alteration status into- the schema information in the upcoming version to solve this problem.+ execute a schema query immediately after the alteration. Pause briefly+ after the alteration. Gravitino will surface the schema-alteration status in the+ schema information in an upcoming release to solve this.- StarRocks has limited support for [alert table properties](https://docs.starrocks.io/docs/3.3/sql-reference/sql-statements/table_bucket_part_index/ALTER_TABLE/#modify-table-properties), And it suggests modify one property at a time.\ No newline at end of filediff --git a/docs/kafka-catalog.md b/docs/kafka-catalog.mdindex b9901ec9d7..0795619fd7 100644--- a/docs/kafka-catalog.md+++ b/docs/kafka-catalog.md@@ -1,8 +1,8 @@----title: "Kafka catalog"-slug: /kafka-catalog+title: "Kafka Catalog"+slug: "/kafka-catalog"date: 2024-4-22-keyword: kafka catalog+keyword: "kafka catalog"license: "This software is licensed under the Apache License version 2."---@@ -13,16 +13,16 @@ One Kafka catalog corresponds to one Kafka cluster.## Catalog-### Catalog properties+### Catalog Properties-Besides the [common catalog properties](./gravitino-server-config.md#apache-gravitino-catalog-properties-configuration), the Kafka catalog has the following properties:+Besides the [common catalog properties](./gravitino-server-config.md#catalog-properties-configuration), the Kafka catalog has the following properties:| Property Name | Description | Default Value | Required | Since Version ||---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|| `bootstrap.servers` | The Kafka broker(s) to connect to, allowing for multiple brokers by comma-separating them. | (none) | Yes | 0.5.0 || `gravitino.bypass.` | Property name with this prefix passed down to the underlying Kafka Admin client for use. (refer to [Kafka Admin Configs](https://kafka.apache.org/34/documentation.html#adminclientconfigs) for more details) | (none) | No | 0.5.0 |-### Catalog operations+### Catalog OperationsRefer to [Catalog operations](./manage-messaging-metadata-using-gravitino.md#catalog-operations) for more details.@@ -30,33 +30,33 @@ Refer to [Catalog operations](./manage-messaging-metadata-using-gravitino.md#catA "default" schema, which includes all the topics in the Kafka cluster, will be automatically created when catalog is created.-### Schema capabilities+### Schema Capabilities- Since the "default" schema is read-only, it only supports loading and listing schema.-### Schema properties+### Schema PropertiesNone.-### Schema operations+### Schema OperationsRefer to [Schema operation](./manage-messaging-metadata-using-gravitino.md#schema-operations) for more details.## Topic-### Topic capabilities+### Topic Capabilities- The Kafka catalog supports creating, updating, deleting, and listing topics.-### Topic properties+### Topic Properties| Property name | Description | Default value | Required | Since Version ||----------------------|------------------------------------------|-------------------------------------------------------------------------------------|----------|---------------|| `partition-count` | The number of partitions for the topic. | if not specified, will use the `num.partition` property in the broker. | No | 0.5.0 || `replication-factor` | The number of replications for the topic | if not specified, will use the `default.replication.factor` property in the broker. | No | 0.5.0 |-You can pass other topic configurations to the topic properties. Refer to [Topic Configs](https://kafka.apache.org/34/documentation.html#topicconfigs) for more details.+Pass other topic configurations to the topic properties. Refer to [Topic Configs](https://kafka.apache.org/34/documentation.html#topicconfigs) for more details.-### Topic operations+### Topic OperationsRefer to [Topic operation](./manage-messaging-metadata-using-gravitino.md#topic-operations) for more details.diff --git a/docs/lakehouse-generic-catalog.md b/docs/lakehouse-generic-catalog.mdindex 3abc474ac9..0f24628c55 100644--- a/docs/lakehouse-generic-catalog.md+++ b/docs/lakehouse-generic-catalog.md@@ -1,6 +1,6 @@---title: "Generic Lakehouse Catalog"-slug: /lakehouse-generic-catalog+slug: "/lakehouse-generic-catalog"keywords:- lakehouse- lance@@ -17,9 +17,9 @@ import TabItem from '@theme/TabItem';The Generic Lakehouse Catalog is a Gravitino catalog implementation designed to seamlessly integrate with lakehouse storage systems built on file system-based architectures. This catalog enables unified metadata management for lakehouse tables stored on various storage backends, providing a consistent interface for data discovery, governance, and access control.-Currently, Gravitino fully supports the **Lance** lakehouse format, with plans to extend support to additional formats in the future.+Gravitino fully supports the **Lance** lakehouse format, with plans to extend support to additional formats in the future.-### Why Use Generic Lakehouse Catalog?+### Benefits1. **Unified Metadata Management**: Single source of truth for table metadata across multiple storage backends2. **Multi-Format Support**: Extensible architecture to support various lakehouse table formats such as Lance, Iceberg, Hudi, etc.@@ -80,7 +80,7 @@ Catalog location: hdfs://namenode:9000/lakehouse```-### Creating a Catalog+### Create a CatalogUse `provider: "lakehouse-generic"` when creating a generic lakehouse catalog.@@ -151,7 +151,7 @@ Schemas inherit catalog properties and can override specific settings:|------------|----------------------------------------------------------|------------------------------|----------|---------------|| `location` | Custom storage root path for all tables under the schema | 's3://bucket/path_to_schema' | No | 1.1.0 |-About location resolution hierarchy, please see [Key Property: `location`](#key-property-location) in the Catalog Management section for more details.+For location resolution hierarchy, see [Key Property: `location`](#key-property-location) in the Catalog Management section for more details.### Schema Operations@@ -193,10 +193,10 @@ catalog.asSchemas().createSchema(For additional operations, refer to [Schema Operations documentation](./manage-relational-metadata-using-gravitino.md#schema-operations).-## Table management+## Table Management### Supported Operations-Since different lakehouse table formats have varying capabilities, table operation support may differ. The following are table operations for different lakehouse formats.+Since different lakehouse table formats have varying capabilities, table operation support may differ. The following are table operations for different lakehouse formats:- [Lance Format Support](./lakehouse-generic-lance-table.md)\ No newline at end of filediff --git a/docs/lakehouse-generic-delta-table.md b/docs/lakehouse-generic-delta-table.mdindex e983f865e3..174bc6fb95 100644--- a/docs/lakehouse-generic-delta-table.md+++ b/docs/lakehouse-generic-delta-table.md@@ -1,6 +1,6 @@----title: "Delta Lake table support"-slug: /delta-table-support+title: "Delta Lake Tables"+slug: "/delta-table-support"keywords:- lakehouse- delta@@ -18,9 +18,9 @@ import TabItem from '@theme/TabItem';This document describes how to use Apache Gravitino to manage a generic lakehouse catalog using Delta Lake as the underlying table format. Gravitino supports registering and managing metadata for external Delta tables.-:::info Current Support-Gravitino currently supports **external Delta tables only**. This means:-- You can register existing Delta tables in Gravitino+:::info Supported Operations+Gravitino supports **external Delta tables only**. This means:+- Register existing Delta tables in Gravitino- Gravitino manages metadata only (schema, location, properties)- The physical Delta table data remains independent- Dropping tables from Gravitino does not delete the underlying Delta data@@ -92,7 +92,7 @@ Table operations follow standard relational catalog patterns with Delta-specificThe following sections provide examples and important details for working with Delta tables.-#### Registering an External Delta Table+#### Register an External Delta TableRegister an existing Delta table in Gravitino without moving or modifying the underlying data:@@ -183,7 +183,7 @@ When registering a Delta table in Gravitino, you must provide the schema (column**Best Practice:** Ensure the schema you provide matches the actual Delta table schema to avoid inconsistencies.:::-#### Loading a Delta Table+#### Load a Delta Table<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -208,7 +208,7 @@ System.out.println("Columns: " + Arrays.toString(table.columns()));</TabItem></Tabs>-#### Dropping a Delta Table+#### Drop a Delta TableDropping a Delta table from Gravitino removes only the metadata entry. The physical Delta table data remains intact.@@ -242,9 +242,9 @@ Since Delta tables are external, dropping them from Gravitino:The Delta table can still be accessed directly via Delta Lake APIs, Spark, or other tools.:::-## Working with Delta Tables+## Work with Delta Tables-### Using Spark to Modify Delta Tables+### Modify Delta Tables with SparkSince Gravitino does not support ALTER operations for Delta tables, use Apache Spark or other Delta Lake tools to modify table structure:@@ -281,7 +281,7 @@ After modifying the Delta table, you can:1. Drop the table from Gravitino2. Re-register it with the updated schema-### Reading Delta Tables via Gravitino+### Read Delta Tables via GravitinoOnce registered in Gravitino, you can query Delta table metadata and use the location to read data:@@ -366,7 +366,7 @@ manually remove files from the storage location## Limitations and Future Work-### Current Limitations+### Limitations- **Managed Tables**: Not supported; only external tables are available- **ALTER Operations**: Cannot modify table schema through Gravitino; use Delta Lake APIs@@ -382,7 +382,7 @@ Future versions may include:- Integration with Delta Lake time travel features- Enhanced metadata synchronization-## See Also+## Related- [Generic Lakehouse Catalog](./lakehouse-generic-catalog.md)- [Table Operations](./manage-relational-metadata-using-gravitino.md#table-operations)diff --git a/docs/lakehouse-generic-lance-table.md b/docs/lakehouse-generic-lance-table.mdindex d42e34377a..62e3bff8aa 100644--- a/docs/lakehouse-generic-lance-table.md+++ b/docs/lakehouse-generic-lance-table.md@@ -1,6 +1,6 @@----title: "Lance table support"-slug: /lance-table-support+title: "Lance Tables"+slug: "/lance-table-support"keywords:- lakehouse- lance@@ -35,10 +35,10 @@ For Lance tables in a Generic Lakehouse Catalog, the following table summarizes| Purge | ✅ Full |:::note Feature Limitations-- **Partitioning:** Not currently supported-- **Sort Orders:** Not currently supported-- **Distributions:** Not currently supported-- **Indexes:** Not currently supported+- **Partitioning:** Not supported+- **Sort Orders:** Not supported+- **Distributions:** Not supported+- **Indexes:** Not supported:::### Data Type Mappings@@ -76,7 +76,7 @@ Lance uses Apache Arrow for table schemas. The following table shows type mappin| `Interval_day` | `Duration(Microsecond)` || `External(arrow_field_json_str)` | Any Arrow Field |-### External Type Support+### External TypesFor Arrow types not natively mapped in Gravitino, use the `External(arrow_field_json_str)` type, which accepts a JSON string representation of an Arrow `Field`.@@ -103,12 +103,12 @@ Required and optional properties for tables in a Generic Lakehouse Catalog:| Property | Description | Default | Required | Since Version ||-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|--------------|---------------|-| `format` | Table format: `lance`, currently only `lance` is fully supported. | (none) | Yes | 1.1.0 |-| `location` | Storage path for table metadata and data, Lance currently supports: S3, GCS, OSS, AZ, File, Memory and file-object-store. | (none) | Conditional* | 1.1.0 |+| `format` | Table format: `lance`, only `lance` is fully supported. | (none) | Yes | 1.1.0 |+| `location` | Storage path for table metadata and data, Lance supports: S3, GCS, OSS, AZ, File, Memory and file-object-store. | (none) | Conditional* | 1.1.0 || `external` | Whether the data directory is an external location. If it's `true`, dropping a table will only remove metadata in Gravitino and will not delete the data directory, and purge table will delete both. For a non-external table, dropping will drop both. | false | No | 1.1.0 || `lance.creation-mode` | Create mode: for create table, it can be `CREATE`, `EXIST_OK` or `OVERWRITE`. and it should be `CREATE` or `OVERWRITE` for registering tables | `CREATE` | No | 1.1.0 || `lance.register` | Whether it is a register table operation. If it's `true`, This API will not create data directory actually and it's the user's responsibility to create and manage the data directory. `false` it will actually create a table. | false | No | 1.1.0 |-| `lance.storage.xxxx` | Any additional storage-specific properties required by Lance format (e.g., S3 credentials, HDFS configs). Replace `xxxx` with actual property names. For example, we can use `lance.storage.aws_access_key_id` to set S3 aws_access_key_id when using a S3 location, for detail, please refer to https://lancedb.com/docs/storage/integrations/ | (none) | No | 1.1.0 |+| `lance.storage.xxxx` | Any additional storage-specific properties required by Lance format (e.g., S3 credentials, HDFS configs). Replace `xxxx` with actual property names. For example, we can use `lance.storage.aws_access_key_id` to set S3 aws_access_key_id when using a S3 location, for detail, refer to https://lancedb.com/docs/storage/integrations/ | (none) | No | 1.1.0 |- `CREATE`: Create a new table, fail if the table already exists.- `EXIST_OK`: Create a new table if it does not exist, otherwise do nothing.@@ -116,7 +116,7 @@ Required and optional properties for tables in a Generic Lakehouse Catalog:**Location Requirement:** Must be specified at catalog, schema, or table level. See [Location Resolution](./lakehouse-generic-catalog.md#key-property-location).-You may also set additional properties specific to your lakehouse format or custom requirements.+Also set additional properties specific to your lakehouse format or custom requirements.### Table Operations@@ -124,7 +124,7 @@ Table operations follow standard relational catalog patterns. See [Table OperatiThe following sections provide examples and important details for working with Lance tables.-#### Creating a Lance Table+#### Create a Lance Table<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -179,7 +179,7 @@ tableCatalog.createTable(</TabItem></Tabs>-#### Registering External Tables+#### Register External TablesRegister existing Lance tables without moving or copying data:@@ -260,7 +260,7 @@ Solution: Verify the location path points to a valid Lance dataset directory### Migration Guide-#### Migrating Existing Lance Tables+#### Migrate Existing Lance Tables1. **Inventory**: List all existing Lance table locations2. **Create Catalog**: Create Generic Lakehouse catalog pointing to root location@@ -302,7 +302,8 @@ doneOther table operations (load, alter, drop, truncate) follow standard relational catalog patterns. See [Table Operations](./manage-relational-metadata-using-gravitino.md#table-operations) for details.-### Using Lance table with MinIO+### Lance Table with MinIO+To use Lance tables stored in MinIO with Gravitino, configure the MinIO storage backend once on the Lance catalog. Gravitino will then return those storage options to Lance clients and Spark does not need to repeat them.```shelldiff --git a/docs/lakehouse-hudi-catalog.md b/docs/lakehouse-hudi-catalog.mdindex 1bf6c59116..a3baaa7bad 100644--- a/docs/lakehouse-hudi-catalog.md+++ b/docs/lakehouse-hudi-catalog.md@@ -1,6 +1,6 @@----title: "Hudi catalog"-slug: /lakehouse-hudi-catalog+title: "Hudi Catalog"+slug: "/lakehouse-hudi-catalog"keywords:- lakehouse- hudi@@ -15,7 +15,7 @@ import TabItem from '@theme/TabItem';Apache Gravitino provides the ability to manage Apache Hudi metadata.-### Requirements and limitations+### Requirements and Limitations:::infoTested and verified with Apache Hudi `0.15.0`.@@ -23,13 +23,13 @@ Tested and verified with Apache Hudi `0.15.0`.## Catalog-### Catalog capabilities+### Catalog Capabilities- Works as a catalog proxy, supporting `HMS` as catalog backend.- Only support read operations (list and load) for Hudi schemas and tables.- Doesn't support timeline management operations now.-### Catalog properties+### Catalog Properties| Property name | Description | Default value | Required | Since Version ||------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|------------------|@@ -40,7 +40,7 @@ Tested and verified with Apache Hudi `0.15.0`.| `gravitino.bypass.` | Property name with this prefix passed down to the underlying backend client for use. Such as `gravitino.bypass.hive.metastore.failure.retries = 3` indicate 3 times of retries upon failure of Thrift metastore calls for HMS backend. | (none) | No | 0.7.0-incubating || `default.catalog` | The default catalog name for the Hive3 metastore backend; this configuration is ignored when using a Hive2 metastore. | hive | No | 1.1.0 |-#### Catalog backend security+#### Catalog Backend SecurityUsers can use the following properties to configure the security of the catalog backend if needed. For example, if you are using a Kerberos Hive catalog backend, you must set `authentication.type` to `Kerberos` and provide `authentication.kerberos.principal` and `authentication.kerberos.keytab-uri`.@@ -56,52 +56,52 @@ Users can use the following properties to configure the security of the catalogProperty name with this prefix passed down to the underlying backend client for use. Such as `gravitino.bypass.hive.metastore.kerberos.principal=XXXX`、`gravitino.bypass.hadoop.security.authentication=kerberos`、`gravitino.bypass.hive.metastore.sasl.enabled=ture` And so on.-### Catalog operations+### Catalog Operations-Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#catalog-operations) for more details.+Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#catalog-operations) for more details.-## Schema+## Schema-### Schema capabilities+### Schema Capabilities- Only support read operations: listSchema, loadSchema, and schemaExists.-### Schema properties+### Schema Properties- The `Location` is an optional property that shows the storage path to the Hudi database-### Schema operations+### Schema OperationsOnly support read operations: listSchema, loadSchema, and schemaExists.-Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#schema-operations) for more details.+Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#schema-operations) for more details.-## Table+## Table-### Table capabilities+### Table Capabilities- Only support read operations: listTable, loadTable, and tableExists.-### Table partitions+### Table Partitions- Support loading Hudi partitioned tables (Hudi only supports identity partitioning).-### Table sort orders+### Table Sort Orders- Doesn't support table sort orders.-### Table distributions+### Table Distributions- Doesn't support table distributions.-### Table indexes+### Table Indexes- Doesn't support table indexes.-### Table properties+### Table Properties- For HMS backend, it will bring out all the table parameters from the HMS.-### Table column types+### Table Column TypesThe following table shows the mapping between Gravitino and [Apache Hudi column types](https://hudi.apache.org/docs/sql_ddl#supported-types):@@ -121,7 +121,7 @@ The following table shows the mapping between Gravitino and [Apache Hudi column| `map` | `map` || `struct` | `struct` |-### Table operations+### Table OperationsOnly support read operations: listTable, loadTable, and tableExists.-Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.+Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.diff --git a/docs/lakehouse-iceberg-catalog.md b/docs/lakehouse-iceberg-catalog.mdindex 203b055048..6744337748 100644--- a/docs/lakehouse-iceberg-catalog.md+++ b/docs/lakehouse-iceberg-catalog.md@@ -1,6 +1,6 @@----title: "Iceberg catalog"-slug: /lakehouse-iceberg-catalog+title: "Iceberg Catalog"+slug: "/lakehouse-iceberg-catalog"keywords:- lakehouse- iceberg@@ -15,7 +15,7 @@ import TabItem from '@theme/TabItem';Apache Gravitino provides the ability to manage Apache Iceberg metadata.-### Requirements and limitations+### Requirements and Limitations:::infoBuilds with Apache Iceberg `1.11.0`. The Apache Iceberg table format version is `2` by default.@@ -23,7 +23,7 @@ Builds with Apache Iceberg `1.11.0`. The Apache Iceberg table format version is## Catalog-### Catalog capabilities+### Catalog Capabilities- Works as a catalog proxy, supporting `Hive`, `JDBC` and `REST` as catalog backend.- Supports DDL operations for Iceberg schemas and tables.@@ -32,7 +32,7 @@ Builds with Apache Iceberg `1.11.0`. The Apache Iceberg table format version is- Supports Kerberos or simple authentication for Iceberg catalog with Hive backend.- Supports table metadata cache.-### Catalog properties+### Catalog Properties| Property name | Description | Default value | Required | Since Version ||------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|-------------------------------------------|---------------|@@ -49,7 +49,7 @@ If you are using the Gravitino with Trino, you can pass the Trino Iceberg connecIf you are using the Gravitino with Spark, you can pass the Spark Iceberg connector configuration using prefix `spark.bypass.`. For example, using `spark.bypass.io-impl` to pass the `io-impl` to the Spark Iceberg connector in Spark runtime.-#### JDBC backend+#### JDBC BackendIf you are using JDBC backend, you must provide properties like `jdbc-user`, `jdbc-password` and `jdbc-driver`.@@ -63,11 +63,11 @@ If you are using JDBC backend, you must provide properties like `jdbc-user`, `jdIf you have a JDBC Iceberg catalog prior, you must set `catalog-backend-name` to keep consistent with your Jdbc Iceberg catalog name to operate the prior namespace and tables.:::caution-You must download the corresponding JDBC driver and place it to the `catalogs/lakehouse-iceberg/libs` directory If you are using JDBC backend.+Download the corresponding JDBC driver and place it to the `catalogs/lakehouse-iceberg/libs` directory If you are using JDBC backend.If you are using multiple JDBC catalog backends, setting `jdbc-initialize` to true may not take effect for RDMS like `Mysql`, you should create Iceberg meta tables explicitly.:::-#### REST catalog backend+#### REST Catalog BackendFor the REST catalog backend, `warehouse` identifies the catalog in the Iceberg REST spec. In the Gravitino Iceberg REST server, `warehouse` maps to the catalog name. An empty value means the default catalog.@@ -186,13 +186,13 @@ Please set `warehouse` to `abfs[s]://{container-name}@{storage-account-name}.dfsSince Gravitino 1.1.0, the Gravitino Iceberg Azure bundle jar has already included the Iceberg Azure bundle jar, no need to download and include it separately.:::-#### Other storages+#### Other StorageFor other storages that are not managed by Gravitino directly, you can manage them through custom catalog properties.| Configuration item | Description | Default value | Required | Since Version ||--------------------|-----------------------------------------------------------------------------------------|---------------|----------|------------------|-| `io-impl` | The IO implementation for `FileIO` in Iceberg, please use the full qualified classname. | (none) | No | 0.6.0-incubating |+| `io-impl` | The IO implementation for `FileIO` in Iceberg; use the fully qualified classname. | (none) | No | 0.6.0-incubating |To pass custom properties such as `security-token` to your custom `FileIO`, you can directly configure it by `gravitino.bypass.security-token`. `security-token` will be included in the properties when the initialize method of `FileIO` is invoked.@@ -200,7 +200,7 @@ To pass custom properties such as `security-token` to your custom `FileIO`, youPlease set the `warehouse` parameter to `{storage_prefix}://{bucket_name}/${prefix_name}`. Additionally, download corresponding jars in the `catalogs/lakehouse-iceberg/libs/` directory.:::-#### Catalog backend security+#### Catalog Backend SecurityUsers can use the following properties to configure the security of the catalog backend if needed. For example, if you are using a Kerberos Hive catalog backend, you must set `authentication.type` to `Kerberos` and provide `authentication.kerberos.principal` and `authentication.kerberos.keytab-uri`.@@ -214,7 +214,7 @@ Users can use the following properties to configure the security of the catalog| `authentication.kerberos.check-interval-sec` | The check interval of Kerberos credential for Iceberg catalog. | 60 | No | 0.6.0-incubating || `authentication.kerberos.keytab-fetch-timeout-sec` | The fetch timeout of retrieving Kerberos keytab from `authentication.kerberos.keytab-uri`. | 60 | No | 0.6.0-incubating |-#### Table metadata cache+#### Table Metadata CacheGravitino features a pluggable cache system for updating or retrieving table metadata in the cache. It validates the location of table metadata against the catalog backend to ensure the correctness of cached data.@@ -226,24 +226,24 @@ Gravitino features a pluggable cache system for updating or retrieving table metGravitino provides the build-in `org.apache.gravitino.iceberg.common.cache.LocalTableMetadataCache` to store the cached data in the memory. You could also implement your custom table metadata cache by implementing the `org.apache.gravitino.iceberg.common.cache.TableMetadataCache` interface.-### Catalog operations+### Catalog Operations-Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#catalog-operations) for more details.+Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#catalog-operations) for more details.## Schema-### Schema capabilities+### Schema Capabilities- doesn't support cascade drop schema.- supports hierarchical (multi-level) schemas, mapping each level to an Iceberg namespace level. See [Hierarchical schema](#hierarchical-schema).-### Schema properties+### Schema PropertiesYou could put properties except `comment`.-### Schema operations+### Schema Operations-Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#schema-operations) for more details.+Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#schema-operations) for more details.### Hierarchical schema@@ -335,11 +335,11 @@ children: List[str] = catalog.as_schemas().list_schemas(parent_schema="a:b")## Table-### Table capabilities+### Table Capabilities- Doesn't support column default value.-### Table partitions+### Table PartitionsSupports transforms:@@ -356,7 +356,7 @@ Iceberg doesn't support multi fields in `BucketTransform`.Iceberg doesn't support `ApplyTransform`, `RangeTransform`, and `ListTransform`.:::-### Table sort orders+### Table Sort Orderssupports expressions:@@ -373,7 +373,7 @@ supports expressions:For `bucket` and `truncate`, the first argument must be integer literal, and the second argument must be field reference.:::-### Table distributions+### Table Distributions- Support `HashDistribution`, which distribute data by partition key.- Support `RangeDistribution`, which distribute data by partition key or sort key for a SortOrder table.@@ -383,7 +383,7 @@ For `bucket` and `truncate`, the first argument must be integer literal, and theIf you doesn't specify distribution expressions, the table distribution will be adjusted to `RangeDistribution` for a sort order table, to `HashDistribution` for a partition table.:::-### Table column types+### Table Column Types| Gravitino Type | Apache Iceberg Type ||-------------------|-----------------------------|@@ -410,9 +410,9 @@ Apache Iceberg doesn't support Gravitino `Varchar` `Fixedchar` `Byte` `Short` `UMeanwhile, the data types other than listed above are mapped to Gravitino **[External Type](./manage-relational-metadata-using-gravitino.md#external-type)** that represents an unresolvable data type since 0.6.0-incubating.:::-### Table properties+### Table Properties-You can pass [Iceberg table properties](https://iceberg.apache.org/docs/1.5.2/configuration/) to Gravitino when creating an Iceberg table.+Pass [Iceberg table properties](https://iceberg.apache.org/docs/1.5.2/configuration/) to Gravitino when creating an Iceberg table.:::note**Reserved**: Fields that cannot be passed to the Gravitino server.@@ -426,23 +426,23 @@ You can pass [Iceberg table properties](https://iceberg.apache.org/docs/1.5.2/co| `provider` | The storage provider for table storage. | (none) | No | No | Yes | 0.2.0 || `format` | The format of table storage. | (none) | No | No | Yes | 0.2.0 || `format-version` | The format version of table storage. | (none) | No | No | Yes | 0.2.0 |-| `comment` | The table comment, please use `comment` field in table meta instead. | (none) | No | Yes | No | 0.2.0 |+| `comment` | The table comment; use the `comment` field in table meta instead. | (none) | No | Yes | No | 0.2.0 || `creator` | The table creator. | (none) | No | Yes | No | 0.2.0 || `current-snapshot-id` | The snapshot represents the current state of the table. | (none) | No | Yes | No | 0.2.0 || `cherry-pick-snapshot-id` | Selecting a specific snapshot in a merge operation. | (none) | No | Yes | No | 0.2.0 |-| `sort-order` | Iceberg table sort order, please use `SortOrder` in table meta instead. | (none) | No | Yes | No | 0.2.0 |+| `sort-order` | Iceberg table sort order; use `SortOrder` in table meta instead. | (none) | No | Yes | No | 0.2.0 || `identifier-fields` | The identifier fields for defining the table. | (none) | No | Yes | No | 0.2.0 |-| `write.distribution-mode` | Defines distribution of write data, please use `distribution` in table meta instead. | (none) | No | Yes | No | 0.2.0 |+| `write.distribution-mode` | Defines distribution of write data; use `distribution` in table meta instead. | (none) | No | Yes | No | 0.2.0 |-### Table indexes+### Table Indexes- Doesn't support table indexes.-### Table operations+### Table Operations-Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.+Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.-#### Alter table operations+#### Alter Table OperationsSupports operations:@@ -468,19 +468,19 @@ If you update a nullability column to non nullability, there may be compatibilit## View-### View capabilities+### View Capabilities- Supports list, create, load, alter, and drop for views managed by the underlying Iceberg REST, JDBC, or Hive backend.- Supports dialects such as `trino`, `spark`, and `hive`.- Can preserve multiple SQL representations for the same logical view.-### View operations+### View OperationsRefer to [Manage view metadata using Gravitino](./manage-view-metadata-using-gravitino.md) for more details.-## HDFS configuration+## HDFS Configuration-You can place `core-site.xml` and `hdfs-site.xml` in the `catalogs/lakehouse-iceberg/conf` directory to automatically load as the default HDFS configuration.+Place `core-site.xml` and `hdfs-site.xml` in the `catalogs/lakehouse-iceberg/conf` directory to automatically load as the default HDFS configuration.:::infoBuilds with Hadoop 2.10.x, there may be compatibility issues when accessing Hadoop 3.x clusters.diff --git a/docs/lakehouse-paimon-catalog.md b/docs/lakehouse-paimon-catalog.mdindex 3de913e2c5..4b082b1fb1 100644--- a/docs/lakehouse-paimon-catalog.md+++ b/docs/lakehouse-paimon-catalog.md@@ -1,6 +1,6 @@----title: "Paimon catalog"-slug: /lakehouse-paimon-catalog+title: "Paimon Catalog"+slug: "/lakehouse-paimon-catalog"keywords:- lakehouse- Paimon@@ -20,14 +20,14 @@ Builds with Apache Paimon `1.2`.## Catalog-### Catalog capabilities+### Catalog Capabilities- Works as a catalog proxy, supporting `FilesystemCatalog`, `JdbcCatalog` and `HiveCatalog`.- Supports DDL operations for Paimon schemas and tables.- Doesn't support alterSchema.-### Catalog properties+### Catalog Properties| Property name | Description | Default value | Required | Since Version ||----------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------|@@ -35,7 +35,7 @@ Builds with Apache Paimon `1.2`.| `uri` | The URI configuration of the Paimon catalog. `thrift://127.0.0.1:9083` or `jdbc:postgresql://127.0.0.1:5432/db_name` or `jdbc:mysql://127.0.0.1:3306/metastore_db`. It is optional for `FilesystemCatalog`. | (none) | required if the value of `catalog-backend` is not `filesystem`. | 0.6.0-incubating || `warehouse` | Warehouse directory of catalog. `file:///user/hive/warehouse-paimon/` for local fs, `hdfs://namespace/hdfs/path` for HDFS , `s3://{bucket-name}/path/` for S3 or `oss://{bucket-name}/path` for Aliyun OSS | (none) | Yes | 0.6.0-incubating || `catalog-backend-name` | The catalog name passed to underlying Paimon catalog backend. | The property value of `catalog-backend`, like `jdbc` for JDBC catalog backend. | No | 0.8.0-incubating |-| `authentication.type` | The type of authentication for Paimon catalog backend, currently Gravitino only supports `Kerberos` and `simple`. | `simple` | No | 0.6.0-incubating |+| `authentication.type` | The type of authentication for Paimon catalog backend, Gravitino only supports `Kerberos` and `simple`. | `simple` | No | 0.6.0-incubating || `hive.metastore.sasl.enabled` | Whether to enable SASL authentication protocol when connect to Kerberos Hive metastore. This is a raw Hive configuration | `false` | No, This value should be true in most case(Some will use SSL protocol, but it rather rare) if the value of `gravitino.iceberg-rest.authentication.type` is Kerberos. | 0.6.0-incubating || `authentication.kerberos.principal` | The principal of the Kerberos authentication. | (none) | required if the value of `authentication.type` is Kerberos. | 0.6.0-incubating || `authentication.kerberos.keytab-uri` | The URI of The keytab for the Kerberos authentication. | (none) | required if the value of `authentication.type` is Kerberos. | 0.6.0-incubating |@@ -79,7 +79,7 @@ connect to Aliyun DLF, more information can be found in the [Paimon REST CatalogAny properties not defined by Gravitino with `gravitino.bypass.` prefix will pass to Paimon catalog properties and HDFS configuration. For example, if specify `gravitino.bypass.table.type`, `table.type` will pass to Paimon catalog properties.-#### JDBC backend+#### JDBC BackendIf you are using JDBC backend, you must specify the properties like `jdbc-user`, `jdbc-password` and `jdbc-driver`.@@ -90,35 +90,35 @@ If you are using JDBC backend, you must specify the properties like `jdbc-user`,| `jdbc-driver` | `com.mysql.jdbc.Driver` or `com.mysql.cj.jdbc.Driver` for MySQL, `org.postgresql.Driver` for PostgreSQL | (none) | required if the value of `catalog-backend` is `jdbc`. | 0.7.0-incubating |:::caution-You must download the corresponding JDBC driver and place it to the `catalogs/lakehouse-paimon/libs` directory If you are using JDBC backend.+Download the corresponding JDBC driver and place it to the `catalogs/lakehouse-paimon/libs` directory If you are using JDBC backend.:::-### Catalog operations+### Catalog Operations-Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#catalog-operations) for more details.+Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#catalog-operations) for more details.## Schema-### Schema capabilities+### Schema Capabilities- Supporting createSchema, dropSchema, loadSchema and listSchema.- Supporting cascade drop schema.- Doesn't support alterSchema.-### Schema properties+### Schema Properties- Doesn't support specify location and store any schema properties when createSchema for FilesystemCatalog.- Doesn't return any schema properties when loadSchema for FilesystemCatalog.- Doesn't support store schema comment for FilesystemCatalog.-### Schema operations+### Schema Operations-Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#schema-operations) for more details.+Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#schema-operations) for more details.## Table-### Table capabilities+### Table Capabilities- Supporting createTable, purgeTable, alterTable, loadTable and listTable.- Supporting Column default value through table properties, such as `fields.{columnName}.default-value`, not column expression.@@ -134,7 +134,7 @@ Gravitino Paimon Catalog does not support dropTable, because the dropTable in PaPaimon does not support auto increment column.:::-### Table changes+### Table Changes- RenameTable- AddColumn@@ -148,21 +148,21 @@ Paimon does not support auto increment column.- SetProperty- RemoveProperty-### Table partitions+### Table Partitions- Only supports Identity partitions, such as `day`, `hour`, etc.-Please refer to [Paimon DDL Create Table](https://paimon.apache.org/docs/0.8/spark/sql-ddl/#create-table) for more details.+Refer to [Paimon DDL Create Table](https://paimon.apache.org/docs/0.8/spark/sql-ddl/#create-table) for more details.-### Table sort orders+### Table Sort Orders- Doesn't support table sort orders.-### Table distributions+### Table Distributions- Doesn't support table distributions.-### Table indexes+### Table Indexes- Only supports primary key Index.@@ -174,7 +174,7 @@ We cannot specify more than one primary key Index, and a primary key Index can cPaimon Table primary key constraint should not be same with partition fields, this will result in only one record in a partition.:::-### Table column types+### Table Column Types| Gravitino Type | Apache Paimon Type ||-------------------|------------------------------|@@ -203,9 +203,9 @@ Paimon Table primary key constraint should not be same with partition fields, thGravitino doesn't support Paimon `MultisetType` type.:::-### Table properties+### Table Properties-You can pass [Paimon table properties](https://paimon.apache.org/docs/0.8/maintenance/configurations/) to Gravitino when creating a Paimon table.+Pass [Paimon table properties](https://paimon.apache.org/docs/0.8/maintenance/configurations/) to Gravitino when creating a Paimon table.:::note**Reserved**: Fields that cannot be passed to the Gravitino server.@@ -228,13 +228,13 @@ Bucket settings are defined via Gravitino table distribution (HASH strategy). Th| `primary-key` | The table primary-key. | (none) | No | Yes | No | 0.6.0-incubating || `partition` | The table partition. | (none) | No | Yes | No | 0.6.0-incubating |-### Table operations+### Table Operations-Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.+Refer to [Manage Relational Metadata Using Gravitino](./manage-relational-metadata-using-gravitino.md#table-operations) for more details.## View-### View capabilities+### View Capabilities- Supports list, create, load, alter, and drop for views stored in the Paimon catalog.- Each view must include exactly one SQL representation with dialect `query`, which serves as the canonical view definition.@@ -242,13 +242,13 @@ Please refer to [Manage Relational Metadata Using Gravitino](./manage-relational- The `defaultCatalog` and `defaultSchema` fields are stored as Paimon view options and can be used to resolve unqualified identifiers in the SQL text.- View support depends on the selected Paimon backend and requires backend view API support.-### View operations+### View OperationsRefer to [Manage view metadata using Gravitino](./manage-view-metadata-using-gravitino.md) for more details.-## HDFS configuration+## HDFS Configuration-You can place `core-site.xml` and `hdfs-site.xml` in the `catalogs/lakehouse-paimon/conf` directory to automatically load as the default HDFS configuration.+Place `core-site.xml` and `hdfs-site.xml` in the `catalogs/lakehouse-paimon/conf` directory to automatically load as the default HDFS configuration.:::cautionWhen reading and writing to HDFS, the Gravitino server can only operate as the specified Kerberos user and doesn't support proxying to other Kerberos users now.diff --git a/docs/lance-rest-integration.md b/docs/lance-rest-integration.mdindex d0416fbb56..a3b32634a7 100644--- a/docs/lance-rest-integration.md+++ b/docs/lance-rest-integration.md@@ -1,6 +1,6 @@---title: "Lance REST Integration"-slug: /lance-rest-integration+slug: "/lance-rest-integration"keywords:- lance- lance-rest@@ -53,11 +53,11 @@ The following table outlines the tested compatibility between Gravitino versionsraising `ImportError: cannot import name'LanceNamespaceStorageOptionsProvider' from 'lance'`. You can use`lance-ray` 0.2.0 with Gravitino 1.3.0 by pinning `pylance` to 3.x or 4.x.-- Before using in production, please test the exact connector versions in your own environment.+- Before using in production, test the exact connector versions in your own environment.- The Lance ecosystem is changing quickly, so some versions may introduce breaking changes.:::-#### Reproducing the matrix locally+### Reproducing the matrix locallyBoth connectors ship with a multi-version integration test driver so thematrix can be re-verified (and extended) without ad-hoc scripting:@@ -80,7 +80,7 @@ matrix can be re-verified (and extended) without ad-hoc scripting:-PlanceRayVersions=0.4.2,0.3.0```-### Why Maintain a Compatibility Matrix?+### RationaleThe Lance ecosystem is under active development, with frequent updates to APIs and features. Gravitino's Lance REST service depends on specific connector behaviors to ensure reliable operation. Using incompatible versions may result in:@@ -98,7 +98,7 @@ Before proceeding, ensure the following requirements are met:2. **Lance Catalog**: A Lance catalog created in Gravitino using either:- Lance REST namespace API (`CreateNamespace` operation - see [Lance REST Service documentation](./lance-rest-service.md)- - Gravitino REST API, for more, please refer to [lakehouse-generic-catalog](./lakehouse-generic-catalog.md)+ - Gravitino REST API, for more, refer to [lakehouse-generic-catalog](./lakehouse-generic-catalog.md)- Example catalog name: `lance_catalog`3. **Lance Spark Bundle** (for Spark integration):@@ -228,7 +228,7 @@ pip install lance-ray- Ensure Ray version compatibility in your environment before deployment:::-### Usage Example+### ExampleThe following example demonstrates reading and writing Lance datasets through the Lance REST namespace using Ray:@@ -268,7 +268,7 @@ result = ray_dataset.filter(lambda row: row["value"] < 100).count()print(f"Filtered row count: {result}")```-## Additional Engine Support+## Additional EnginesThe Lance REST service is compatible with other data processing engines that support the Lance format, including:@@ -291,7 +291,7 @@ Most Lance-compatible engines follow this general pattern:Refer to each engine's specific documentation for detailed configuration parameters and code examples.-## Additional Resources+## Related- [Lance REST Service Documentation](./lance-rest-service)- [Lance Format Specification](https://lance.org/)diff --git a/docs/lance-rest-server-chart.md b/docs/lance-rest-server-chart.mdindex e1dbe5bb3a..cfa4880417 100644--- a/docs/lance-rest-server-chart.md+++ b/docs/lance-rest-server-chart.md@@ -1,12 +1,12 @@---title: "Install Lance REST Server on Kubernetes"-slug: /lance-rest-server-chart-keyword:+slug: "/lance-rest-server-chart"+keyword:- Lance REST Server Helm Chartlicense: "This software is licensed under the Apache License version 2."----# Install Lance REST Server on Kubernetes+## IntroductionThis Helm chart deploys Apache Gravitino Lance REST Server on Kubernetes with customizable configurations.@@ -31,7 +31,7 @@ Or install directly:helm upgrade --install gravitino-lance oci://registry-1.docker.io/apache/gravitino-lance-rest-server-helm --version <VERSION> -n gravitino --create-namespace```-### Install from Local Repository (For Development or Unreleased Versions)+### Install from Local Repository (for Development or Unreleased Versions)Clone the repository and navigate to the chart directory:@@ -54,7 +54,7 @@ helm upgrade --install gravitino-lance ./gravitino-lance-rest-server -n gravitin## View Chart Values-You can customize values.yaml parameters to override chart default settings. Additionally, Gravitino Lance REST Server configurations in [gravitino-lance-rest-server.conf](../dev/charts/gravitino-lance-rest-server/resources/gravitino-lance-rest-server.conf) can be modified through Helm values.yaml.+Customize values.yaml parameters to override chart default settings. Additionally, Gravitino Lance REST Server configurations in [gravitino-lance-rest-server.conf](../dev/charts/gravitino-lance-rest-server/resources/gravitino-lance-rest-server.conf) can be modified through Helm values.yaml.To display the default values of the chart, run:diff --git a/docs/lance-rest-service.md b/docs/lance-rest-service.mdindex c2e8b8698f..0f5ae171cc 100644--- a/docs/lance-rest-service.md+++ b/docs/lance-rest-service.md@@ -1,6 +1,6 @@----title: "Lance REST service"-slug: /lance-rest-service+title: "Lance REST Service"+slug: "/lance-rest-service"keywords:- Lance REST- Lance datasets@@ -17,7 +17,7 @@ The Lance REST service provides a RESTful interface for managing Lance datasetsThe service implements the [Lance REST API specification](https://docs.lancedb.com/api-reference/introduction). For detailed specification documentation, see the [official Lance REST documentation](https://lance.org/format/namespace/rest/catalog-spec/).-### What is Lance?+### About Lance[Lance](https://lance.org/format/) is a modern columnar data format designed for AI/ML workloads. It provides:@@ -83,7 +83,7 @@ The Lance REST service provides comprehensive support for namespace management,| DeregisterTable | Unregister a table from a namespace (metadata only, data remains) | POST | `/lance/v1/table/{id}/deregister` | 1.1.0 || DeclareTable | Declare a table and store the metadata without touching lance table data. | POST | `/lance/v1/table/{id}/declare` | 1.3.0 |-More details, please refer to the [Lance REST API specification](https://lance.org/format/namespace/rest/catalog-spec/)+More details, refer to the [Lance REST API specification](https://lance.org/format/namespace/rest/catalog-spec/)### Operation Details@@ -120,7 +120,7 @@ The `version` field of `CreateTable` response is always null, which stands for t## Deployment-### Running with Gravitino Server+### Run with Gravitino ServerTo enable the Lance REST service within Gravitino server, configure the following properties in your Gravitino configuration file `${GRAVITINO_HOME}/conf/gravitino.conf`:@@ -130,7 +130,7 @@ To enable the Lance REST service within Gravitino server, configure the followin| `gravitino.lance-rest.classpath` | Classpath for Lance REST service, relative to Gravitino home directory | lance-rest-server/libs | Yes | 1.1.0 || `gravitino.lance-rest.httpPort` | Port number for Lance REST service | 9101 | No | 1.1.0 || `gravitino.lance-rest.host` | Hostname for Lance REST service | 0.0.0.0 | No | 1.1.0 |-| `gravitino.lance-rest.namespace-backend` | Namespace metadata backend (currently only `gravitino` is supported) | gravitino | Yes | 1.1.0 |+| `gravitino.lance-rest.namespace-backend` | Namespace metadata backend (only `gravitino` is supported) | gravitino | Yes | 1.1.0 || `gravitino.lance-rest.gravitino-uri` | Gravitino server URI (required when namespace-backend is `gravitino`) | http://localhost:8090 | Yes | 1.1.0 || `gravitino.lance-rest.gravitino-metalake` | Gravitino metalake name (required when namespace-backend is `gravitino`) | (none) | Yes | 1.1.0 |@@ -145,7 +145,7 @@ gravitino.lance-rest.gravitino-uri = http://localhost:8090gravitino.lance-rest.gravitino-metalake = my_metalake```-### Running Standalone+### Run StandaloneTo run Lance REST service independently without Gravitino server (You need to start Gravitino server first):@@ -168,7 +168,7 @@ In most cases, you only need to configure `gravitino.lance-rest.gravitino-metala:::-### Running with Docker+### Run with DockerLaunch Lance REST service using Docker(You need to start Gravitino server first):@@ -193,7 +193,7 @@ Access the service at `http://localhost:9101`.:::tip Configuration Tips- **Required:** Set `LANCE_REST_GRAVITINO_METALAKE_NAME` to your Gravitino metalake name-- **Conditional:** Update `LANCE_REST_GRAVITINO_URI` if Gravitino server is not on `localhost` in the docker instance.+- **Conditional:** Update `LANCE_REST_GRAVITINO_URI` if Gravitino server is not on `localhost` in the Docker instance.- **Optional:** Other variables can use default values unless you have specific requirements:::@@ -202,13 +202,15 @@ Access the service at `http://localhost:9101`.When using Lance REST service with Gravitino backend, keep the following considerations in mind:### Prerequisites-- A running Gravitino server with a created metalake++- A running Gravitino server with a metalake### Namespace Hierarchy+Gravitino follows a three-level hierarchy: **catalog → schema → table**. When creating namespaces or tables:1. **Parent must exist:** Before creating `lance_catalog/schema`, ensure `lance_catalog` catalog exists in Gravitino metalake.-2. **Two-level limit:** You can create namespace `lance_catalog/schema`, but **not** `lance_catalog/schema/sub_schema`.+2. **Two-level limit:** Create namespace `lance_catalog/schema`, but **not** `lance_catalog/schema/sub_schema`.3. **Table placement:** Tables can only be created under `lance_catalog/schema`, not at catalog level.**Example Hierarchy:**@@ -234,7 +236,7 @@ URL encoded: lance_catalog%24schema%24table01```:::caution Important Limitations-- Currently supports only **two levels of namespaces** before tables+- Supports only **two levels of namespaces** before tables- Tables **cannot** be nested deeper than schema level- Parent catalog must be created in Gravitino before using Lance REST API- Namespace deletion is recursive and irreversible@@ -420,4 +422,4 @@ response.raise_for_status()## Integration with Lance REST-To use the Lance REST service with Apache Spark, Ray and other engines, please refer to [lance-rest-integration](./lance-rest-integration.md) for more details.+To use the Lance REST service with Apache Spark, Ray and other engines, refer to [lance-rest-integration](./lance-rest-integration.md) for more details.diff --git a/docs/lineage/gravitino-server-lineage.md b/docs/lineage/gravitino-server-lineage.mdindex 03f998d372..2ca8110bfd 100644--- a/docs/lineage/gravitino-server-lineage.md+++ b/docs/lineage/gravitino-server-lineage.md@@ -1,7 +1,7 @@----title: "Gravitino server Lineage support"-slug: /lineage/gravitino-server-lineage-keyword: Gravitino OpenLineage+title: "Server Lineage"+slug: "/lineage/gravitino-server-lineage"+keyword: "Gravitino OpenLineage"license: "This software is licensed under the Apache License version 2."---@@ -20,7 +20,7 @@ Gravitino server provides a pluggable lineage framework to receive, process, and| `gravitino.lineage.${sinkName}.sinkClass` | The name of the lineage sink class which should implement `org.apache.gravitino.lineage.sink.LineageSink` interface. | (none) | No | 0.9.0-incubating || `gravitino.lineage.queueCapacity` | The total capacity of lineage event queues. When there are multiple lineage sinks, each sink utilizes an isolated event queue. The capacity of each queue is calculated by dividing the value of `gravitino.lineage.queueCapacity` by the number of sinks. | 10000 | No | 0.9.0-incubating |-## Lineage http source+## Lineage HTTP SourceHttp source provides an endpoint which follows [OpenLineage API spec](https://openlineage.io/apidocs/openapi/) to receive OpenLineage run event. The following use example:@@ -51,11 +51,11 @@ curl -X POST \http://localhost:8090/api/lineage```-## Lineage log sink+## Lineage Log SinkLog sink prints the log in a separate log file `gravitino_lineage.log`, you could change the default behavior in `conf/log4j2.properties`.-## Lineage HTTP sink+## Lineage HTTP SinkThe HTTP sink supports sending the lineage event to an HTTP server that follows the OpenLineage REST specification, like marquez| Property Name | Description | Default Value | Required | Since Version |@@ -66,6 +66,6 @@ The HTTP sink supports sending the lineage event to an HTTP server that follows| gravitino.lineage.http.authType | Authentication type for http sink (options: `apiKey` or `none`) | none | Yes | 1.0.0 || gravitino.lineage.http.apiKey | API key for authenticating with http sink (required if authType=`apiKey`) | none | No | 1.0.0 |-## High watermark status+## High Watermark StatusWhen the lineage sink operates slowly, lineage events accumulate in the async queue. Once the queue size exceeds 90% of its capacity (high watermark threshold), the lineage system enters a high watermark status. In this state, the lineage source must implement retry and logging mechanisms for rejected events to prevent system overload. For the HTTP source, it returns the `429 Too Many Requests` status code to the client.\ No newline at end of filediff --git a/docs/lineage/gravitino-spark-lineage.md b/docs/lineage/gravitino-spark-lineage.mdindex 01787bb745..f07a13782b 100644--- a/docs/lineage/gravitino-spark-lineage.md+++ b/docs/lineage/gravitino-spark-lineage.md@@ -1,7 +1,7 @@----title: "Gravitino Spark Lineage support"-slug: /lineage/gravitino-spark-lineage-keyword: Gravitino Spark OpenLineage+title: "Spark Lineage"+slug: "/lineage/gravitino-spark-lineage"+keyword: "Gravitino Spark OpenLineage"license: "This software is licensed under the Apache License version 2."---@@ -16,7 +16,7 @@ By leveraging OpenLineage Spark plugin, Gravitino provides a separate Spark plug- Supports extract Gravitino dataset from GVFS.- Supports Gravitino spark connector and non Gravitino Spark connector.-## Gravitino dataset+## Gravitino DatasetThe Gravitino OpenLineage Spark plugin transforms the Gravitino metalake name into the dataset namespace. The dataset name varies by dataset type when generating lineage information.@@ -56,7 +56,7 @@ For GVFS location, this plugin adds `fileset-location` facets which contains the}```-## How to use+## Getting Started1. Download [Gravitino OpenLineage plugin jar](https://github.com/datastrato/gravitino-openlineage-plugins/tree/main/spark-plugin/) and place it to the classpath of Spark.2. Add configuration to the Spark to enable lineage collection.@@ -78,7 +78,7 @@ Configuration example For Spark shell:--conf spark.openlineage.columnLineage.datasetLineageEnabled=true```-Please refer to [OpenLineage Spark guides](https://openlineage.io/docs/guides/spark/) and [Gravitino Spark connector](/spark-connector/spark-connector.md) for more details. Additionally, Gravitino provides following configurations for lineage.+Refer to [OpenLineage Spark guides](https://openlineage.io/docs/guides/spark/) and [Gravitino Spark connector](/spark-connector/spark-connector.md) for more details. Additionally, Gravitino provides following configurations for lineage.<table><thead>diff --git a/docs/lineage/lineage.md b/docs/lineage/lineage.mdindex 9c39fcc831..c08342c7c7 100644--- a/docs/lineage/lineage.md+++ b/docs/lineage/lineage.md@@ -1,13 +1,13 @@----title: "Apache Gravitino Lineage support"-slug: /lineage/lineage-keyword: Gravitino Open Lineage+title: "Lineage"+slug: "/lineage/lineage"+keyword: "Gravitino Open Lineage"license: "This software is licensed under the Apache License version 2."---## Overview-Lineage information is critical for metadata systems, Gravitino supports data lineage by leveraging [OpenLineage](https://openlineage.io/). Gravitino provides a specific Spark jar to collect lineage information with Gravitino identifier, please refer to [Gravitino Spark lineage page](./gravitino-spark-lineage.md). Additional, Gravitino server provides lineage process framework to receive, process and sink Open lineage events to other systems.+Lineage information is critical for metadata systems. Gravitino supports data lineage by leveraging [OpenLineage](https://openlineage.io/) and provides a specific Spark JAR to collect lineage information with the Gravitino identifier. For details, see the [Gravitino Spark lineage page](./gravitino-spark-lineage.md). Additionally, the Gravitino server provides a lineage process framework to receive, process, and sink OpenLineage events to other systems.## Capabilitiesdiff --git a/docs/manage-fileset-metadata-using-gravitino.md b/docs/manage-fileset-metadata-using-gravitino.mdindex b3ab389b17..f5954f9e7c 100644--- a/docs/manage-fileset-metadata-using-gravitino.md+++ b/docs/manage-fileset-metadata-using-gravitino.md@@ -1,14 +1,16 @@----title: Manage fileset metadata using Gravitino-slug: /manage-fileset-metadata-using-gravitino+title: "Manage Fileset Metadata"+slug: "/manage-fileset-metadata-using-gravitino"date: 2024-4-2-keyword: Gravitino fileset metadata manage-license: This software is licensed under the Apache License version 2.+keyword: "Gravitino fileset metadata manage"+license: "This software is licensed under the Apache License version 2."---import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+## Introduction+This page introduces how to manage fileset metadata in Apache Gravitino. Filesetsare a collection of files and directories. Users can leveragefilesets to manage non-tabular data like training datasets and other raw data.@@ -16,7 +18,7 @@ filesets to manage non-tabular data like training datasets and other raw data.Typically, a fileset is mapped to a directory on a file system like HDFS, S3, ADLS, GCS, etc.With the fileset managed by Gravitino, the non-tabular data can be managed as assets together withtabular data in Gravitino in a unified way. The following operations will use HDFS as an example, for other-HCFS like S3, OSS, GCS, etc., please refer to the corresponding operations [fileset-with-s3](./fileset-catalog-with-s3.md),+HCFS like S3, OSS, GCS, etc., refer to the corresponding operations [fileset-with-s3](./fileset-catalog-with-s3.md),[fileset-with-oss](./fileset-catalog-with-oss.md), [fileset-with-gcs](./fileset-catalog-with-gcs.md) and[fileset-with-adls](./fileset-catalog-with-adls.md).@@ -25,21 +27,21 @@ the fileset's identifier, without needing to know the physical path of the managunified access control mechanism, filesets can be managed via the same role based accesscontrol mechanism without needing to set access controls across different storage systems.-To use fileset, please make sure that:+To use filesets, make sure that:- Gravitino server has started, and the host and port is [http://localhost:8090](http://localhost:8090).- A metalake has been created and [enabled](./manage-metalake-using-gravitino.md#enable-a-metalake)-## Catalog operations+## Catalog Operations-### Create a catalog+### Create a Catalog:::tipFor a fileset catalog, you must specify the catalog `type` as `FILESET` when creating the catalog.:::-You can create a catalog by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs`-endpoint or just use the Gravitino Java client. The following is an example of creating a catalog:+Create a catalog by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs`+endpoint or use the Gravitino Java client. The following is an example of creating a catalog:<Tabs groupId="language" queryString><TabItem value="shell" label="Shell">@@ -95,45 +97,45 @@ catalog = gravitino_client.create_catalog(name="catalog",</TabItem></Tabs>-Currently, Gravitino supports the following catalog providers:+Gravitino supports the following catalog providers:| Catalog provider | Catalog property ||---------------------|---------------------------------------------------------------------|| `fileset` or `None` | [Fileset catalog property](./fileset-catalog.md#catalog-properties) |-### Load a catalog+### Load a CatalogRefer to [Load a catalog](./manage-relational-metadata-using-gravitino.md#load-a-catalog)in relational catalog for more details. For a fileset catalog, the load operation is the same.-### Alter a catalog+### Alter a CatalogRefer to [Alter a catalog](./manage-relational-metadata-using-gravitino.md#alter-a-catalog)in relational catalog for more details. For a fileset catalog, the alter operation is the same.-### Drop a catalog+### Drop a CatalogRefer to [Drop a catalog](./manage-relational-metadata-using-gravitino.md#drop-a-catalog)in relational catalog for more details. For a fileset catalog, the drop operation is the same.:::note-- Currently, Gravitino doesn't support dropping a catalog with schemas and filesets under it. You have+- Gravitino doesn't support dropping a catalog with schemas and filesets under it. You haveto drop all the schemas and filesets under the catalog before dropping the catalog.- The value of location property in a catalog should be a directory on a file system(HDFS) or path prefix on a cloud storage (S3, GCS, etc.).** The same goes for schema and fileset.:::-### List all catalogs in a metalake+### List All Catalogs in a Metalake-Please refer to [List all catalogs in a metalake](./manage-relational-metadata-using-gravitino.md#list-all-catalogs-in-a-metalake)+Refer to [List all catalogs in a metalake](./manage-relational-metadata-using-gravitino.md#list-all-catalogs-in-a-metalake)in relational catalog for more details. For a fileset catalog, the list operation is the same.-### List all catalogs' information in a metalake+### List All Catalog Information in a Metalake-Please refer to [List all catalogs' information in a metalake](./manage-relational-metadata-using-gravitino.md#list-all-catalogs-information-in-a-metalake)+Refer to [List all catalog information in a metalake](./manage-relational-metadata-using-gravitino.md#list-all-catalog-information-in-a-metalake)in relational catalog for more details. For a fileset catalog, the list operation is the same.-## Schema operations+## Schema Operations`Schema` is a virtual namespace in a fileset catalog, which is used to organize the fileset. Itis similar to the concept of `schema` in relational catalog.@@ -142,10 +144,10 @@ is similar to the concept of `schema` in relational catalog.Users should create a metalake and a catalog before creating a schema.:::-### Create a schema+### Create a Schema-You can create a schema by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas`-endpoint or just use the Gravitino Java client. The following is an example of creating a schema:+Create a schema by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas`+endpoint or use the Gravitino Java client. The following is an example of creating a schema:<Tabs groupId="language" queryString><TabItem value="shell" label="Shell">@@ -202,27 +204,27 @@ catalog.as_schemas().create_schema(name="schema",</TabItem></Tabs>-Currently, Gravitino supports the following schema property:+Gravitino supports the following schema property:| Catalog provider | Schema property ||------------------|-------------------------------------------------------------------|| `fileset` | [Fileset schema property](./fileset-catalog.md#schema-properties) |-### Load a schema+### Load a Schema-Please refer to [Load a schema](./manage-relational-metadata-using-gravitino.md#load-a-schema)+Refer to [Load a schema](./manage-relational-metadata-using-gravitino.md#load-a-schema)in relational catalog for more details. For a fileset catalog, the schema load operation is thesame.-### Alter a schema+### Alter a Schema-Please refer to [Alter a schema](./manage-relational-metadata-using-gravitino.md#alter-a-schema)+Refer to [Alter a schema](./manage-relational-metadata-using-gravitino.md#alter-a-schema)in relational catalog for more details. For a fileset catalog, the schema alter operation is thesame.-### Drop a schema+### Drop a Schema-Please refer to [Drop a schema](./manage-relational-metadata-using-gravitino.md#drop-a-schema)+Refer to [Drop a schema](./manage-relational-metadata-using-gravitino.md#drop-a-schema)in relational catalog for more details. For a fileset catalog, the schema drop operation is thesame.@@ -231,23 +233,23 @@ set to `true`. Besides, for `MANAGED` fileset, this drop operation will also **rfiles/directories of this fileset; for `EXTERNAL` fileset, this drop operation will only deletethe metadata of this fileset.-### List all schemas under a catalog+### List All Schemas Under a Catalog-Please refer to [List all schemas under a catalog](./manage-relational-metadata-using-gravitino.md#list-all-schemas-under-a-catalog)+Refer to [List all schemas under a catalog](./manage-relational-metadata-using-gravitino.md#list-all-schemas-under-a-catalog)in relational catalog for more details. For a fileset catalog, the schema list operation is thesame.-## Fileset operations+## Fileset Operations:::tip- Users should create a metalake, a catalog, and a schema before creating a fileset.- - Currently, Gravitino only supports managing Hadoop Compatible File System (HCFS) locations.+ - Gravitino only supports managing Hadoop Compatible File System (HCFS) locations.:::-### Create a fileset+### Create a Fileset-You can create a fileset by sending a `POST` request to the `/api/metalakes/{metalake_name}-/catalogs/{catalog_name}/schemas/{schema_name}/filesets` endpoint or just use the Gravitino Java+Create a fileset by sending a `POST` request to the `/api/metalakes/{metalake_name}+/catalogs/{catalog_name}/schemas/{schema_name}/filesets` endpoint or use the Gravitino Javaclient. The following is an example of creating a fileset with single storage location:<Tabs groupId="language" queryString>@@ -308,7 +310,7 @@ catalog.as_fileset_catalog().create_fileset(ident=NameIdentifier.of("schema", "e</TabItem></Tabs>-Currently, Gravitino supports two **types** of filesets:+Gravitino supports two **types** of filesets:- `MANAGED`: The storage location of the fileset is managed by Gravitino when specified as`MANAGED`, the physical location of the fileset will be deleted when this fileset is dropped.@@ -323,7 +325,7 @@ This behavior is skipped in either of these cases:2. When the location contains [placeholders](./manage-fileset-metadata-using-gravitino.md#placeholder):::-#### storageLocation+#### StorageLocationThe `storageLocation` is the physical location of the fileset. Users can specify this locationwhen creating a fileset, or follow the rules of the catalog/schema location if not specified.@@ -348,7 +350,7 @@ For a `MANAGED` fileset, the storage location is determined in the following priFor an `EXTERNAL` fileset, the user must always specify `storageLocation` during fileset creation.If the provided location contains placeholders, they will be replaced by the corresponding fileset property values.-#### placeholder+#### PlaceholderThe `storageLocation` in each level can contain **placeholders**, format as `{{name}}`, which willbe replaced by the corresponding fileset property value when the fileset object is created. The@@ -457,8 +459,9 @@ catalog.as_fileset_catalog().create_fileset(ident=NameIdentifier.of("test_schema</TabItem></Tabs>-#### storageLocations-You can also create a fileset with multiple storage locations. The `storageLocations` is a map of location name to storage location.+#### StorageLocations++Create a fileset with multiple storage locations. The `storageLocations` is a map of location name to storage location.The generation rules of each location follow the generation rules of a single location.The following is an example of creating a fileset with multiple storage locations:@@ -645,9 +648,9 @@ catalog.as_fileset_catalog().create_multiple_location_fileset(</TabItem></Tabs>-### Alter a fileset+### Alter a Fileset-You can modify a fileset by sending a `PUT` request to the `/api/metalakes/{metalake_name}+Modify a fileset by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/filesets/{fileset_name}` endpoint or just use theGravitino Java client. The following is an example of modifying a fileset:@@ -703,7 +706,7 @@ fileset_new = catalog.as_fileset_catalog().alter_fileset(NameIdentifier.of("sche</TabItem></Tabs>-Currently, Gravitino supports the following changes to a fileset:+Gravitino supports the following changes to a fileset:| Supported modification | JSON | Java ||-----------------------------|--------------------------------------------------------------|-----------------------------------------------|@@ -713,9 +716,9 @@ Currently, Gravitino supports the following changes to a fileset:| Remove a fileset property | `{"@type":"removeProperty","property":"key1"}` | `FilesetChange.removeProperty("key1")` || Remove comment (deprecated) | `{"@type":"removeComment"}` | `FilesetChange.removeComment()` |-### Drop a fileset+### Drop a Fileset-You can remove a fileset by sending a `DELETE` request to the `/api/metalakes/{metalake_name}+Remove a fileset by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/filesets/{fileset_name}` endpoint or by using theGravitino Java client. The following is an example of dropping a fileset:@@ -759,9 +762,9 @@ catalog.as_fileset_catalog().drop_fileset(ident=NameIdentifier.of("schema", "filFor a `MANAGED` fileset, the physical location of the fileset will be deleted when this fileset isdropped. For `EXTERNAL` fileset, only the metadata of the fileset will be removed.-### List filesets+### List Filesets-You can list all filesets in a schema by sending a `GET` request to the `/api/metalakes/+List all filesets in a schema by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/filesets` endpoint or by using theGravitino Java client. The following is an example of listing all the filesets in a schema:@@ -801,7 +804,7 @@ fileset_list: List[NameIdentifier] = catalog.as_fileset_catalog().list_filesets(</Tabs>-## Manage fileset with multiple clusters+## Manage Filesets Across Multiple ClustersIn general, the locations of all schemas and filesets under a filesetdiff --git a/docs/manage-jobs-in-gravitino.md b/docs/manage-jobs-in-gravitino.mdindex d72e0fdc87..0ad2aa4d1b 100644--- a/docs/manage-jobs-in-gravitino.md+++ b/docs/manage-jobs-in-gravitino.md@@ -1,6 +1,6 @@----title: "Manage jobs in Gravitino"-slug: /manage-jobs-in-gravitino+title: "Manage Jobs"+slug: "/manage-jobs-in-gravitino"date: 2025-08-13keywords:- job@@ -34,15 +34,15 @@ Gravitino's job system provides an extensible way to connect to different job exsupport running a single job at a time, and it doesn't support job scheduling for now.:::-## Job operations+## Job Operations-### Register a new job template+### Register a New Job Template-Before running a job, the first step is to register a job template. Currently, Gravitino+Before running a job, the first step is to register a job template. Gravitinosupports two types of job templates: `shell` and `spark` (we will add more job templates in thefuture).-#### Shell job template+#### Shell Job TemplateThe `shell` job template is used to run scripts, it can be a shell script, or any executablescript. The template is defined as follows:@@ -80,8 +80,7 @@ Here is a brief description of the fields in the job template:Please note that:-1. The `executable` and `scripts` must be accessible by the Gravitino server. Currently,- Gravitino supports accessing files from the local file system, HTTP(S) URLs, and FTP(S) URLs+1. The `executable` and `scripts` must be accessible by the Gravitino server. Gravitino supports accessing files from the local file system, HTTP(S) URLs, and FTP(S) URLs(more distributed file system support will be added in the future). So the `executable` and`scripts` can be a local file path, or a URL like `http://example.com/my_script.sh`.2. The `executable`, `arguments`, `environments`, `customFields` and `scripts` can use placeholders@@ -91,7 +90,7 @@ Please note that:when running the job, so you can use the relative path in the `executable` and `scripts` torefer to other scripts in the job working directory.-#### Spark job template+#### Spark Job TemplateThe `spark` job template is used to run Spark jobs, it is a Spark application JAR file for now.@@ -146,7 +145,7 @@ Here is a brief description of the fields in the Spark job template:Note that:1. The `executable`, `jars`, `files`, and `archives` must be accessible by the Gravitino server.- Currently, Gravitino support accessing files from the local file system, HTTP(S) URLs, and+ Gravitino supports accessing files from the local file system, HTTP(S) URLs, andFTP(S) URLs (more distributed file system supports will be added in the future). So the`executable`, `jars`, `files`, and `archives` can be a local file path, or a URL like`http://example.com/my_spark_app.jar`.@@ -231,9 +230,9 @@ curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \</TabItem></Tabs>-### List registered job templates+### List Registered Job Templates-You can list all the registered job templates under a metalake by using the REST API or the Java+List all the registered job templates under a metalake by using the REST API or the Javaand Python SDKs.<Tabs groupId='language' queryString>@@ -268,9 +267,9 @@ curl -X GET -H "Accept: application/vnd.gravitino.v1+json" \</TabItem></Tabs>-### Get a registered job template by name+### Get a Registered Job Template by Name-You can get a registered job template by its name using the REST API or the Java and Python SDKs.+Get a registered job template by its name using the REST API or the Java and Python SDKs.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -299,9 +298,9 @@ curl -X GET -H "Accept: application/vnd.gravitino.v1+json" \</TabItem></Tabs>-### Delete a registered job template by name+### Delete a Registered Job Template by Name-You can delete a registered job template by its name using the REST API or the Java and Python SDKs.+Delete a registered job template by its name using the REST API or the Java and Python SDKs.Note that deleting a job template will also delete all the jobs that are using this job template.If there are queued, started, or to be cancelled jobs that are using this job template, the deletion@@ -334,9 +333,9 @@ curl -X DELETE -H "Accept: application/vnd.gravitino.v1+json" \</TabItem></Tabs>-### Alter a registered job template+### Alter a Registered Job Template-You can alter a registered job template by its name using the REST API or the Java and Python+Alter a registered job template by its name using the REST API or the Java and PythonSDKs. Gravitino supports altering the `name`, `comment` and `template` fields of the job template.<Tabs groupId='language' queryString>@@ -423,7 +422,7 @@ curl -X PUT -H "Accept: application/vnd.gravitino.v1+json" \</TabItem></Tabs>-### Run a job based on a job template+### Run a Job Based on a Job TemplateTo run a job based on the registered job template, you can use the REST API or the Java and Python SDKs.When running a job, you need to provide the job template name and the parameters to replace the@@ -433,7 +432,7 @@ Gravitino leverages the job executor to run the job, so you need to specify thethrough configuration `gravitino.job.executor`. By default, it is set to "local", which meansthe job will be launched as a process within the same machine that runs the Gravitino server. Notethat the local job executor is only for testing. If you want to run the job in a distributed environment,-you need to implement your own `JobExecutor` and set the configuration, please see+you need to implement your own `JobExecutor` and set the configuration; see[Implement a custom job executor](#implement-a-custom-job-executor) section below.When running a Spark job template with the local executor, configure one of:@@ -491,15 +490,15 @@ curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \</TabItem></Tabs>-The returned `JobHandle` contains the job ID and other information about the job. You can use the job ID to+The returned `JobHandle` contains the job ID and other information about the job. Use the job ID tocheck the job status and cancel the job.The runJob API will return immediately after the job is submitted to the job executor, and the job will be-executed asynchronously. You can check the job status using the job ID returned by the runJob API.+executed asynchronously. Check the job status using the job ID returned by the runJob API.-### List all jobs+### List All Jobs-You can list all the jobs under a metalake by using the REST API or the Java and Python SDKs.+List all the jobs under a metalake by using the REST API or the Java and Python SDKs.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -540,9 +539,9 @@ curl -X GET -H "Accept: application/vnd.gravitino.v1+json" \</TabItem></Tabs>-### Get a job by job ID+### Get a Job by Job ID-You can get a job by its job ID using the REST API or the Java and Python SDKs.+Get a job by its job ID using the REST API or the Java and Python SDKs.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -571,9 +570,9 @@ curl -X GET -H "Accept: application/vnd.gravitino.v1+json" \</TabItem></Tabs>-### Cancel a job by job ID+### Cancel a Job by Job ID-You can cancel a job by its job ID using the REST API or the Java and Python SDKs.+Cancel a job by its job ID using the REST API or the Java and Python SDKs.The job will be cancelled asynchronously, and the job status will be updated to `CANCELLING` first,then to `CANCELLED` when the cancellation is completed. If the job is already in `SUCCEEDED`,@@ -610,9 +609,9 @@ curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \</TabItem></Tabs>-### Configurations of the job system+### Job System Configuration-You can configure the job system through the `gravitino.conf` file. The following are the+Configure the job system through the `gravitino.conf` file. The following are thedefault configurations:| Property name | Description | Default value | Required | Since Version |@@ -623,7 +622,7 @@ default configurations:| `gravitino.job.statusPullIntervalInMs` | The interval in milliseconds to pull the job status from the job executor | `300000` (5 minutes) | No | 1.0.0 |-#### Configurations for local job executor+#### Configurations for Local Job ExecutorThe local job executor is used for testing and development purposes, it runs the job in the local process.The following are the default configurations for the local job executor:@@ -635,10 +634,10 @@ The following are the default configurations for the local job executor:| `gravitino.jobExecutor.local.jobStatusKeepTimeInMs` | The time in milliseconds to keep the job status in the local job executor | `3600000` (1 hour) | No | 1.0.0 || `gravitino.jobExecutor.local.sparkHome` | The home directory of Spark, Gravitino checks this configuration firstly and then `SPARK_HOME` env. Either of them should be set to run Spark job | `None` | No | 1.0.1 |-### Implement a custom job executor+### Implement a Custom Job Executor-Gravitino's job system is designed to be extensible, allowing you to implement your own job executor-to run jobs in a distributed environment. You can refer to the interface `JobExecutor` in the+Gravitino's job system is extensible: you can implement your own job executor+to run jobs in a distributed environment. Refer to the interface `JobExecutor` in thecode [here](https://github.com/apache/gravitino/blob/main/core/src/main/java/org/apache/gravitino/connector/job/JobExecutor.java).After you implement your own job executor, you need to register it in the Gravitino server by@@ -650,7 +649,7 @@ gravitino.job.executor = airflowgravitino.jobExecutor.airflow.class = com.example.MyAirflowJobExecutor```-You can also configure the job executor with additional properties, like:+Configure the job executor with additional properties, like:```gravitino.jobExecutor.airflow.host = http://localhost:8080@@ -660,7 +659,7 @@ gravitino.jobExecutor.airflow.password = mypasswordThese properties will be passed to the airflow job executor when it is instantiated.-## Future work+## Future WorkThe job system is a new feature introduced in Gravitino 1.0.0, and it still needs more work:diff --git a/docs/manage-messaging-metadata-using-gravitino.md b/docs/manage-messaging-metadata-using-gravitino.mdindex 953b9989ce..589bfa8657 100644--- a/docs/manage-messaging-metadata-using-gravitino.md+++ b/docs/manage-messaging-metadata-using-gravitino.md@@ -1,33 +1,35 @@----title: "Manage massaging metadata using Apache Gravitino"-slug: /manage-massaging-metadata-using-gravitino+title: "Manage Messaging Metadata"+slug: "/manage-massaging-metadata-using-gravitino"date: 2024-4-22-keyword: Gravitino massaging metadata manage-license: This software is licensed under the Apache License version 2.+keyword: "Gravitino massaging metadata manage"+license: "This software is licensed under the Apache License version 2."---import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+## Introduction+This page introduces how to manage messaging metadata using Apache Gravitino. Messaging metadata refers tothe topic metadata of the messaging system such as Apache Kafka, Apache Pulsar, Apache RocketMQ, etc.Through Gravitino, you can create, update, delete, and list topics via unified RESTful APIs or Java client.-To use messaging catalog, please make sure that:+To use the messaging catalog, make sure that:- Gravitino server has started, and the host and port is [http://localhost:8090](http://localhost:8090).- A metalake has been created and [enabled](./manage-metalake-using-gravitino.md#enable-a-metalake).-## Catalog operations+## Catalog Operations-### Create a catalog+### Create a Catalog:::tipFor a messaging catalog, you must specify the `type` as `messaging` when creating a catalog.:::-You can create a catalog by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs`-endpoint or just use the Gravitino Java client. The following is an example of creating a messaging catalog:+Create a catalog by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs`+endpoint or use the Gravitino Java client. The following is an example of creating a messaging catalog:<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -70,81 +72,81 @@ Catalog catalog = gravitinoClient.createCatalog("catalog",</TabItem></Tabs>-Currently, Gravitino supports the following catalog providers:+Gravitino supports the following catalog providers:| Catalog provider | Catalog property ||------------------|-----------------------------------------------------------------|| `kafka` | [Kafka catalog property](./kafka-catalog.md#catalog-properties) |-### Load a catalog+### Load a CatalogRefer to [Load a catalog](./manage-relational-metadata-using-gravitino.md#load-a-catalog)in relational catalog for more details. For a messaging catalog, the load operation is the same.-### Alter a catalog+### Alter a CatalogRefer to [Alter a catalog](./manage-relational-metadata-using-gravitino.md#alter-a-catalog)in relational catalog for more details. For a messaging catalog, the alter operation is the same.-### Drop a catalog+### Drop a CatalogRefer to [Drop a catalog](./manage-relational-metadata-using-gravitino.md#drop-a-catalog)in relational catalog for more details. For a messaging catalog, the drop operation is the same.-### List all catalogs in a metalake+### List All Catalogs in a Metalake-Please refer to [List all catalogs in a metalake](./manage-relational-metadata-using-gravitino.md#list-all-catalogs-in-a-metalake)+Refer to [List all catalogs in a metalake](./manage-relational-metadata-using-gravitino.md#list-all-catalogs-in-a-metalake)in relational catalog for more details. For a messaging catalog, the list operation is the same.-### List all catalogs' information in a metalake+### List All Catalog Information in a Metalake-Please refer to [List all catalogs' information in a metalake](./manage-relational-metadata-using-gravitino.md#list-all-catalogs-information-in-a-metalake)+Refer to [List all catalog information in a metalake](./manage-relational-metadata-using-gravitino.md#list-all-catalog-information-in-a-metalake)in relational catalog for more details. For a messaging catalog, the list operation is the same.-## Schema operations+## Schema Operations`Schema` is a logical grouping of topics in a messaging catalog, if the messaging system does not support topics grouping,schema operations are not supported but a "default" schema will be automatically created to include all topics:::caution note-Gravitino currently only supports the Kafka catalog. Since Kafka does not support topic grouping, only list and load operations are supported for schema.+Gravitino supports only the Kafka catalog. Since Kafka does not support topic grouping, only list and load operations are supported for schema.:::-### Create a schema+### Create a Schema-Please refer to [Create a schema](./manage-relational-metadata-using-gravitino.md#create-a-schema)+Refer to [Create a schema](./manage-relational-metadata-using-gravitino.md#create-a-schema)in relational catalog for more details. For a messaging catalog, the create operation is the same.-### Load a schema+### Load a Schema-Please refer to [Load a schema](./manage-relational-metadata-using-gravitino.md#load-a-schema)+Refer to [Load a schema](./manage-relational-metadata-using-gravitino.md#load-a-schema)in relational catalog for more details. For a messaging catalog, the load operation is the same.-### Alter a schema+### Alter a Schema-Please refer to [Alter a schema](./manage-relational-metadata-using-gravitino.md#alter-a-schema)+Refer to [Alter a schema](./manage-relational-metadata-using-gravitino.md#alter-a-schema)in relational catalog for more details. For a messaging catalog, the alter operation is the same.-### Drop a schema+### Drop a Schema-Please refer to [Drop a schema](./manage-relational-metadata-using-gravitino.md#drop-a-schema)+Refer to [Drop a schema](./manage-relational-metadata-using-gravitino.md#drop-a-schema)in relational catalog for more details. For a messaging catalog, the drop operation is the same.-### List all schemas under a catalog+### List All Schemas Under a Catalog-Please refer to [List all schemas under a catalog](./manage-relational-metadata-using-gravitino.md#list-all-schemas-under-a-catalog)+Refer to [List all schemas under a catalog](./manage-relational-metadata-using-gravitino.md#list-all-schemas-under-a-catalog)in relational catalog for more details. For a messaging catalog, the list operation is the same.-## Topic operations+## Topic Operations:::tipUsers should create a metalake, a catalog and a schema, then ensure that the metalake and catalog are enabled before operating topics.:::-### Create a topic+### Create a Topic-You can create a topic by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/topics`-endpoint or just use the Gravitino Java client. The following is an example of creating a topic:+Create a topic by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/topics`+endpoint or use the Gravitino Java client. The following is an example of creating a topic:<Tabs groupId='language' queryString>@@ -190,10 +192,10 @@ topicCatalog.createTopic(</TabItem></Tabs>-### Alter a topic+### Alter a Topic-You can modify a topic by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/topics/{topic_name}`-endpoint or just use the Gravitino Java client. The following is an example of altering a topic:+Modify a topic by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/topics/{topic_name}`+endpoint or use the Gravitino Java client. The following is an example of altering a topic:<Tabs groupId='language' queryString>@@ -233,7 +235,7 @@ Topic t = topicCatalog.alterTopic(NameIdentifier.of("default", "topic"),</TabItem></Tabs>-Currently, Gravitino supports the following changes to a topic:+Gravitino supports the following changes to a topic:| Supported modification | JSON | Java ||-------------------------|--------------------------------------------------------------|---------------------------------------------|@@ -241,9 +243,9 @@ Currently, Gravitino supports the following changes to a topic:| Set a topic property | `{"@type":"setProperty","property":"key1","value":"value1"}` | `TopicChange.setProperty("key1", "value1")` || Remove a topic property | `{"@type":"removeProperty","property":"key1"}` | `TopicChange.removeProperty("key1")` |-### Drop a topic+### Drop a Topic-You can remove a topic by sending a `DELETE` request to the `/api/metalakes/{metalake_name}+Remove a topic by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/topics/{topic_name}` endpoint or by using theGravitino Java client. The following is an example of dropping a topic:@@ -274,9 +276,9 @@ topicCatalog.dropTopic(NameIdentifier.of("default", "topic"));</TabItem></Tabs>-### List all topics under a schema+### List All Topics Under a Schema-You can list all topics in a schema by sending a `GET` request to the `/api/metalakes/+List all topics in a schema by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/topics` endpoint or by using theGravitino Java client. The following is an example of listing all the topics in a schema:diff --git a/docs/manage-metalake-using-gravitino.md b/docs/manage-metalake-using-gravitino.mdindex 31abe0abbc..373201ed0d 100644--- a/docs/manage-metalake-using-gravitino.md+++ b/docs/manage-metalake-using-gravitino.md@@ -1,14 +1,16 @@----title: "Manage metalake using Apache Gravitino"-slug: /manage-metalake-using-gravitino+title: "Manage Metalakes"+slug: "/manage-metalake-using-gravitino"date: 2023-12-10-keyword: Gravitino metalake manage-license: This software is licensed under the Apache License version 2.+keyword: "Gravitino metalake manage"+license: "This software is licensed under the Apache License version 2."---import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+## Introduction+This page introduces how to create, modify, view, and delete [metalakes](./glossary.md#metalake) by using Gravitino.## Prerequisites@@ -17,7 +19,7 @@ You have installed and launched Gravitino. For more details, see [Get started](.Let's say, the access is [http://localhost:8090](http://localhost:8090).-## Create a metalake+## Create a MetalakeTo create a metalake, you can send a `POST` request to the `/api/metalakes` endpoint or use the Gravitino Admin client.@@ -60,7 +62,7 @@ gravitino_admin_client.create_metalake(name="metalake",</TabItem></Tabs>-## Load a metalake+## Load a MetalakeTo load a metalake, you can send a `GET` request to the `/api/metalakes/{metalake_name}` endpoint or use the Gravitino Admin client.@@ -94,7 +96,7 @@ gravitino_admin_client.load_metalake("metalake")</TabItem></Tabs>-## Alter a metalake+## Alter a MetalakeTo alter a metalake, you can send a `PUT` request to the `/api/metalakes/{metalake_name}` endpoint or use the Gravitino Admin client.@@ -151,7 +153,7 @@ The following table outlines the supported modifications that you can make to a| Set property | `{"@type":"setProperty","property":"key1","value":"value1"}` | `MetalakeChange.setProperty("key1", "value1")` | `MetalakeChange.set_property("key1", "value1")` || Remove property | `{"@type":"removeProperty","property":"key1"}` | `MetalakeChange.removeProperty("key1")` | `MetalakeChange.remove_property("key1")` |-## Enable a metalake+## Enable a MetalakeMetalake has a reserved property - `in-use`, which indicates whether the metalake is available for use. By default, the `in-use` property is set to `true`.To enable a disabled metalake, you can send a `PATCH` request to the `/api/metalakes/{metalake_name}` endpoint or use the Gravitino Admin client.@@ -194,7 +196,7 @@ gravitino_admin_client.enable_metalake("metalake")This operation does nothing if the metalake is already enabled.:::-## Disable a metalake+## Disable a MetalakeOnce a metalake is disabled:- Users can only [list](#list-all-metalakes), [load](#load-a-metalake), [drop](#drop-a-metalake), or [enable](#enable-a-metalake) it.@@ -240,9 +242,9 @@ gravitino_admin_client.disable_metalake("metalake")This operation does nothing if the metalake is already disabled.:::-## Drop a metalake+## Drop a Metalake-Deleting a metalake by "force" is not a default behavior, so please make sure:+Deleting a metalake by "force" is not a default behavior, so make sure:- There are no catalogs under the metalake. Otherwise, you will get an error.- The metalake is [disabled](#disable-a-metalake). Otherwise, you will get an error.@@ -285,7 +287,7 @@ gravitino_admin_client.drop_metalake("metalake", force=True)</TabItem></Tabs>-## List all metalakes+## List All MetalakesTo view all your metalakes, you can send a `GET` request to the `/api/metalakes` endpoint or use the Gravitino Admin client.diff --git a/docs/manage-model-metadata-using-gravitino.md b/docs/manage-model-metadata-using-gravitino.mdindex 6190595c69..ed2685e840 100644--- a/docs/manage-model-metadata-using-gravitino.md+++ b/docs/manage-model-metadata-using-gravitino.md@@ -1,37 +1,39 @@----title: Manage model metadata using Gravitino-slug: /manage-model-metadata-using-gravitino+title: "Manage Model Metadata"+slug: "/manage-model-metadata-using-gravitino"date: 2024-12-26-keyword: Gravitino model metadata manage-license: This software is licensed under the Apache License version 2.+keyword: "Gravitino model metadata manage"+license: "This software is licensed under the Apache License version 2."---import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+## Introduction+This page introduces how to manage model metadata in Apache Gravitino. Gravitino model catalogis a kind of model registry, which provides the ability to manage machine learning models'versioned metadata. It follows the typical Gravitino 3-level namespace (catalog, schema, andmodel) and supports managing the versions for each model.-Currently, it supports model and model version registering, listing, loading, and deleting.+It supports model and model version registering, listing, loading, and deleting.-To use the model catalog, please make sure that:+To use the model catalog, make sure that:- The Gravitino server has started, and is serving at, e.g. [http://localhost:8090](http://localhost:8090).- A metalake has been created and [enabled](./manage-metalake-using-gravitino.md#enable-a-metalake)-## Catalog operations+## Catalog Operations-### Create a catalog+### Create a Catalog:::infoFor a model catalog, you must specify the catalog `type` as `MODEL` when creating the catalog.Please also be aware that the `provider` is not required for a model catalog.:::-You can create a catalog by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs`-endpoint or just use the Gravitino Java/Python client. The following is an example of creating a+Create a catalog by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs`+endpoint or use the Gravitino Java/Python client. The following is an example of creating acatalog:<Tabs groupId="language" queryString>@@ -84,32 +86,32 @@ catalog = gravitino_client.create_catalog(name="model_catalog",</TabItem></Tabs>-### Load a catalog+### Load a CatalogRefer to [Load a catalog](./manage-relational-metadata-using-gravitino.md#load-a-catalog)in relational catalog for more details. For a model catalog, the load operation is the same.-### Alter a catalog+### Alter a CatalogRefer to [Alter a catalog](./manage-relational-metadata-using-gravitino.md#alter-a-catalog)in relational catalog for more details. For a model catalog, the alter operation is the same.-### Drop a catalog+### Drop a CatalogRefer to [Drop a catalog](./manage-relational-metadata-using-gravitino.md#drop-a-catalog)in relational catalog for more details. For a model catalog, the drop operation is the same.-### List all catalogs in a metalake+### List All Catalogs in a Metalake-Please refer to [List all catalogs in a metalake](./manage-relational-metadata-using-gravitino.md#list-all-catalogs-in-a-metalake)+Refer to [List all catalogs in a metalake](./manage-relational-metadata-using-gravitino.md#list-all-catalogs-in-a-metalake)in relational catalog for more details. For a model catalog, the list operation is the same.-### List all catalogs' information in a metalake+### List All Catalog Information in a Metalake-Please refer to [List all catalogs' information in a metalake](./manage-relational-metadata-using-gravitino.md#list-all-catalogs-information-in-a-metalake)+Refer to [List all catalog information in a metalake](./manage-relational-metadata-using-gravitino.md#list-all-catalog-information-in-a-metalake)in relational catalog for more details. For a model catalog, the list operation is the same.-## Schema operations+## Schema Operations`Schema` is a virtual namespace in a model catalog, which is used to organize the models. Itis similar to the concept of `schema` in the relational catalog.@@ -118,10 +120,10 @@ is similar to the concept of `schema` in the relational catalog.Users should create a metalake and a catalog before creating a schema.:::-### Create a schema+### Create a Schema-You can create a schema by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas`-endpoint or just use the Gravitino Java/Python client. The following is an example of creating a+Create a schema by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas`+endpoint or use the Gravitino Java/Python client. The following is an example of creating aschema:<Tabs groupId="language" queryString>@@ -176,43 +178,43 @@ catalog.as_schemas().create_schema(name="model_schema",</TabItem></Tabs>-### Load a schema+### Load a Schema-Please refer to [Load a schema](./manage-relational-metadata-using-gravitino.md#load-a-schema)+Refer to [Load a schema](./manage-relational-metadata-using-gravitino.md#load-a-schema)in relational catalog for more details. For a model catalog, the schema load operation is thesame.-### Alter a schema+### Alter a Schema-Please refer to [Alter a schema](./manage-relational-metadata-using-gravitino.md#alter-a-schema)+Refer to [Alter a schema](./manage-relational-metadata-using-gravitino.md#alter-a-schema)in relational catalog for more details. For a model catalog, the schema alter operation is thesame.-### Drop a schema+### Drop a Schema-Please refer to [Drop a schema](./manage-relational-metadata-using-gravitino.md#drop-a-schema)+Refer to [Drop a schema](./manage-relational-metadata-using-gravitino.md#drop-a-schema)in relational catalog for more details. For a model catalog, the schema drop operation is thesame.Note that the drop operation will delete all the model metadata under this schema if `cascade`set to `true`.-### List all schemas under a catalog+### List All Schemas Under a Catalog-Please refer to [List all schemas under a catalog](./manage-relational-metadata-using-gravitino.md#list-all-schemas-under-a-catalog)+Refer to [List all schemas under a catalog](./manage-relational-metadata-using-gravitino.md#list-all-schemas-under-a-catalog)in relational catalog for more details. For a model catalog, the schema list operation is thesame.-## Model operations+## Model Operations:::tip- Users should create a metalake, a catalog, and a schema before creating a model.:::-### Register a model+### Register a Model-You can register a model by sending a `POST` request to the `/api/metalakes/{metalake_name}-/catalogs/{catalog_name}/schemas/{schema_name}/models` endpoint or just use the Gravitino+Register a model by sending a `POST` request to the `/api/metalakes/{metalake_name}+/catalogs/{catalog_name}/schemas/{schema_name}/models` endpoint or use the GravitinoJava/Python client. The following is an example of creating a model:<Tabs groupId="language" queryString>@@ -264,9 +266,9 @@ model: Model = catalog.as_model_catalog().register_model(ident=NameIdentifier.of</TabItem></Tabs>-### Get a model+### Get a Model-You can get a model by sending a `GET` request to the `/api/metalakes/{metalake_name}+Get a model by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/models/{model_name}` endpoint or by using theGravitino Java/Python client. The following is an example of getting a model:@@ -302,9 +304,9 @@ model: Model = catalog.as_model_catalog().get_model(ident=NameIdentifier.of("mod</TabItem></Tabs>-### Alter a model+### Alter a Model-You can modify a model's metadata (e.g. rename, update comment, or modify properties) by+Modify a model's metadata (e.g. rename, update comment, or modify properties) bysending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/models/{model_name}` endpoint or using the Gravitino Java/Python client. The following is an example of modifying a model:@@ -397,7 +399,7 @@ updated_model = model_catalog.alter_model(</TabItem></Tabs>-#### Supported modifications+#### Supported ModificationsThe following operations are supported for altering a model:@@ -414,9 +416,9 @@ The following operations are supported for altering a model:- If the target model does not exist, a `404 Not Found` error will be returned.:::-### Delete a model+### Delete a Model-You can delete a model by sending a `DELETE` request to the `/api/metalakes/{metalake_name}+Delete a model by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/models/{model_name}` endpoint or by using theGravitino Java/Python client. The following is an example of deleting a model:@@ -454,9 +456,9 @@ catalog.as_model_catalog().delete_model(NameIdentifier.of("model_schema", "exampNote that the delete operation will delete all the model versions under this model.-### List models+### List Models-You can list all the models in a schema by sending a `GET` request to the `/api/metalakes/+List all the models in a schema by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/models` endpoint or by using theGravitino Java/Python client. The following is an example of listing all the models in a schema:@@ -492,7 +494,7 @@ model_list = catalog.as_model_catalog().list_models(namespace=Namespace.of("mode</TabItem></Tabs>-## ModelVersion operations+## ModelVersion Operations:::tip- Users should create a metalake, a catalog, a schema, and a model before link a model version@@ -501,7 +503,7 @@ model_list = catalog.as_model_catalog().list_models(namespace=Namespace.of("mode### Link a ModelVersion-You can link a ModelVersion by sending a `POST` request to the `/api/metalakes/{metalake_name}+Link a ModelVersion by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/models/{model_name}/versions` endpoint or by usingthe Gravitino Java/Python client. The following is an example of linking a ModelVersion:@@ -553,7 +555,7 @@ catalog.as_model_catalog().link_model_version(model_ident=NameIdentifier.of("modThe comment and properties of ModelVersion can be different from the model.-You can also link a ModelVersion with multiple model URIs. The URIs is a map of URI name to URI.+Link a ModelVersion with multiple model URIs. The URIs is a map of URI name to URI.If you associate only one URI with a ModelVersion and do not specify a URI name(as introduced in the previous paragraph), Gravitino will automatically generate a default URI name "unknown".@@ -611,7 +613,7 @@ catalog.as_model_catalog().link_model_version_with_multiple_uris(model_ident=Nam### Get a ModelVersion-You can get a ModelVersion by sending a `GET` request to the `/api/metalakes/{metalake_name}+Get a ModelVersion by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/models/{model_name}/versions/{version_number}`endpoint or by using the Gravitino Java/Python client. The following is an example of gettinga ModelVersion:@@ -648,9 +650,9 @@ catalog.as_model_catalog().get_model_version(model_ident=NameIdentifier.of("mode</TabItem></Tabs>-### Get a ModelVersion by alias+### Get a ModelVersion by Alias-You can also get a ModelVersion by sending a `GET` request to the `/api/metalakes/{metalake_name}+Get a ModelVersion by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/models/{model_name}/aliases/{alias}` endpoint orby using the Gravitino Java/Python client. The following is an example of getting a ModelVersionby alias:@@ -689,7 +691,7 @@ model_version: ModelVersion = catalog.as_model_catalog().get_model_version_by_al### Get ModelVersion URI-You can get the URI of a ModelVersion by sending a `GET` request to the `/api/metalakes/{metalake_name}+Get the URI of a ModelVersion by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/models/{model_name}/versions/{version_number}/uri?uriName={uriName}`endpoint or by using the Gravitino Java/Python client. The following is an example of gettingthe URI of a ModelVersion:@@ -728,8 +730,8 @@ catalog.as_model_catalog().get_model_version_uri(model_ident=NameIdentifier.of("The param `uriName` is not required. If it is not specified, Gravitino will obtainthe corresponding URI based on the `default-uri-name` property set in the Model or ModelVersion.-You can refer to [Model Properties](./model-catalog.md#Model properties) and-[ModelVersion properties](./model-catalog.md#ModelVersion properties) for more details.+Refer to [Model Properties](./model-catalog.md#model-properties) and+[ModelVersion properties](./model-catalog.md#modelversion-properties) for more details.If the `default-uri-name` property is not set in either the model or the model version,an `IllegalArgumentException` will be thrown.@@ -767,9 +769,9 @@ catalog.as_model_catalog().get_model_version_uri(model_ident=NameIdentifier.of("</TabItem></Tabs>-### Get ModelVersion URI by alias+### Get ModelVersion URI by Alias-You can also get the URI of a ModelVersion by sending a `GET` request to the `/api/metalakes/{metalake_name}+Get the URI of a ModelVersion by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/models/{model_name}/aliases/{alias}/uri?uriName={uriName}`endpoint or by using the Gravitino Java/Python client. The following is an example of gettingthe URI of a ModelVersion:@@ -843,7 +845,7 @@ catalog.as_model_catalog().get_model_version_uri_by_alias(model_ident=NameIdenti### Alter a ModelVersion-You can modify a modelVersion's metadata (e.g. update uri, update comment, or modify properties)+Modify a modelVersion's metadata (e.g. update uri, update comment, or modify properties)by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name} /models/{model_name}/versions/{version_number}` endpoint or using the GravitinoJava/Python client. The following is an example of modifying a model version:@@ -965,7 +967,7 @@ updated_model = model_catalog.alter_model_version(</TabItem></Tabs>-#### Supported modifications+#### Supported Modifications| Operation | JSON Example | Java Method | Python Method ||---------------------|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|@@ -983,9 +985,9 @@ updated_model = model_catalog.alter_model_version(- If the target model version does not exist, a `404 Not Found` error will be returned.:::-### Alter a ModelVersion by alias+### Alter a ModelVersion by Alias-You can also modify a modelVersion's metadata (e.g. update uri, update comment, or modify+Modify a modelVersion's metadata (e.g. update uri, update comment, or modifyproperties) by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/models/{model_name}/aliases/{alias}` endpoint or using the GravitinoJava/Python client. The following is an example of modifying a model version:@@ -1107,7 +1109,7 @@ updated_model = model_catalog.alter_model_version_by_alias(</TabItem></Tabs>-#### Supported modifications+#### Supported Modifications| Operation | JSON Example | Java Method | Python Method ||---------------------|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|@@ -1128,7 +1130,7 @@ updated_model = model_catalog.alter_model_version_by_alias(### Delete a ModelVersion-You can delete a ModelVersion by sending a `DELETE` request to the `/api/metalakes/{metalake_name}+Delete a ModelVersion by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/models/{model_name}/versions/{version_number}`endpoint or by using the Gravitino Java/Python client. The following is an example of deletinga ModelVersion:@@ -1165,9 +1167,9 @@ catalog.as_model_catalog().delete_model_version(model_ident=NameIdentifier.of("m</TabItem></Tabs>-### Delete a ModelVersion by alias+### Delete a ModelVersion by Alias-You can also delete a ModelVersion by sending a `DELETE` request to the `/api/metalakes/+Delete a ModelVersion by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/models/{model_name}/aliases/{alias}` endpoint orby using the Gravitino Java/Python client. The following is an example of deleting a ModelVersionby alias:@@ -1206,7 +1208,7 @@ catalog.as_model_catalog().delete_model_version_by_alias(model_ident=NameIdentif### List ModelVersions-You can list all the ModelVersions in a model by sending a `GET` request to the `/api/metalakes/+List all the ModelVersions in a model by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/models/{model_name}/versions` endpointor by using the Gravitino Java/Python client. The following is an example of listing all theModelVersions in a model:@@ -1243,9 +1245,9 @@ model_versions: List[int] = catalog.as_model_catalog().list_model_versions(model</TabItem></Tabs>-### List all versions' information in a model+### List All Version Information in a Model-You can list all versions' information in a model by sending a `GET` request to the `/api/metalakes/+List all versions' information in a model by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/models/{model_name}/versions?detail=true` endpointor by using the Gravitino Java/Python client. The following is an example of listing all theversions' information in a model:diff --git a/docs/manage-policies-in-gravitino.md b/docs/manage-policies-in-gravitino.mdindex 5eb848780f..5137a50d98 100644--- a/docs/manage-policies-in-gravitino.md+++ b/docs/manage-policies-in-gravitino.md@@ -1,9 +1,9 @@----title: "Manage policies in Gravitino"-slug: /manage-policies-in-gravitino+title: "Manage Policies"+slug: "/manage-policies-in-gravitino"date: 2025-08-04-keyword: policy management, policy, policies, Gravitino, data governance-license: This software is licensed under the Apache License version 2.+keyword: "policy management, policy, policies, Gravitino, data governance"+license: "This software is licensed under the Apache License version 2."---import Tabs from '@theme/Tabs';@@ -16,7 +16,7 @@ metadata objects. Policies are a set of rules that can be associated with a metaobject for data governance and similar purposes.This document provides a brief introduction to using policies in Gravitino, covering both the Gravitino Java client and-REST APIs. If you want to know more about the policy system in Gravitino, please refer to the+REST APIs. If you want to know more about the policy system in Gravitino, refer to theJavadoc and REST API documentation.:::info@@ -25,7 +25,7 @@ Javadoc and REST API documentation.`name`. For example, a `CATALOG` object has a name "catalog1" with type "CATALOG", a `SCHEMA`object has a name "catalog1.schema1" with type "SCHEMA", a `TABLE` object has a name"catalog1.schema1.table1" with type "TABLE".-2. Currently, `CATALOG`, `SCHEMA`, `TABLE`, `FILESET`, `TOPIC`, and `MODEL` objects can be+2`CATALOG`, `SCHEMA`, `TABLE`, `FILESET`, `TOPIC`, and `MODEL` objects can beassociated with policies.3. Policies in Gravitino are inheritable, so listing policies of a metadata object will also list thepolicies of its parent metadata objects. For example, listing policies of a `Table` will also list@@ -35,11 +35,11 @@ Javadoc and REST API documentation.list with `inherited` value `false`.:::-## Policy operations+## Policy Operations-### Create new policies+### Create New Policies-The first step to managing policies is to create new policies. You can create a new policy by providing a policy+The first step to managing policies is to create new policies. Create a policy by providing aname, type, and other optional fields like comment, enabled, etc.Gravitino supports two kinds of policies: built-in policies and custom policies.@@ -104,13 +104,13 @@ Policy policy = client.createPolicy(</TabItem></Tabs>-### Built-in Iceberg compaction policy+### Built-In Iceberg Compaction PolicyFor the built-in `system_iceberg_compaction` policy content, field definitions, and examples, see [Iceberg compaction policy](./iceberg-compaction-policy.md).-### List created policies+### List Policies-You can list all the created policy names as well as policy objects in a metalake in Gravitino.+List all the policy names as well as policy objects in a metalake in Gravitino.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -138,9 +138,9 @@ Policy[] policies = client.listPolicyInfos();</TabItem></Tabs>-### Get a policy by name+### Get a Policy by Name-You can get a policy by its name.+Get a policy by its name.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -161,7 +161,7 @@ Policy policy = client.getPolicy("my_policy1");</TabItem></Tabs>-### Update a policy+### Update a PolicyGravitino allows you to update a policy by providing changes.@@ -223,7 +223,7 @@ Policy policy = client.alterPolicy(</TabItem></Tabs>-Currently, Gravitino supports the following policy changes:+Gravitino supports the following policy changes:| Supported modification | JSON | Java ||------------------------|----------------------------------------------------------------------|-------------------------------------------------------|@@ -231,9 +231,9 @@ Currently, Gravitino supports the following policy changes:| Update a comment | `{"@type":"updateComment","newComment":"new_comment"}` | `PolicyChange.updateComment("new_comment")` || Update policy content | `{"@type":"updateContent","policyType":"custom","newContent":{...}}` | `PolicyChange.updateContent("test_type", newContent)` |-### Enable or disable a policy+### Enable or Disable a Policy-You can enable or disable a policy.+Enable or disable a policy.The `enabled` field of a policy is only a display attribute that marks whether the policy is enabled or disabled.It does not affect the actual behavior or characteristics of the policy itself. This field is intended for@@ -277,9 +277,9 @@ client.enablePolicy("my_policy_new");</TabItem></Tabs>-### Delete a policy+### Delete a Policy-You can delete a policy by its name.+Delete a policy by its name.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -300,14 +300,13 @@ client.deletePolicy("my_policy_new");</TabItem></Tabs>-## Policy associations+## Policy Associations-Gravitino allows you to associate and disassociate policies with metadata objects. Currently,-`CATALOG`, `SCHEMA`, `TABLE`, `FILESET`, `TOPIC`, and `MODEL` objects can have policies.+Gravitino lets you associate and disassociate policies with metadata objects. The `CATALOG`, `SCHEMA`, `TABLE`, `FILESET`, `TOPIC`, and `MODEL` object types can have policies.-### Associate and disassociate policies with a metadata object+### Associate and Disassociate Policies with a Metadata Object-You can associate and disassociate policies with a metadata object by providing the object type, object+Associate and disassociate policies with a metadata object by providing the object type, objectname and policy names.The request path for REST API is `/api/metalakes/{metalake}/objects/{metadataObjectType}/{metadataObjectFullName}/policies`.@@ -379,9 +378,9 @@ schema.supportsPolicies().associatePolicies(new String[] {"policy1"}, null);</TabItem></Tabs>-### List associated policies for a metadata object+### List Associated Policies for a Metadata Object-You can list all the policies associated with a metadata object. If a policy is inheritable,+List all the policies associated with a metadata object. If a policy is inheritable,listing policies of a metadata object will also list the policies of its parent metadata objects.The request path for REST API is `/api/metalakes/{metalake}/objects/{metadataObjectType}/{metadataObjectFullName}/policies`.@@ -415,9 +414,9 @@ Policy[] schemaPolicies = schema.supportsPolicies().listPolicyInfos();</TabItem></Tabs>-### Get an associated policy by name for a metadata object+### Get an Associated Policy by Name for a Metadata Object-You can get an associated policy by its name for a metadata object.+Get an associated policy by its name for a metadata object.The request path for REST API is `/api/metalakes/{metalake}/objects/{metadataObjectType}/{metadataObjectFullName}/policies/{policy}`.@@ -446,9 +445,9 @@ Policy schemaPolicy = schema.supportsPolicies().getPolicy("policy1");</TabItem></Tabs>-### List metadata objects associated with a policy+### List Metadata Objects Associated with a Policy-You can list all the metadata objects **directly associated with** a policy.+List all the metadata objects **directly associated with** a policy.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">diff --git a/docs/manage-relational-metadata-using-gravitino.md b/docs/manage-relational-metadata-using-gravitino.mdindex 82ad304413..15f01b987b 100644--- a/docs/manage-relational-metadata-using-gravitino.md+++ b/docs/manage-relational-metadata-using-gravitino.md@@ -1,14 +1,16 @@----title: "Manage relational metadata using Apache Gravitino"-slug: /manage-relational-metadata-using-gravitino+title: "Manage Relational Metadata"+slug: "/manage-relational-metadata-using-gravitino"date: 2023-12-10-keyword: Gravitino relational metadata manage-license: This software is licensed under the Apache License version 2.+keyword: "Gravitino relational metadata manage"+license: "This software is licensed under the Apache License version 2."---import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+## Introduction+This page introduces how to manage relational metadata by Apache Gravitino, relational metadata refersto relational catalog, schema, table, partitions, and views. Through Gravitino, you can create, edit, anddelete relational metadata via unified REST APIs or Java client.@@ -18,7 +20,7 @@ For dedicated view examples and APIs, see [Manage view metadata using Gravitino]In this document, Gravitino uses Apache Hive catalog as an example to show how to managerelational metadata by Gravitino. Other relational catalogs are similar to Hive catalog,but they may have some differences, especially in catalog property, table property, and column type.-For more details, please refer to the related doc.+For more details, refer to the related doc.- [**Apache Hive**](./apache-hive-catalog.md)- [**MySQL**](./jdbc-mysql-catalog.md)@@ -41,9 +43,9 @@ Assuming:- Gravitino has just started, and the host and port is [http://localhost:8090](http://localhost:8090).- A metalake has been created and [enabled](./manage-metalake-using-gravitino.md#enable-a-metalake).-## Catalog operations+## Catalog Operations-### Create a catalog+### Create a Catalog:::cautionIt is not recommended to use one data source to create multiple catalogs,@@ -57,12 +59,12 @@ This is a Flink limitation. For example, `catalog_hive` is valid, but `1_catalog:::tipThe code below is an example of creating a Hive catalog. For other relational catalogs, the code is-similar, but the catalog type, provider, and properties may be different. For more details, please refer to the related doc.+similar, but the catalog type, provider, and properties may be different. For more details, refer to the related doc.For relational catalog, you must specify the catalog `type` as `RELATIONAL` when creating a catalog.:::-You can create a catalog by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs` endpoint or just use the Gravitino Java client. The following is an example of creating a catalog:+Create a catalog by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs` endpoint or use the Gravitino Java client. The following is an example of creating a catalog:<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -120,7 +122,7 @@ gravitino_client.create_catalog(name="catalog",</TabItem></Tabs>-Currently, Gravitino supports the following catalog providers:+Gravitino supports the following catalog providers:| Catalog provider | Catalog property ||---------------------|-----------------------------------------------------------------------------------------|@@ -138,9 +140,9 @@ Currently, Gravitino supports the following catalog providers:| `jdbc-hologres` | [Hologres catalog property](./jdbc-hologres-catalog.md#catalog-properties) || `lakehouse-generic` | [Lakehouse generic catalog property](./lakehouse-generic-catalog.md#catalog-properties) |-### Load a catalog+### Load a Catalog-You can load a catalog by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}` endpoint or just use the Gravitino Java client. The following is an example of loading a catalog:+Load a catalog by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}` endpoint or use the Gravitino Java client. The following is an example of loading a catalog:<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -172,9 +174,9 @@ catalog = gravitino_client.load_catalog("catalog")</TabItem></Tabs>-### Alter a catalog+### Alter a Catalog-You can modify a catalog by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}` endpoint or just use the Gravitino Java client. The following is an example of altering a catalog:+Modify a catalog by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}` endpoint or use the Gravitino Java client. The following is an example of altering a catalog:<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -221,7 +223,7 @@ catalog = gravitino_client.alterCatalog("catalog", *changes)</TabItem></Tabs>-Currently, Gravitino supports the following changes to a catalog:+Gravitino supports the following changes to a catalog:| Supported modification | JSON | Java ||------------------------|--------------------------------------------------------------|-----------------------------------------------|@@ -239,7 +241,7 @@ Therefore, do not change the catalog's URI unless you fully understand the conse:::-### Enable a catalog+### Enable a CatalogCatalog has a reserved property - `in-use`, which indicates whether the catalog is available for use. By default, the `in-use` property is set to `true`.To enable a disabled catalog, you can send a `PATCH` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}` endpoint or use the Gravitino Java client.@@ -282,7 +284,7 @@ gravitino_client.enable_catalog("catalog")This operation does nothing if the catalog is already enabled.:::-### Disable a catalog+### Disable a CatalogOnce a catalog is disabled:- Users can only [list](#list-all-catalogs-in-a-metalake), [load](#load-a-catalog), [drop](#drop-a-catalog), or [enable](#enable-a-catalog) it.@@ -328,9 +330,9 @@ gravitino_client.disable_catalog("catalog")This operation does nothing if the catalog is already disabled.:::-### Drop a catalog+### Drop a Catalog-Deleting a catalog by "force" is not a default behavior, so please make sure:+Deleting a catalog by "force" is not a default behavior, so make sure:- There are no schemas under the catalog. Otherwise, you will get an error.- The catalog is [disabled](#disable-a-catalog). Otherwise, you will get an error.@@ -341,7 +343,7 @@ Deleting a catalog by "force" will:- Delete the catalog itself even if it is enabled.- Not delete the external resources (such as database, table, etc.) associated with sub-entities unless they are managed (such as managed fileset).-You can remove a catalog by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}` endpoint or just use the Gravitino Java client. The following is an example of dropping a catalog:+Remove a catalog by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}` endpoint or use the Gravitino Java client. The following is an example of dropping a catalog:<Tabs groupId="language" queryString><TabItem value="shell" label="Shell">@@ -378,9 +380,9 @@ gravitino_client.drop_catalog(name="catalog", force=False)</TabItem></Tabs>-### List all catalogs in a metalake+### List All Catalogs in a Metalake-You can list all catalogs under a metalake by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs` endpoint or just use the Gravitino Java client. The following is an example of listing all the catalogs in+List all catalogs under a metalake by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs` endpoint or use the Gravitino Java client. The following is an example of listing all the catalogs ina metalake:<Tabs groupId="language" queryString>@@ -415,9 +417,9 @@ catalog_names = gravitino_client.list_catalogs()</TabItem></Tabs>-### List all catalogs' information in a metalake+### List All Catalog Information in a Metalake-You can list all catalogs' information under a metalake by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs?details=true` endpoint or just use the Gravitino Java client. The following is an example of listing all the catalogs' information in a metalake:+List all catalogs' information under a metalake by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs?details=true` endpoint or use the Gravitino Java client. The following is an example of listing all the catalogs' information in a metalake:<Tabs groupId="language" queryString><TabItem value="shell" label="Shell">@@ -452,15 +454,15 @@ catalogs_info = gravitino_client.list_catalogs_info()</Tabs>-## Schema operations+## Schema Operations:::tipUsers should create a metalake and a catalog, then ensure that the metalake and catalog are enabled before operating schemas.:::-### Create a schema+### Create a Schema-You can create a schema by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas` endpoint or just use the Gravitino Java client. The following is an example of creating a schema:+Create a schema by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas` endpoint or use the Gravitino Java client. The following is an example of creating a schema:<Tabs groupId="language" queryString><TabItem value="shell" label="Shell">@@ -508,7 +510,7 @@ catalog.as_schemas().create_schema(name="schema",</TabItem></Tabs>-Currently, Gravitino supports the following schema property:+Gravitino supports the following schema property:| Catalog provider | Schema property ||---------------------|---------------------------------------------------------------------------------------|@@ -526,9 +528,9 @@ Currently, Gravitino supports the following schema property:| `jdbc-hologres` | [Hologres schema property](./jdbc-hologres-catalog.md#schema-properties) || `lakehouse-generic` | [Lakehouse generic schema property](./lakehouse-generic-catalog.md#schema-properties) |-### Load a schema+### Load a Schema-You can create a schema by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}` endpoint or just use the Gravitino Java client. The following is an example of loading a schema:+Create a schema by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}` endpoint or use the Gravitino Java client. The following is an example of loading a schema:<Tabs groupId="language" queryString><TabItem value="shell" label="Shell">@@ -563,9 +565,9 @@ schema: Schema = catalog.as_schemas().load_schema(name="schema")</TabItem></Tabs>-### Alter a schema+### Alter a Schema-You can change a schema by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}` endpoint or just use the Gravitino Java client. The following is an example of modifying a schema:+Change a schema by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}` endpoint or use the Gravitino Java client. The following is an example of modifying a schema:<Tabs groupId="language" queryString><TabItem value="shell" label="Shell">@@ -620,15 +622,16 @@ schema_new: Schema = catalog.as_schemas().alter_schema("schema",</TabItem></Tabs>-Currently, Gravitino supports the following changes to a schema:+Gravitino supports the following changes to a schema:| Supported modification | JSON | Java ||------------------------|--------------------------------------------------------------|-----------------------------------------------|| Set a property | `{"@type":"setProperty","property":"key1","value":"value1"}` | `SchemaChange.setProperty("key1", "value1")` || Remove a property | `{"@type":"removeProperty","property":"key1"}` | `SchemaChange.removeProperty("key1")` |-### Drop a schema-You can remove a schema by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}` endpoint or just use the Gravitino Java client. The following is an example of dropping a schema:+### Drop a Schema++Remove a schema by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}` endpoint or use the Gravitino Java client. The following is an example of dropping a schema:<Tabs groupId="language" queryString><TabItem value="shell" label="Shell">@@ -667,11 +670,11 @@ catalog.as_schemas().drop_schema("schema", cascade=True)</Tabs>If `cascade` is true, Gravitino will drop all tables under the schema. Otherwise, Gravitino will throw an exception if there are tables under the schema.-Some catalogs may not support cascading deletion of a schema, please refer to the related doc for more details.+Some catalogs may not support cascading deletion of a schema, refer to the related doc for more details.-### List all schemas under a catalog+### List All Schemas Under a Catalog-You can list all schemas under a catalog by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas` endpoint or just use the Gravitino Java client. The following is an example of listing all the schemas+List all schemas under a catalog by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas` endpoint or use the Gravitino Java client. The following is an example of listing all the schemasin a catalog:@@ -708,15 +711,15 @@ schema_list: List[NameIdentifier] = catalog.as_schemas().list_schemas()</TabItem></Tabs>-## Table operations+## Table Operations:::tipUsers should create a metalake, a catalog and a schema, then ensure that the metalake and catalog are enabled before before operating tables.:::-### Create a table+### Create a Table-You can create a table by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables` endpoint or just use the Gravitino Java client. The following is an example of creating a table:+Create a table by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables` endpoint or use the Gravitino Java client. The following is an example of creating a table:<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -854,7 +857,7 @@ TableCatalog tableCatalog = catalog.asTableCatalog();// table properties of other catalogs.Map<String, String> tablePropertiesMap = ImmutableMap.<String, String>builder().put("format", "ORC")- // For more table properties, please refer to the related doc.+ // For more table properties, refer to the related doc..build();tableCatalog.createTable(@@ -886,14 +889,14 @@ tableCatalog.createTable(The provided example demonstrates table creation but isn't directly executable in Gravitino, since not all catalogs fully support these capabilities.:::-In order to create a table, you need to provide the following information:+To create a table, you need to provide the following information:- Table column name and type- Table column default value (optional)- Table column auto-increment (optional)- Table property (optional)-#### Apache Gravitino table column type+#### Table Column TypeThe following types that Gravitino supports:@@ -939,7 +942,7 @@ represented by ExternalType.The following shows the data structure of an external type in JSON and Java, enabling easy retrieval of its string value.<Tabs groupId='language' queryString>- <TabItem value="Json" label="Json">+ <TabItem value="Json" label="JSON">```json{@@ -967,7 +970,7 @@ that the client does not recognize, it will be treated as an unparsed type on thThe following shows the data structure of an unparsed type in JSON and Java, enabling easy retrieval of its value.<Tabs groupId='language' queryString>- <TabItem value="Json" label="Json">+ <TabItem value="Json" label="JSON">```json{@@ -987,7 +990,7 @@ String unparsedValue = ((UnparsedType) type).unparsedType();</TabItem></Tabs>-#### Table column default value+#### Table Column Default ValueWhen defining a table column, you can specify a [literal](./expression.md#literal) or an [expression](./expression.md) as the default value. The default value typically applies to new rows that are inserted into the table by the underlying catalog.@@ -1009,7 +1012,7 @@ The following is a table of the column default value that Gravitino supports for| `jdbc-hologres` | ✔ || `lakehouse-generic` | ✘ |-#### Table column auto-increment+#### Table Column Auto-incrementAuto-increment provides a convenient way to ensure that each row in a table has a unique identifier without the need for manually managing identifier allocation.The following table shows the column auto-increment that Gravitino supports for different catalogs:@@ -1030,7 +1033,7 @@ The following table shows the column auto-increment that Gravitino supports for| `jdbc-hologres` | ✘ || `lakehouse-generic` | ✘ |-#### Table property and type mapping+#### Table Property and Type MappingThe following is the table property that Gravitino supports:@@ -1048,9 +1051,9 @@ The following is the table property that Gravitino supports:| `jdbc-starrocks` | [StarRocks table property](./jdbc-starrocks-catalog.md#table-properties) | [StarRocks type mapping](./jdbc-starrocks-catalog.md#table-column-types) || `jdbc-clickhouse` | [ClickHouse table property](./jdbc-clickhouse-catalog.md#table-properties) | [ClickHouse type mapping](./jdbc-clickhouse-catalog.md#table-column-types) || `jdbc-hologres` | [Hologres table property](./jdbc-hologres-catalog.md#table-properties) | [Hologres type mapping](./jdbc-hologres-catalog.md#table-column-types) |-| `lakehouse-generic` | Lakehouse generic table property depends on specific table implementation, for Lance table, please refer to [doc](./lakehouse-generic-lance-table.md#table-properties), other table format, please refer to related docs. | Lakehouse generic type mapping. Similar to table properties, for Lance table, please refer to [docs](./lakehouse-generic-lance-table.md#data-type-mappings) |+| `lakehouse-generic` | Lakehouse generic table property depends on specific table implementation, for Lance table, refer to [doc](./lakehouse-generic-lance-table.md#table-properties), other table format, refer to related docs. | Lakehouse generic type mapping. Similar to table properties, for Lance table, refer to [docs](./lakehouse-generic-lance-table.md#data-type-mappings) |-#### Table partitioning, distribution, sort ordering and indexes+#### Table Partitioning, Distribution, Sort Ordering and IndexesIn addition to the basic settings, Gravitino supports the following features:@@ -1061,15 +1064,15 @@ In addition to the basic settings, Gravitino supports the following features:| Table sort ordering | Equal to `SORTED BY` in Apache Hive, sort ordering is a method to sort the data in specific ways such as by a column or a function, and then store table data. it will highly improve the query performance under certain scenarios. | [SortOrder](pathname:///docs/1.4.0-SNAPSHOT/api/java/org/apache/gravitino/rel/expressions/sorts/SortOrder.html) || Table indexes | Equal to `KEY/INDEX` in MySQL , unique key enforces uniqueness of values in one or more columns within a table. It ensures that no two rows have identical values in specified columns, thereby facilitating data integrity and enabling efficient data retrieval and manipulation operations. | [Index](pathname:///docs/1.4.0-SNAPSHOT/api/java/org/apache/gravitino/rel/indexes/Index.html) |-For more information, please see the related document on [partitioning, bucketing, sorting, and indexes](table-partitioning-bucketing-sort-order-indexes.md).+For more information, see the related document on [partitioning, bucketing, sorting, and indexes](table-partitioning-distribution-sort-order-indexes.md).:::note-The code above is an example of creating a Hive table. For other catalogs, the code is similar, but the supported column type, and table properties may be different. For more details, please refer to the related doc.+The code above is an example of creating a Hive table. For other catalogs, the code is similar, but the supported column type, and table properties may be different. For more details, refer to the related doc.:::-### Load a table+### Load a Table-You can load a table by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{table_name}` endpoint or just use the Gravitino Java client. The following is an example of loading a table:+Load a table by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{table_name}` endpoint or use the Gravitino Java client. The following is an example of loading a table:<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -1101,9 +1104,9 @@ tableCatalog.loadTable(NameIdentifier.of("schema", "table"));- When Gravitino loads a table from a catalog that supports default value, if Gravitino is unable to parse the default value, it will use an **[Unparsed Expression](./expression.md#unparsed-expression)** to preserve the original default value, ensuring that the table can be loaded successfully.:::-### Alter a table+### Alter a Table-You can modify a table by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{table_name}` endpoint or just use the Gravitino Java client. The following is an example of modifying a table:+Modify a table by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{table_name}` endpoint or use the Gravitino Java client. The following is an example of modifying a table:<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -1142,7 +1145,7 @@ Table t = tableCatalog.alterTable(NameIdentifier.of("schema", "table"),</TabItem></Tabs>-Currently, Gravitino supports the following changes to a table:+Gravitino supports the following changes to a table:| Supported modification | JSON | Java ||--------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|@@ -1159,9 +1162,9 @@ Currently, Gravitino supports the following changes to a table:| Update the position of a column | `{"@type":"updateColumnPosition","fieldName": ["name"], "newPosition":"default"}` | `TableChange.updateColumnPosition(...)` || Update the default value of a column | `{"@type":"updateColumnDefaultValue","fieldName": ["name"], "newDefaultValue":{"type":"literal","dataType":"varchar(100)","value":"new default value}}` | `TableChange.updateColumnDefaultValue(...)` |-### Drop a table+### Drop a Table-You can remove a table by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{table_name}` endpoint or just use the Gravitino Java client. The following is an example of dropping a table:+Remove a table by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{table_name}` endpoint or use the Gravitino Java client. The following is an example of dropping a table:<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -1202,9 +1205,9 @@ There are two ways to remove a table: `dropTable` and `purgeTable`:Hive catalog and lakehouse-iceberg catalog supports `purgeTable` while jdbc-mysql, jdbc-postgresql and lakehouse-paimon catalog doesn't support.-### List all tables under a schema+### List All Tables Under a Schema-You can list all tables in a schema by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables` endpoint or just use the Gravitino Java client. The following is an example of listing all the tables in a schema:+List all tables in a schema by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables` endpoint or use the Gravitino Java client. The following is an example of listing all the tables in a schema:<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -1232,7 +1235,7 @@ NameIdentifier[] identifiers =</TabItem></Tabs>-## View operations+## View OperationsView metadata is documented separately in [Manage view metadata using Gravitino](./manage-view-metadata-using-gravitino.md),including create, load, alter, drop, and list examples for the REST API and Java client.diff --git a/docs/manage-statistics-in-gravitino.md b/docs/manage-statistics-in-gravitino.mdindex 4541fe73d7..079044340f 100644--- a/docs/manage-statistics-in-gravitino.md+++ b/docs/manage-statistics-in-gravitino.md@@ -1,9 +1,9 @@----title: "Manage statistics in Gravitino"-slug: /manage-statistics-in-gravitino+title: "Manage Statistics"+slug: "/manage-statistics-in-gravitino"date: 2025-08-21-keyword: statistics management, statistics, statistic, Gravitino-license: This software is licensed under the Apache License version 2.+keyword: "statistics management, statistics, statistic, Gravitino"+license: "This software is licensed under the Apache License version 2."---import Tabs from '@theme/Tabs';@@ -14,7 +14,7 @@ import TabItem from '@theme/TabItem';Starting from 1.0.0, Gravitino introduces statistics of tables and partitions.This document provides a brief introduction using both Gravitino Java client and-REST APIs. If you want to know more about the statistics system in Gravitino, please refer to the+REST APIs. If you want to know more about the statistics system in Gravitino, refer to theJavadoc and REST API documentation.Statistics only support the custom statistics, which names must start with `custom-`.@@ -23,22 +23,22 @@ Gravitino will support built-in statistics in the future.The query engine uses statistics for cost-based optimization (CBO). Meanwhile, statistics can alsobe used for metadata action systems to trigger some jobs, such as compaction, data archiving, etc.-You can create statistics. And then you can create policies based on statistics. Users can analyze the statistics+Create statistics. And then you can create policies based on statistics. Users can analyze the statisticsand policies to decide the next action. For example,you can create a statistic named `custom-tableLastModifiedTime` to record the last modified time of a table.Then you can create a policy to check if the table hasn't been modified for a long time, and archive the table data tocold storage.-Currently, Gravitino doesn't handle the computation of the statistics, you need to compute the statistics+Gravitino doesn't handle the computation of the statistics, you need to compute the statisticsand update them to Gravitino. Gravitino can't judge the expiration of the statistics,-You need to ensure the statistics are up-to-date.+Ensure the statistics are up-to-date.-## Metadata object statistic operations+## Metadata Object Statistic Operations-### Update statistics of metadata objects+### Update Statistics of Metadata Objects-You can update the statistics of a metadata object by providing the statistics key and value.+Update the statistics of a metadata object by providing the statistics key and value.Now only table statistics can be updated.The request path for REST API is `/api/metalakes/{metalake}/objects/{metadataObjectType}/{metadataObjectName}/statistics`.@@ -69,9 +69,9 @@ table.updateStatistics(updateStatistics);</TabItem></Tabs>-### List statistics of metadata objects+### List Statistics of Metadata Objects-You can list all the statistics of a metadata object.+List all the statistics of a metadata object.Now only table statistics can be listed.The request path for REST API is `/api/metalakes/{metalake}/objects/{metadataObjectType}/{metadataObjectName}/statistics`.@@ -96,9 +96,9 @@ table.listStatistics();</TabItem></Tabs>-### Drop statistics of metadata objects+### Drop Statistics of Metadata Objects-You can drop the statistics of a metadata object by providing the statistics keys.+Drop the statistics of a metadata object by providing the statistics keys.Now only table statistics can be dropped.The request path for REST API is `/api/metalakes/{metalake}/objects/{metadataObjectType}/{metadataObjectName}/statistics`.@@ -125,11 +125,11 @@ table.dropStatistics(statisticsToDrop);</TabItem></Tabs>-### Partition statistics operations+### Partition Statistics Operations-### Update statistics of partitions+### Update Statistics of Partitions-You can update the statistics of a partition by providing the statistics key and value. If the statistics+Update the statistics of a partition by providing the statistics key and value. If the statisticsalready exist, it will be updated; otherwise, a new statistic will be created.The request path for REST API is `/api/metalakes/{metalake}/objects/table/{metadataObjectName}/statistics/partitions`.@@ -166,10 +166,10 @@ table.updatePartitionStatistics(statisticsToUpdate);</Tabs>-### List statistics of partitions+### List Statistics of Partitions-You can list the statistics of specified partitions.-You can specify a range of partitions by providing the `from` and `to` parameters,+List the statistics of specified partitions.+Specify a range of partitions by providing the `from` and `to` parameters,and whether the range is inclusive using `fromInclusive` and `toInclusive` parameters.The request path for REST API is `/api/metalakes/{metalake}/objects/table/{metadataObjectName}/statistics/partitions`.@@ -196,9 +196,9 @@ table.listPartitionStatistics(range);</Tabs>-### Drop statistics of partitions+### Drop Statistics of Partitions-You can drop the statistics of specified partitions by providing the statistics keys.+Drop the statistics of specified partitions by providing the statistics keys.The request path for REST API is `/api/metalakes/{metalake}/objects/table/{metadataObjectName}/statistics/partitions`.@@ -232,7 +232,7 @@ table.dropPartitionStatistics(statisticsToDrop);</Tabs>-### Server configuration+### Server Configuration| Configuration item | Description | Default value | Required | Since version ||-------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|-----------|---------------|@@ -328,9 +328,9 @@ gravitino.stats.partition.storageFactoryClass = org.apache.gravitino.stats.storagravitino.stats.partition.storageOption.location = /data/lance```-### Implement a custom partition storage+### Implement a Custom Partition Storage-You can implement a custom partition storage by implementing the interface `org.apache.gravitino.stats.storage.PartitionStatisticStorageFactory` and+Implement a custom partition storage by implementing the interface `org.apache.gravitino.stats.storage.PartitionStatisticStorageFactory` andsetting the configuration item `gravitino.stats.partition.storageFactoryClass` to your class name.For example:diff --git a/docs/manage-table-partition-using-gravitino.md b/docs/manage-table-partition-using-gravitino.mdindex 21bcfa6bbf..4f2fa30aee 100644--- a/docs/manage-table-partition-using-gravitino.md+++ b/docs/manage-table-partition-using-gravitino.md@@ -1,9 +1,9 @@----title: "Manage table partition using Apache Gravitino"-slug: /manage-table-partition-using-gravitino+title: "Manage Table Partitions"+slug: "/manage-table-partition-using-gravitino"date: 2024-02-03-keyword: table partition management-license: This software is licensed under the Apache License version 2.+keyword: "table partition management"+license: "This software is licensed under the Apache License version 2."---import Tabs from '@theme/Tabs';@@ -13,13 +13,13 @@ import TabItem from '@theme/TabItem';Although many catalogs inherently manage partitions automatically, there are scenarios where manual partition management is necessary. Usage scenarios like managing the TTL (Time-To-Live) of partition data, gathering statistics on partition metadata, and optimizing queries through partition pruning. For these reasons, Apache Gravitino provides capabilities of partition management.-### Requirements and limitations+### Requirements and Limitations-- Partition management is based on the partitioned table, so please ensure that you are operating on a partitioned table.+- Partition management is based on the partitioned table, so ensure you are operating on a partitioned table.The following table shows the partition operations supported across various catalogs in Gravitino:-| Operation | Hive catalog | Iceberg catalog | Jdbc-Mysql catalog | Jdbc-PostgreSQL catalog | Jdbc-Doris catalog |+| Operation | Hive catalog | Iceberg catalog | Jdbc-MySQL catalog | Jdbc-PostgreSQL catalog | Jdbc-Doris catalog ||-----------------------|--------------|-----------------|--------------------|-------------------------|--------------------|| Add Partition | ✔ | ✘ | ✘ | ✘ | ✔ || Get Partition by Name | ✔ | ✘ | ✘ | ✘ | ✔ |@@ -28,20 +28,20 @@ The following table shows the partition operations supported across various cata| Drop Partition | ✔ | ✘ | ✘ | ✘ | ✔ |:::tip[WELCOME FEEDBACK]-If you need additional partition management support for a specific catalog, please feel free to [create an issue](https://github.com/apache/gravitino/issues/new/choose) on the [Gravitino repository](https://github.com/apache/gravitino).+If you need additional partition management support for a specific catalog, [create an issue](https://github.com/apache/gravitino/issues/new/choose) on the [Gravitino repository](https://github.com/apache/gravitino).:::-## Partition operations+## Partition Operations-### Add partition+### Add Partition-You must match the partition types you want to add with the table's [partitioning](./table-partitioning-bucketing-sort-order-indexes.md#table-partitioning) types; Gravitino currently supports adding the following partition types:+Match the partition types you want to add with the table's [partitioning](./table-partitioning-distribution-sort-order-indexes.md#table-partitioning) types; Gravitino supports adding the following partition types:| Partition Type | Description ||----------------|------------------------------------------------------------------------------------------------------------------------------------------------|-| identity | An identity partition represents a result of identity [partitioning](./table-partitioning-bucketing-sort-order-indexes.md#table-partitioning). |-| range | A range partition represents a result of range [partitioning](./table-partitioning-bucketing-sort-order-indexes.md#table-partitioning). |-| list | A list partition represents a result of list [partitioning](./table-partitioning-bucketing-sort-order-indexes.md#table-partitioning). |+| identity | An identity partition represents a result of identity [partitioning](./table-partitioning-distribution-sort-order-indexes.md#table-partitioning). |+| range | A range partition represents a result of range [partitioning](./table-partitioning-distribution-sort-order-indexes.md#table-partitioning). |+| list | A list partition represents a result of list [partitioning](./table-partitioning-distribution-sort-order-indexes.md#table-partitioning). |For JSON examples:@@ -138,7 +138,7 @@ When adding an identity partition to a partitioned Hive table, the specified par```:::note-Each list in the lists must have the same length. The values in each list must correspond to the field definitions in the list [partitioning](./table-partitioning-bucketing-sort-order-indexes.md#table-partitioning).+Each list in the lists must have the same length. The values in each list must correspond to the field definitions in the list [partitioning](./table-partitioning-distribution-sort-order-indexes.md#table-partitioning).:::</TabItem>@@ -200,13 +200,13 @@ Partition partition =```:::note-Each list in the lists must have the same length. The values in each list must correspond to the field definitions in the list [partitioning](./table-partitioning-bucketing-sort-order-indexes.md#table-partitioning).+Each list in the lists must have the same length. The values in each list must correspond to the field definitions in the list [partitioning](./table-partitioning-distribution-sort-order-indexes.md#table-partitioning).:::</TabItem></Tabs>-You can add a partition to a partitioned table by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions` endpoint or by using the Gravitino Java client.+Add a partition to a partitioned table by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions` endpoint or by using the Gravitino Java client.The following is an example of adding an identity partition to a Hive partitioned table:<Tabs groupId='language' queryString>@@ -270,9 +270,9 @@ Partition addedPartition =</TabItem></Tabs>-### Get a partition by name+### Get a Partition by Name-You can get a partition by its name via sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions/{partition_name}` endpoint or by using the Gravitino Java client.+Get a partition by its name via sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions/{partition_name}` endpoint or by using the Gravitino Java client.The following is an example of getting a partition by its name:<Tabs groupId='language' queryString>@@ -310,9 +310,9 @@ Partition Partition =</TabItem></Tabs>-### List partition names under a partitioned table+### List Partition Names Under a Partitioned Table-You can list all partition names under a partitioned table by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions` endpoint or by using the Gravitino Java client.+List all partition names under a partitioned table by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions` endpoint or by using the Gravitino Java client.The following is an example of listing all the partition names under a partitioned table:<Tabs groupId='language' queryString>@@ -346,7 +346,7 @@ String[] partitionNames =</TabItem></Tabs>-### List partitions under a partitioned table+### List Partitions Under a Partitioned TableIf you want to get more detailed information about the partitions under a partitioned table, you can list all partitions under a partitioned table by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions` endpoint or by using the Gravitino Java client.The following is an example of listing all the partitions under a partitioned table:@@ -377,9 +377,9 @@ Partition[] partitions =</TabItem></Tabs>-### Drop a partition by name+### Drop a Partition by Name-You can drop a partition by its name via sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions/{partition_name}` endpoint or by using the Gravitino Java client.+Drop a partition by its name via sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions/{partition_name}` endpoint or by using the Gravitino Java client.The following is an example of dropping a partition by its name:<Tabs groupId='language' queryString>diff --git a/docs/manage-tags-in-gravitino.md b/docs/manage-tags-in-gravitino.mdindex b2272780c1..7c5aae7433 100644--- a/docs/manage-tags-in-gravitino.md+++ b/docs/manage-tags-in-gravitino.md@@ -1,9 +1,9 @@----title: "Manage tags in Gravitino"-slug: /manage-tags-in-gravitino+title: "Manage Tags"+slug: "/manage-tags-in-gravitino"date: 2024-07-24-keyword: tag management, tag, tags, Gravitino-license: This software is licensed under the Apache License version 2.+keyword: "tag management, tag, tags, Gravitino"+license: "This software is licensed under the Apache License version 2."---import Tabs from '@theme/Tabs';@@ -15,7 +15,7 @@ Starting from 0.6.0, Gravitino introduces a new tag system that allows you to mametadata objects. Tags are a way to categorize and organize metadata objects in Gravitino.This document briefly introduces how to use tags in Gravitino by both Gravitino Java client and-REST APIs. If you want to know more about the tag system in Gravitino, please refer to the+REST APIs. If you want to know more about the tag system in Gravitino, refer to theJavadoc and REST API documentation.Note that current tag system is a basic implementation, some advanced features will be added in@@ -28,7 +28,7 @@ the future versions."CATALOG", a `SCHEMA` object has a name "catalog1.schema1" with type "SCHEMA", a `TABLE`object has a name "catalog1.schema1.table1" with type "TABLE", a `COLUMN` object has a name"catalog1.schema1.table1.column1" with type "COLUMN".-2. Currently, `CATALOG`, `SCHEMA`, `TABLE`, `FILESET`, `TOPIC`, `MODEL`, and `COLUMN` objects can be tagged.+2`CATALOG`, `SCHEMA`, `TABLE`, `FILESET`, `TOPIC`, `MODEL`, and `COLUMN` objects can be tagged.3. Tags in Gravitino is inheritable, so listing tags of a metadata object will also list thetags of its parent metadata objects. For example, listing tags of a `Table` will also listthe tags of its parent `Schema` and `Catalog`.@@ -37,12 +37,12 @@ the future versions.list with `inherited` value `false`.:::-## Tag operations+## Tag Operations-### Create new tags+### Create New Tags-The first step to manage tags is to create new tags. You can create a new tag by providing a tag-name, optional comment and properties.+The first step to manage tags is to create new tags. Create a tag by providing a+name, optional comment, and properties.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -71,9 +71,9 @@ Tag tag =</TabItem></Tabs>-### List created tags+### List Tags-You can list all the created tag names as well as tag objects in a metalake in Gravitino.+List all the tag names as well as tag objects in a metalake in Gravitino.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -99,9 +99,9 @@ Tag[] tags = client.listTagsInfo();</TabItem></Tabs>-### Get a tag by name+### Get a Tag by Name-You can get a tag by its name.+Get a tag by its name.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -122,7 +122,7 @@ Tag tag = client.getTag("tag1");</TabItem></Tabs>-### Update a tag+### Update a TagGravitino allows you to update a tag by providing a new tag name, comment and properties.@@ -170,7 +170,7 @@ Tag tag = client.alterTag(</TabItem></Tabs>-Currently, Gravitino support the following tag changes:+Gravitino supports the following tag changes:| Supported modification | JSON | Java ||------------------------|--------------------------------------------------------------|-------------------------------------------|@@ -179,9 +179,9 @@ Currently, Gravitino support the following tag changes:| Set a tag property | `{"@type":"setProperty","property":"key1","value":"value1"}` | `TagChange.setProperty("key1", "value1")` || Remove a tag property | `{"@type":"removeProperty","property":"key1"}` | `TagChange.removeProperty("key1")` |-### Delete a tag+### Delete a Tag-You can delete a tag by its name.+Delete a tag by its name.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -202,14 +202,13 @@ client.deleteTag("tag2");</TabItem></Tabs>-## Tag associations+## Tag Associations-Gravitino allows you to associate and disassociate tags with metadata objects. Currently,-`CATALOG`, `SCHEMA`, `TABLE`, `FILESET`, `TOPIC`, `MODEL`, and `COLUMN` objects can be tagged.+Gravitino lets you associate and disassociate tags with metadata objects. The `CATALOG`, `SCHEMA`, `TABLE`, `FILESET`, `TOPIC`, `MODEL`, and `COLUMN` object types can be tagged.-### Associate and disassociate tags with a metadata object+### Associate and Disassociate Tags with a Metadata Object-You can associate and disassociate tags with a metadata object by providing the object type, object+Associate and disassociate tags with a metadata object by providing the object type, objectname and tag names.The request path for REST API is `/api/metalakes/{metalake}/objects/{metadataObjectType}/{metadataObjectName}/tags`.@@ -246,9 +245,9 @@ schema1.supportsTags().associateTags(new String[] {"tag1"}, null);</TabItem></Tabs>-### List associated tags for a metadata object+### List Associated Tags for a Metadata Object-You can list all the tags associated with a metadata object. The tags in Gravitino are+List all the tags associated with a metadata object. The tags in Gravitino areinheritable, so listing tags of a metadata object will also list the tags of its parent metadataobjects.@@ -287,9 +286,9 @@ Tag[] tagsInfo = schema1.supportsTags().listTagsInfo();</TabItem></Tabs>-### Get an associated tag by name for a metadata object+### Get an Associated Tag by Name for a Metadata Object-You can get an associated tag by its name for a metadata object.+Get an associated tag by its name for a metadata object.The request path for REST API is `/api/metalakes/{metalake}/objects/{metadataObjectType}/{metadataObjectName}/tags/{tagName}`.@@ -318,9 +317,9 @@ Tag tag = schema1.supportsTags().getTag("tag1");</TabItem></Tabs>-### List metadata objects associated with a tag+### List Metadata Objects Associated with a Tag-You can list all the metadata objects associated with a tag.+List all the metadata objects associated with a tag.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">diff --git a/docs/manage-user-defined-function-using-gravitino.md b/docs/manage-user-defined-function-using-gravitino.mdindex 2316e7d8b4..f371165b2b 100644--- a/docs/manage-user-defined-function-using-gravitino.md+++ b/docs/manage-user-defined-function-using-gravitino.md@@ -1,13 +1,15 @@----title: Manage user-defined functions using Gravitino-slug: /manage-user-defined-function-using-gravitino-keyword: Gravitino user-defined function UDF manage-license: This software is licensed under the Apache License version 2.+title: "Manage User-Defined Functions"+slug: "/manage-user-defined-function-using-gravitino"+keyword: "Gravitino user-defined function UDF manage"+license: "This software is licensed under the Apache License version 2."---import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+## Introduction+This page introduces how to manage user-defined functions (UDFs) in Apache Gravitino. Gravitinoprovides a centralized function registry that allows you to define custom functions once andshare them across multiple compute engines like Spark and Trino.@@ -33,19 +35,19 @@ same definition. To replace an existing implementation, use `updateImpl` instead| Java | `className` | Fully qualified Java class name. || Python | `handler`, `codeBlock` | Python handler entry point and optional inline code. |-To use function management, please make sure that:+To use function management, make sure that:- The Gravitino server has started and is serving at, e.g. [http://localhost:8090](http://localhost:8090).- A metalake has been created.- A catalog has been created within the metalake.- A schema has been created within the catalog.-## Function operations+## Function Operations-### Register a function+### Register a Function-You can register a function by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/functions`-endpoint or just use the Gravitino Java/Python client. The following is an example of registering+Register a function by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/functions`+endpoint or use the Gravitino Java/Python client. The following is an example of registeringa scalar function:<Tabs groupId="language" queryString>@@ -256,9 +258,9 @@ function = function_catalog.register_function(</TabItem></Tabs>-### Get a function+### Get a Function-You can get a function by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/functions/{function_name}`+Get a function by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/functions/{function_name}`endpoint or by using the Gravitino Java/Python client. The following is an example of gettinga function:@@ -298,9 +300,9 @@ function = catalog.as_function_catalog().get_function(</TabItem></Tabs>-### List functions+### List Functions-You can list all the functions in a schema by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/functions`+List all the functions in a schema by sending a `GET` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/functions`endpoint or by using the Gravitino Java/Python client. The following is an example of listingall the functions in a schema:@@ -340,7 +342,7 @@ functions = catalog.as_function_catalog().list_functions(</TabItem></Tabs>-You can also list functions with detailed information by adding the `details` query parameter.+List functions with detailed information by adding the `details` query parameter.This returns the full function objects instead of just the identifiers.<Tabs groupId="language" queryString>@@ -379,9 +381,9 @@ functions = catalog.as_function_catalog().list_function_infos(</TabItem></Tabs>-### Alter a function+### Alter a Function-You can modify a function by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/functions/{function_name}`+Modify a function by sending a `PUT` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/functions/{function_name}`endpoint or using the Gravitino Java/Python client. The following is an example of updating afunction's comment:@@ -430,7 +432,7 @@ function = catalog.as_function_catalog().alter_function(</TabItem></Tabs>-#### Supported modifications+#### Supported ModificationsThe following operations are supported for altering a function:@@ -519,9 +521,9 @@ function = catalog.as_function_catalog().alter_function(</TabItem></Tabs>-### Drop a function+### Drop a Function-You can drop a function by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/functions/{function_name}`+Drop a function by sending a `DELETE` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/functions/{function_name}`endpoint or by using the Gravitino Java/Python client. The following is an example of droppinga function:@@ -559,9 +561,9 @@ dropped: bool = catalog.as_function_catalog().drop_function(</TabItem></Tabs>-## Advanced examples+## Advanced Examples-### Register a function with multiple overloads+### Register a Function with Multiple OverloadsA function can have multiple definitions (overloads) with different parameter lists. Eachdefinition has its own return type and implementations.@@ -688,7 +690,7 @@ function = function_catalog.register_function(</TabItem></Tabs>-## Using functions in compute engines+## Functions in Compute EnginesOnce a function is registered in Gravitino, it can be used in supported compute engines.The engine's connector loads the function from Gravitino and invokes the appropriatediff --git a/docs/manage-view-metadata-using-gravitino.md b/docs/manage-view-metadata-using-gravitino.mdindex 5df3a635c4..034334e982 100644--- a/docs/manage-view-metadata-using-gravitino.md+++ b/docs/manage-view-metadata-using-gravitino.md@@ -1,14 +1,16 @@----title: "Manage view metadata using Apache Gravitino"-slug: /manage-view-metadata-using-gravitino+title: "Manage View Metadata"+slug: "/manage-view-metadata-using-gravitino"date: 2026-5-17-keyword: Gravitino view metadata manage-license: This software is licensed under the Apache License version 2.+keyword: "Gravitino view metadata manage"+license: "This software is licensed under the Apache License version 2."---import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+## Introduction+This page introduces how to manage view metadata by Apache Gravitino. A view stores a logicalquery definition rather than physical data. Through Gravitino, you can create, load, alter,drop, and list views in supported catalogs via unified REST APIs or the Java client.@@ -24,25 +26,25 @@ support, see:Unlike tables, views define query output and one or more representations, but do not managepartitions, sort orders, indexes, or physical storage locations. The representation model is-extensible, but currently only SQL representations are supported.+extensible, but only SQL representations are supported.-To use view management, please make sure that:+To use view management, make sure that:- Gravitino server has started, and the host and port are [http://localhost:8090](http://localhost:8090).- A metalake has been created and [enabled](./manage-metalake-using-gravitino.md#enable-a-metalake).- A relational catalog has been created within the metalake.- A schema has been created within the catalog.-## View operations+## View Operations:::tipUsers should create a metalake, a catalog, and a schema, and ensure that the metalake andcatalog are enabled before operating views.:::-### Create a view+### Create a View-You can create a view by sending a `POST` request to the+Create a view by sending a `POST` request to the`/api/metalakes/{metalake}/catalogs/{catalog}/schemas/{schema}/views` endpoint or just use theGravitino Java client. The following is an example of creating a view:@@ -122,13 +124,13 @@ representations for the same logical view. Supported dialects, representation codefault-resolution fields depend on the catalog provider.:::-#### Create request fields+#### Create Request FieldsUse the following fields when creating a view:- `columns`: Defines the output schema of the view.- `representations`: Provides one or more SQL definitions. The API uses the extensible- `Representation` model, but currently only the `sql` type is supported, which maps to+ `Representation` model, but only the `sql` type is supported, which maps to`SQLRepresentation` in Java.- `defaultCatalog` and `defaultSchema`: Optionally define how unqualified identifiers in the SQLtext are resolved for dialects that use them. For the `hive` dialect in Hive catalogs, both@@ -136,11 +138,11 @@ Use the following fields when creating a view:- `properties`: Carries provider-specific metadata.Column types use the same Gravitino type system as table columns. For the full type list and the-behavior of special types such as external and unparsed types, refer to [Apache Gravitino table column type](./manage-relational-metadata-using-gravitino.md#apache-gravitino-table-column-type).+behavior of special types such as external and unparsed types, refer to [Apache Gravitino table column type](./manage-relational-metadata-using-gravitino.md#table-column-type).-### Load a view+### Load a View-You can load a view by sending a `GET` request to the+Load a view by sending a `GET` request to the`/api/metalakes/{metalake}/catalogs/{catalog}/schemas/{schema}/views/{view}` endpoint or just usethe Gravitino Java client. The following is an example of loading a view:@@ -174,9 +176,9 @@ stored representations, default catalog, default schema, comment, and propertiesdirectly without a separate import step.:::-### Alter a view+### Alter a View-You can modify a view by sending a `PUT` request to the+Modify a view by sending a `PUT` request to the`/api/metalakes/{metalake}/catalogs/{catalog}/schemas/{schema}/views/{view}` endpoint or just usethe Gravitino Java client. The following is an example of modifying a view:@@ -213,7 +215,7 @@ View view = viewCatalog.alterView(</TabItem></Tabs>-Currently, Gravitino supports the following changes to a view:+Gravitino supports the following changes to a view:| Supported modification | REST / JSON | Java ||--------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|@@ -226,9 +228,9 @@ Currently, Gravitino supports the following changes to a view:change one part of the body, load the current view first and pass the unchanged fields back in thereplacement request.-### Drop a view+### Drop a View-You can remove a view by sending a `DELETE` request to the+Remove a view by sending a `DELETE` request to the`/api/metalakes/{metalake}/catalogs/{catalog}/schemas/{schema}/views/{view}` endpoint or just usethe Gravitino Java client. The following is an example of dropping a view:@@ -258,9 +260,9 @@ viewCatalog.dropView(NameIdentifier.of("schema", "example_view"));Dropping a view removes the view metadata definition only. It does not remove underlying tabledata because a view does not own storage.-### List all views under a schema+### List All Views Under a Schema-You can list all views in a schema by sending a `GET` request to the+List all views in a schema by sending a `GET` request to the`/api/metalakes/{metalake}/catalogs/{catalog}/schemas/{schema}/views` endpoint or just use theGravitino Java client. The following is an example of listing all the views in a schema:diff --git a/docs/metrics.md b/docs/metrics.mdindex e982c9cb6d..9102191999 100644--- a/docs/metrics.md+++ b/docs/metrics.md@@ -1,6 +1,6 @@----title: Apache Gravitino metrics-slug: /metrics+title: "Metrics"+slug: "/metrics"keywords:- metricslicense: "This software is licensed under the Apache License version 2."@@ -8,7 +8,7 @@ license: "This software is licensed under the Apache License version 2."## Introduction-Apache Gravitino Metrics builds upon the [Dropwizard Metrics](https://metrics.dropwizard.io/). It exports these metrics through both JMX and an HTTP server, supporting JSON and Prometheus formats. You can retrieve them via HTTP requests, as illustrated below:+Apache Gravitino Metrics builds upon the [Dropwizard Metrics](https://metrics.dropwizard.io/). It exports these metrics through both JMX and an HTTP server, supporting JSON and Prometheus formats. Retrieve them via HTTP requests, as illustrated below:```shell// Use Gravitino Server address or Iceberg REST server address to replace 127.0.0.1:8090@@ -18,9 +18,9 @@ curl http://127.0.0.1:8090/metricscurl http://127.0.0.1:8090/prometheus/metrics```-### Metrics source+### Metrics Source-#### HTTP server metrics+#### HTTP Server MetricsHTTP server metrics encompass the histogram of HTTP request processing time and the number of HTTP response codes, categorized by different HTTP interfaces such as `create-table` and `load-table`.@@ -45,26 +45,26 @@ gravitino_server_http_request_duration_seconds{operation="create-table",quantileMetrics with the `gravitino-server` prefix pertain to the Gravitino server, while those with the `iceberg-rest-server` prefix are for the Gravitino Iceberg REST server.:::-#### JVM metrics+#### JVM MetricsJVM metrics source uses [JVM instrumentation](https://metrics.dropwizard.io/4.2.0/manual/jvm.html) with BufferPoolMetricSet, GarbageCollectorMetricSet, and MemoryUsageGaugeSet.These metrics start with the `jvm` prefix, like `jvm.heap.used` in JSON format, `jvm_heap_used` in Prometheus format.-#### Catalog metrics+#### Catalog MetricsCatalog metrics provide the metrics from different catalog instances.All the catalog metrics start with the `gravitino-catalog` prefix in Prometheus format and with labels `provider`, `metalake`, and `catalog` to distinguish different catalog instances.-Currently, Catalog metrics only support Fileset catalog and JDBC catalog.+Catalog metrics only support Fileset catalog and JDBC catalog.-You can get Prometheus metrics for a Fileset catalog named `test_catalog` under a metalake named `test_metalake` in the Gravitino server as follows:+Get Prometheus metrics for a Fileset catalog named `test_catalog` under a metalake named `test_metalake` in the Gravitino server as follows:```textgravitino_catalog_filesystem_cache_hits{provider="fileset",metalake="test_metalake",catalog="test_catalog",} 0.0gravitino_catalog_filesystem_cache_misses{provider="fileset",metalake="test_metalake",catalog="test_catalog",} 0.0```-You can get Prometheus metrics for a JDBC catalog named `test_catalog` under a metalake named `test_metalake` in the Gravitino server as follows:+Get Prometheus metrics for a JDBC catalog named `test_catalog` under a metalake named `test_metalake` in the Gravitino server as follows:```textgravitino_catalog_datasource_idle_connections{provider="jdbc",metalake="test_metalake",catalog="test_catalog",} 1.0diff --git a/docs/model-catalog.md b/docs/model-catalog.mdindex 3222fd5a92..42dc586a12 100644--- a/docs/model-catalog.md+++ b/docs/model-catalog.md@@ -1,8 +1,8 @@----title: "Model catalog"-slug: /model-catalog+title: "Model Catalog"+slug: "/model-catalog"date: 2024-12-26-keyword: model catalog+keyword: "model catalog"license: "This software is licensed under the Apache License version 2."---@@ -36,56 +36,56 @@ rather than just the storage path.## Catalog-### Catalog properties+### Catalog Properties-A Model catalog doesn't have specific properties. It uses the [common catalog properties](./gravitino-server-config.md#apache-gravitino-catalog-properties-configuration).+A Model catalog doesn't have specific properties. It uses the [common catalog properties](./gravitino-server-config.md#catalog-properties-configuration).-### Catalog operations+### Catalog OperationsRefer to [Catalog operations](./manage-model-metadata-using-gravitino.md#catalog-operations) for more details.## Schema-### Schema capabilities+### Schema CapabilitiesSchema is the second level of the model catalog namespace, the model catalog supports creating, updating, deleting, and listing schemas.-### Schema properties+### Schema PropertiesSchema in the model catalog doesn't have predefined properties. Users can define the properties for each schema.-### Schema operations+### Schema OperationsRefer to [Schema operation](./manage-model-metadata-using-gravitino.md#schema-operations) for more details.## Model-### Model capabilities+### Model CapabilitiesThe Model catalog supports registering, listing and deleting models and model versions.-### Model properties+### Model Properties| Property name | Description | Default value | Required | Immutable | Since Version ||--------------------|-----------------------------------------------------|---------------|----------|-----------|---------------|| `default-uri-name` | The default URI name for the versions of the model. | (none) | No | No | 1.0.0 |-### Model operations+### Model OperationsRefer to [Model operation](./manage-model-metadata-using-gravitino.md#model-operations) for more details.## ModelVersion-### ModelVersion capabilities+### ModelVersion CapabilitiesThe Model catalog supports linking, listing and deleting model versions.-### ModelVersion properties+### ModelVersion Properties| Property name | Description | Default value | Required | Immutable | Since Version ||--------------------|----------------------------------------------------------------------------------------------------------------------|---------------|----------|-----------|---------------|| `default-uri-name` | The default URI name for the model version. If set, it will override the `default-uri-name` property at model level. | (none) | No | No | 1.0.0 |-### ModelVersion operations+### ModelVersion OperationsRefer to [ModelVersion operation](./manage-model-metadata-using-gravitino.md#modelversion-operations) for more details.diff --git a/docs/overview.md b/docs/overview.mdindex 161ca15cc1..da1585c986 100644--- a/docs/overview.md+++ b/docs/overview.md@@ -1,6 +1,6 @@----title: Overview-slug: /overview+title: "Overview"+slug: "/overview"license: "This software is licensed under the Apache License version 2."---@@ -30,7 +30,7 @@ Gravitino aims to provide several key features:## Features-### Unified metadata management and governance+### Unified Metadata Management and GovernanceGravitino abstracts the unified metadata models and APIs for different kinds of metadata sources.For example, relational metadata models for tabular data, like Hive, MySQL, PostgreSQL, etc.@@ -40,23 +40,20 @@ Besides the unified metadata models, Gravitino also provides a unified metadatato manage the metadata in a unified way, including access control, auditing, discovery andothers.-### Direct metadata management+### Direct Metadata ManagementUnlike traditional metadata management systems, which need to collect the metadataactively or passively from underlying systems, Gravitino manages these systems directly.It provides a set of connectors to connect to different metadata sources.The changes in Gravitino directly reflect in the underlying systems, and vice versa.-### Geo-distribution support (WIP)+### Geo-Distribution Support-Gravitino supports geo-distribution deployment, which means different instances of Gravitino-can deploy in different regions or clouds, and they can connect to get-the metadata from each other. With this, users can get a global view of metadata across the-regions or clouds.+Gravitino supports geo-distributed deployment of Iceberg REST (IRC) catalogs. Different instances of Gravitino can run in different regions or clouds, with a local IRC catalog proxying requests to a remote IRC catalog so users get a global view of metadata across regions or clouds.-### Multi-engine support+### Multi-Engine Support-Gravitino supports different query engines to access the metadata. Currently, it supports+Gravitino supports different query engines to access the metadata. It supports[Trino](https://trino.io/), users can use Trino to query the metadata and data without needing tochange the existing SQL dialects.@@ -64,13 +61,13 @@ In addition, Gravitino has expanded its support to include [Apache Spark](https:[Apache Flink](https://flink.apache.org/), and [Daft](https://docs.daft.ai/), among other query engines. Further enhancements andadditions to the supported query engines are also on the roadmap.-### AI asset management+### AI Asset ManagementThe goal of Gravitino is to unify the data management in both data and AI assets, including raw files, models, etc.## Terminology-### The metadata object of Apache Gravitino+### The Metadata Object* **Metalake**: The container/tenant for metadata. Typically, one group has one metalaketo manage all the metadata in it. Each metalake exposes a three-level namespace (catalog.schema.diff --git a/docs/publish-docker-images.md b/docs/publish-docker-images.mdindex d4590205ce..a296ab0ecc 100644--- a/docs/publish-docker-images.md+++ b/docs/publish-docker-images.md@@ -1,7 +1,7 @@----title: "Publish Docker images"-slug: /publish-docker-images-keyword: docker+title: "Publish Docker Images"+slug: "/publish-docker-images"+keyword: "docker"license: "This software is licensed under the Apache License version 2."---@@ -11,9 +11,9 @@ license: "This software is licensed under the Apache License version 2."The Apache Gravitino project provides a set of Docker images to facilitate the publishing, development, and testing of the Gravitino project.[Apache Docker Hub](https://hub.docker.com/u/apache) repository publishes the official Gravitino Docker images.-## Publish Docker images to Docker Hub+## Publish Docker Images to Docker Hub-You can use GitHub actions to publish Docker images to the Docker Hub repository.+Use GitHub actions to publish Docker images to the Docker Hub repository.1. Open the [Docker publish link](https://github.com/apache/gravitino/actions/workflows/docker-image.yml)2. Click the `Run workflow` button.@@ -24,17 +24,17 @@ You can use GitHub actions to publish Docker images to the Docker Hub repository+ `apache/gravitino-ci:hive`.+ `apache/gravitino-ci:trino`.+ Future plans include support for other data sources.-5. Input the `tag name`, for example: `0.1.0`, Then build and push the Docker image name. Currently, the Docker image name is in the format:+5. Input the `tag name`, for example: `0.1.0`, Then build and push the Docker image name. The Docker image name is in the format:1. `apache/gravitino-ci:{image-type}-0.1.0` if this is a trino CI image, image-type is `trino`, `hive`, `kerberos-hive`, `doris`, `ranger`.2. `apache/gravitino-playground:{image-type}-0.1.0` if this is a playground image, image-type is `trino`, `hive`, `ranger`.3. `apache/gravitino:0.1.0` if this is a gravitino server image.4. `apache/gravitino-iceberg-rest:0.1.0` if this is an iceberg-rest server image.6. You must enter the correct `docker user name`and `publish docker token` before you can execute run `Publish Docker Image` workflow.7. If you want to update the latest tag, select the box for `Whether to update the latest tag`.-8. Wait for the workflow to complete. You can see a new Docker image shown in the [Apache Docker Hub](https://hub.docker.com/u/apache) repository.+8. Wait for the workflow to complete. A new Docker image appears in the [Apache Docker Hub](https://hub.docker.com/u/apache) repository.-## More details of Apache Gravitino Docker images+## More Details of Docker Images+ [Gravitino Docker images](docker-image-details.md)diff --git a/docs/security/access-control.md b/docs/security/access-control.mdindex 4bbb274e1e..e3bf34ef9c 100644--- a/docs/security/access-control.md+++ b/docs/security/access-control.md@@ -1,7 +1,7 @@---title: "Access Control"-slug: /security/access-control-keyword: security+slug: "/security/access-control"+keyword: "security"license: "This software is licensed under the Apache License version 2."---@@ -237,7 +237,7 @@ Service admins automatically become the owner of metalakes they create. However,### Custom Roles-You can create custom roles tailored to your business needs using the API or client libraries. Custom roles allow you to:+Create custom roles tailored to your business needs using the API or client libraries. Custom roles allow you to:- Define specific permission sets- Align access control with your organization's structure- Implement least-privilege access policies@@ -246,31 +246,31 @@ You can create custom roles tailored to your business needs using the API or cliGravitino provides a comprehensive set of privileges organized by the type of operation and securable object. The following sections detail all available privileges.-### User privileges+### User Privileges| Name | Supports Securable Object | Operation ||--------------|---------------------------|---------------------|| MANAGE_USERS | Metalake | Add or remove users |-### Group privileges+### Group Privileges| Name | Supports Securable Object | Operation ||---------------|---------------------------|----------------------|| MANAGE_GROUPS | Metalake | Add or remove groups |-### Role privileges+### Role Privileges| Name | Supports Securable Object | Operation ||-------------|---------------------------|---------------|| CREATE_ROLE | Metalake | Create a role |-### Permission privileges+### Permission Privileges| Name | Supports Securable Object | Operation ||---------------|---------------------------|---------------------------------------------------------------------------------------------------------------|| MANAGE_GRANTS | Metalake, Catalog, Schema, Table, View, Topic, Fileset, Model, Function | Grants the ability to manage privileges on securable objects. When bound to a **Metalake**, also allows assigning and revoking roles for users and groups across the entire metalake. When bound to a **Catalog, Schema, Table, View, Topic, Fileset, Model, or Function**, privilege management is scoped to that object and its descendants only. |-### Catalog privileges+### Catalog Privileges| Name | Supports Securable Object | Operation ||----------------|---------------------------|------------------|@@ -286,7 +286,7 @@ For example, to select data from a table, users need to have the `SELECT_TABLE`:::-### Schema privileges+### Schema Privileges| Name | Supports Securable Object | Operation ||---------------|---------------------------|-----------------|@@ -302,7 +302,7 @@ and `USE_SCHEMA` privileges on its parent schema.:::-### Table privileges+### Table Privileges| Name | Supports Securable Object | Operation ||--------------|-----------------------------------|---------------------------------------------------------------------------|@@ -313,14 +313,14 @@ and `USE_SCHEMA` privileges on its parent schema.DENY `MODIFY_TABLE` won't deny the `SELECT_TABLE` operation if the user has the privilege to `ALLOW SELECT_TABLE` on the table.DENY `SELECT_TABLE` won't deny the `MODIFY_TABLE` operation if the user has the privilege `ALLOW MODIFY_TABLE` on the table.-### View privileges+### View Privileges| Name | Supports Securable Object | Operation ||-------------|---------------------------------|--------------------------|| CREATE_VIEW | Metalake, Catalog, Schema | Create a view || SELECT_VIEW | Metalake, Catalog, Schema, View | Select data from a view |-### Topic privileges+### Topic Privileges| Name | Supports Securable Object | Operation ||---------------|----------------------------------|-------------------------------------------------------|@@ -331,7 +331,7 @@ DENY `SELECT_TABLE` won't deny the `MODIFY_TABLE` operation if the user has theDENY `PRODUCE_TOPIC` won't deny the `COMSUME_TOPIC` operation if the user has the privilege to `ALLOW CONSUME_TOPIC` on the topic.DENY `CONSUME_TOPIC` won‘t deny the `PRODUCE_TOPIC` operation if the user has the privilege `ALLOW PRODUCE_TOPIC` on the topic.-### Fileset privileges+### Fileset Privileges| Name | Supports Securable Object | Operation ||----------------|------------------------------------|------------------------------------------------------|@@ -342,7 +342,7 @@ DENY `CONSUME_TOPIC` won‘t deny the `PRODUCE_TOPIC` operation if the user hasDENY `READ_FILESET` won't deny the `WRITE_FILESET` operation if the user has the privilege to `ALLOW WRITE_FILESET` on the fileset.DENY `WRITE_FILESET` won‘t deny the `READ_FILESET` operation if the user has the privilege `ALLOW READ_FILESET` on the fileset.-### Model privileges+### Model Privileges:::caution Deprecated PrivilegesThe privileges `CREATE_MODEL` and `CREATE_MODEL_VERSION` are deprecated and will be removed in a future release. Please use `REGISTER_MODEL` and `LINK_MODEL_VERSION` instead. The deprecated privileges still work for backward compatibility.@@ -356,7 +356,7 @@ The privileges `CREATE_MODEL` and `CREATE_MODEL_VERSION` are deprecated and will| CREATE_MODEL | Metalake, Catalog, Schema | Register a model, this is deprecated. Please use `REGISTER_MODEL` instead. || CREATE_MODEL_VERSION | Metalake, Catalog, Schema, Model | Link a model version, this is deprecated. Please use `LINK_MODEL_VERSION` instead. |-### Function privileges+### Function Privileges| Name | Supports Securable Object | Operation ||-------------------|-------------------------------------|---------------------------------------------------------------------------------------|@@ -364,28 +364,29 @@ The privileges `CREATE_MODEL` and `CREATE_MODEL_VERSION` are deprecated and will| EXECUTE_FUNCTION | Metalake, Catalog, Schema, Function | View the metadata of the function and execute the function || MODIFY_FUNCTION | Metalake, Catalog, Schema, Function | Alter or drop the function |-### Tag privileges+### Tag Privileges| Name | Supports Securable Object | Operation ||------------|---------------------------|---------------------------------------|| CREATE_TAG | Metalake | Create a tag || APPLY_TAG | Metalake, Tag | Associate tags with metadata objects. |-### Policy privileges+### Policy Privileges| Name | Supports Securable Object | Operation ||---------------|---------------------------|-------------------------------------------|| CREATE_POLICY | Metalake | Create a policy || APPLY_POLICY | Metalake, Policy | Associate policies with metadata objects. |-### Job template privileges+### Job Template Privileges| Name | Supports Securable Object | Operation ||-----------------------|---------------------------|-----------------------------------------|| REGISTER_JOB_TEMPLATE | Metalake | Register a job template || USE_JOB_TEMPLATE | Metalake, JobTemplate | Use a job template when running the job |-### Job privileges+### Job Privileges+| Name | Supports Securable Object | Operation ||---------|---------------------------|-----------|| RUN_JOB | Metalake | Run a job |@@ -502,7 +503,7 @@ gravitino.authorization.jcasbin.changePollIntervalSecs = 3If you have metalakes that were created before authorization was enabled, you need to perform a migration to ensure proper access control.-### Migrating Existing Metalakes+### Migrate Existing MetalakesWhen you created metalakes with `gravitino.authorization.enable = false`, those metalakes don't have owners assigned. To enable authorization for these existing metalakes:@@ -571,7 +572,7 @@ The following sections demonstrate how to perform common access control operatio## User Operations-### Add a user+### Add a UserAdd a user to your metalake before using authorization features.@@ -597,7 +598,7 @@ User user =</TabItem></Tabs>-### List users+### List UsersList all users in a metalake. Use `details=true` to get full user objects instead of just names.@@ -625,9 +626,9 @@ User[] users = client.listUsers();</TabItem></Tabs>-### Get a user+### Get a User-You can get a user by its name.+Get a user by its name.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -649,9 +650,9 @@ User user =</TabItem></Tabs>-### Remove a user+### Remove a User-You can remove a user by its name.+Remove a user by its name.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -677,7 +678,7 @@ boolean removed =### Add a Group-You should add the group to your metalake before you use the authorization.+Add the group to your metalake before you use the authorization.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -701,9 +702,9 @@ Group group =</TabItem></Tabs>-### List groups+### List Groups-You can list the created groups in a metalake.+List the groups in a metalake.Returns the list of groups if details is true, otherwise returns the list of group name.<Tabs groupId='language' queryString>@@ -730,9 +731,9 @@ User[] users = client.listGroups();</TabItem></Tabs>-### Get a group+### Get a Group-You can get a group by its name.+Get a group by its name.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -754,9 +755,9 @@ Group group =</TabItem></Tabs>-### Remove a group+### Remove a Group-You can remove a group by its name.+Remove a group by its name.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -780,9 +781,9 @@ boolean removed =## Role Operation-### Create a role+### Create a Role-You can create a role by given properties.+Create a role by given properties.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -829,9 +830,9 @@ Role role =</TabItem></Tabs>-### List roles+### List Roles-You can list the created roles in a metalake.+List the roles in a metalake.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -852,9 +853,9 @@ String[] usernames = client.listRoleNames();</TabItem></Tabs>-### List roles for the metadata object+### List Roles for the Metadata Object-You can list the binding roles for a metadata object in a metalake.+List the binding roles for a metadata object in a metalake.The request path for REST API is `/api/metalakes/{metalake}/objects/{metadataObjectType}/{metadataObjectName}/roles`.@@ -883,9 +884,9 @@ String[] roles = schema1.supportsRoles().listBindingRoleNames();</TabItem></Tabs>-### Get a role+### Get a Role-You can get a role by its name.+Get a role by its name.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -907,9 +908,9 @@ Role role =</TabItem></Tabs>-### Delete a role+### Delete a Role-You can delete a role by its name.+Delete a role by its name.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -933,9 +934,9 @@ boolean deleted =## Permission Operation-### Grant privileges to a role+### Grant Privileges to a Role-You can grant specific privileges to a role.+Grant specific privileges to a role.The request path for REST API is `/api/metalakes/{metalake}/permissions/roles/{role}/{metadataObjectType}/{metadataObjectName}/grant`.<Tabs groupId='language' queryString>@@ -978,9 +979,9 @@ Role role = client.grantPrivilegesToRole("role1", table, Lists.newArrayList(Priv</TabItem></Tabs>-### Revoke privileges from a role+### Revoke Privileges from a Role-You can revoke specific privileges from a role.+Revoke specific privileges from a role.The request path for REST API is `/api/metalakes/{metalake}/permissions/roles/{role}/{metadataObjectType}/{metadataObjectName}/revoke`.<Tabs groupId='language' queryString>@@ -1024,9 +1025,9 @@ Role role = client.revokePrivilegesFromRole("role1", table, Lists.newArrayList(P</TabItem></Tabs>-### Override privileges in a role+### Override Privileges in a Role-You can override all privileges in a role with a new set of securable objects and their privileges. This operation completely replaces the role's entire privilege configuration - any securable objects not included in the request will be removed from the role.+Override all privileges in a role with a new set of securable objects and their privileges. This operation completely replaces the role's entire privilege configuration - any securable objects not included in the request will be removed from the role.The request path for REST API is `/api/metalakes/{metalake}/permissions/roles/{role}/`.@@ -1069,9 +1070,9 @@ This operation completely replaces **all privileges** in the role. The role willUse this operation when you want to set the exact privilege configuration for a role, replacing its entire state.:::-### Grant roles to a user+### Grant Roles to a User-You can grant specific roles to a user.+Grant specific roles to a user.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -1094,9 +1095,9 @@ User user = client.grantRolesToUser(Lists.newList("role1"), "user1");</TabItem></Tabs>-### Revoke roles from a user+### Revoke Roles from a User-You can revoke specific roles from a user.+Revoke specific roles from a user.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -1120,9 +1121,9 @@ User user = client.revokeRolesFromUser(Lists.newList("role1"), "user1");</Tabs>-### Grant roles to a group+### Grant Roles to a Group-You can grant specific roles to a group.+Grant specific roles to a group.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -1145,9 +1146,9 @@ Group group = client.grantRolesToGroup(Lists.newList("role1"), "group1");</TabItem></Tabs>-### Revoke roles from a group+### Revoke Roles from a Group-You can revoke specific roles from a group.+Revoke specific roles from a group.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -1172,9 +1173,9 @@ Group group = client.revokeRolesFromGroup(Lists.newList("role1"), "group1");## Ownership Operation-### get the owner+### Get the Owner-You can get the owner of a metadata object.+Get the owner of a metadata object.<Tabs groupId='language' queryString><TabItem value="shell" label="Shell">@@ -1199,9 +1200,9 @@ Owner owner = client.getOwner(table);</TabItem></Tabs>-### set the owner+### Set the Owner-You can set the owner of a metadata object.+Set the owner of a metadata object.The request path for REST API is `/api/metalakes/{metalake}/owners/{metadataObjectType}/{metadataObjectName}`.@@ -1233,7 +1234,7 @@ client.setOwner(table, "user1", "USER");## Example-You can follow the steps to achieve the authorization of Gravitino.+Follow these steps to set up authorization in Gravitino:@@ -1263,7 +1264,7 @@ You can follow the steps to achieve the authorization of Gravitino.13. `Staff` can use Gravitino connector to query the tables from different catalogs.-## API required conditions+## API Required ConditionsThe following table lists the required privileges for each API.diff --git a/docs/security/authorization-pushdown.md b/docs/security/authorization-pushdown.mdindex 9f193c0d92..eb9b7b418f 100644--- a/docs/security/authorization-pushdown.md+++ b/docs/security/authorization-pushdown.md@@ -1,13 +1,13 @@----title: "Authorization Push-down"-slug: /security/authorization-push-down-keyword: security+title: "Authorization Pushdown"+slug: "/security/authorization-pushdown"+keyword: "security"license: "This software is licensed under the Apache License version 2."----## Authorization Push-down+## Introduction-+Gravitino offers a set of authorization frameworks that integrate with various underlying data source permission systems, such as MySQL's native permission management and Apache Ranger for big data. These frameworks align with Gravitino's own authorization model and methodology.Gravitino manages different data sources through Catalogs, and when a user performs an authorization operation on data within a Catalog, Gravitino invokes the Authorization Plugin module for that Catalog.@@ -15,13 +15,13 @@ This module translates Gravitino's authorization model into the permission rules### Ranger Hadoop SQL Plugin-In order to use the Ranger Hadoop SQL Plugin, you need to configure the following properties:+To use the Ranger Hadoop SQL Plugin, you need to configure the following properties:| Property Name | Description | Default Value | Required | Since Version ||-------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------|----------|------------------|| `authorization-provider` | Providers to use to implement authorization plugin such as `ranger`. | (none) | No | 0.6.0-incubating || `authorization.ranger.admin.url` | The Apache Ranger web URIs. | (none) | No | 0.6.0-incubating |-| `authorization.ranger.service.type` | The Apache Ranger service type, Currently only supports `HadoopSQL` or `HDFS` | (none) | No | 0.8.0-incubating |+| `authorization.ranger.service.type` | The Apache Ranger service type. Supports `HadoopSQL` or `HDFS`. | (none) | No | 0.8.0-incubating || `authorization.ranger.auth.type` | The Apache Ranger authentication type `simple` or `kerberos`. | `simple` | No | 0.6.0-incubating || `authorization.ranger.username` | The Apache Ranger admin web login username (auth type=simple), or kerberos principal(auth type=kerberos), Need have Ranger administrator permission. | (none) | No | 0.6.0-incubating || `authorization.ranger.password` | The Apache Ranger admin web login user password (auth type=simple), or path of the keytab file(auth type=kerberos) | (none) | No | 0.6.0-incubating |@@ -45,7 +45,7 @@ Gravitino will initially create three roles in Apache Ranger:- GRAVITINO_CATALOG_OWNER_ROLE: Includes users and user groups designated as catalog owners, corresponding to the owner's privileges in Ranger policies.- GRAVITINO_OWNER_ROLE: Used to label Ranger policy items related to schema and table owner privileges. It does not include any users or user groups.-#### Example of using the Ranger Hadoop SQL Plugin+#### Configure the Ranger Hadoop SQL PluginSuppose you have an Apache Hive service in your datacenter and have created a `hiveRepo` in Apache Ranger to manage its permissions.The Ranger service is accessible at `172.0.0.100:6080`, with the username `Jack` and the password `PWD123`.@@ -67,13 +67,13 @@ Spark can use Kyuubi authorization plugin to access Gravitino's catalog. But theMore data source authorization is under development.:::-### chain authorization plugin+### Chain Authorization PluginGravitino supports chaining multiple authorization plugins to secure one catalog.The authorization plugin chain is defined in the `authorization.chain.plugins` property, with the plugin names separated by commas.When a user performs an authorization operation on data within a catalog, the chained plugin will apply the authorization rules for every plugin defined in the chain.-In order to use the chained authorization plugin, you need to configure the following properties:+To use the chained authorization plugin, you need to configure the following properties:| Property Name | Description | Default Value | Required | Since Version ||-----------------------------------------------------------|----------------------------------------------------------------------------------------|---------------|-----------------------------|------------------|@@ -90,7 +90,7 @@ The Gravitino chain authorization plugin only supports the Apache Ranger HadoopSThe properties of every chained authorization plugin should use `authorization.chain.${plugin-name}` as the prefix.:::-#### Example of using the chain authorization Plugin+#### Configure the Chain Authorization PluginSuppose you have an Apache Hive service in your datacenter and have created a `hiveRepo` in Apache Ranger to manage its permissions.The Apache Hive service will use HDFS to store its data. You have created a `hdfsRepo` in Apache Ranger to manage HDFS's permissions.diff --git a/docs/security/credential-vending.md b/docs/security/credential-vending.mdindex 21bcdfef74..da14eb4829 100644--- a/docs/security/credential-vending.md+++ b/docs/security/credential-vending.md@@ -1,7 +1,7 @@----title: "Gravitino credential vending"-slug: /security/credential-vending-keyword: security credential vending+title: "Credential Vending"+slug: "/security/credential-vending"+keyword: "security credential vending"license: "This software is licensed under the Apache License version 2."---@@ -20,20 +20,20 @@ Gravitino credential vending is used to generate temporary or static credentials- OSS: `OSSTokenCredential`, `OSSSecretKeyCredential`- No support for Spark/Trino/Flink connector yet.-## General configurations+## General Configurations| Gravitino server catalog properties | Gravitino Iceberg REST server configurations | Description | Default value | Required | Since Version ||-------------------------------------|--------------------------------------------------------|--------------------------------------------------------------------------------------------|---------------|----------|------------------|-| `credential-provider-type` | `gravitino.iceberg-rest.credential-provider-type` | Deprecated, please use `credential-providers` instead. | (none) | Yes | 0.7.0-incubating |+| `credential-provider-type` | `gravitino.iceberg-rest.credential-provider-type` | Deprecated; use `credential-providers` instead. | (none) | Yes | 0.7.0-incubating || `credential-providers` | `gravitino.iceberg-rest.credential-providers` | The credential provider types, separated by comma. | (none) | Yes | 0.8.0-incubating || `credential-cache-expire-ratio` | `gravitino.iceberg-rest.credential-cache-expire-ratio` | Ratio of the credential's expiration time when Gravitino remove credential from the cache. | 0.15 | No | 0.8.0-incubating || `credential-cache-max-size` | `gravitino.iceberg-rest.cache-max-size` | Max size for the credential cache. | 10000 | No | 0.8.0-incubating |-## Build-in credentials configurations+## Build-in Credentials Configurations-### S3 credentials+### S3 Credentials-#### S3 IRSA credential+#### S3 IRSA CredentialA credential using AWS IAM Roles for Service Accounts (IRSA) to access S3 with temporary credentials, typically used in EKS environments. This provider supports both basic IRSA credentials and fine-grained path-based access control with dynamically generated IAM policies.@@ -60,7 +60,7 @@ A credential using AWS IAM Roles for Service Accounts (IRSA) to access S3 with t- IAM role with permissions to assume the target role specified in `s3-role-arn`- Target IAM role with necessary S3 permissions for the data locations-#### S3 secret key credential+#### S3 Secret Key CredentialA credential with static S3 access key id and secret access key.@@ -70,7 +70,7 @@ A credential with static S3 access key id and secret access key.| `s3-access-key-id` | `gravitino.iceberg-rest.s3-access-key-id` | The static access key ID used to access S3 data. | (none) | Yes | 0.6.0-incubating || `s3-secret-access-key` | `gravitino.iceberg-rest.s3-secret-access-key` | The static secret access key used to access S3 data. | (none) | Yes | 0.6.0-incubating |-#### S3 token credential+#### S3 Token CredentialAn S3 token is a token credential with scoped privileges, by leveraging STS [Assume Role](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html). To use an S3 token credential, you should create a role and grant it proper privileges.@@ -85,9 +85,9 @@ An S3 token is a token credential with scoped privileges, by leveraging STS [Ass| `s3-token-expire-in-secs` | `gravitino.iceberg-rest.s3-token-expire-in-secs` | The S3 session token expire time in secs, it couldn't exceed the max session time of the assumed role. | 3600 | No | 0.7.0-incubating || `s3-token-service-endpoint` | `gravitino.iceberg-rest.s3-token-service-endpoint` | An alternative endpoint of the S3 token service, This could be used with s3-compatible object storage service like MINIO that has a different STS endpoint. | (none) | No | 0.8.0-incubating |-### OSS credentials+### OSS Credentials-#### OSS secret key credential+#### OSS Secret Key CredentialA credential with static OSS access key id and secret access key.@@ -97,7 +97,7 @@ A credential with static OSS access key id and secret access key.| `oss-access-key-id` | `gravitino.iceberg-rest.oss-access-key-id` | The static access key ID used to access OSS data. | (none) | Yes | 0.7.0-incubating || `oss-secret-access-key` | `gravitino.iceberg-rest.oss-secret-access-key` | The static secret access key used to access OSS data. | (none) | Yes | 0.7.0-incubating |-#### OSS token credential+#### OSS Token CredentialAn OSS token is a token credential with scoped privileges, by leveraging STS [Assume Role](https://www.alibabacloud.com/help/en/oss/developer-reference/use-temporary-access-credentials-provided-by-sts-to-access-oss). To use an OSS token credential, you should create a role and grant it proper privileges.@@ -111,9 +111,9 @@ An OSS token is a token credential with scoped privileges, by leveraging STS [As| `oss-external-id` | `gravitino.iceberg-rest.oss-external-id` | The OSS external id to generate token. | (none) | No | 0.8.0-incubating || `oss-token-expire-in-secs` | `gravitino.iceberg-rest.oss-token-expire-in-secs` | The OSS security token expire time in secs. | 3600 | No | 0.8.0-incubating |-### ADLS credentials+### ADLS Credentials-#### Azure account key credential+#### Azure Account Key CredentialA credential with static Azure storage account name and key.@@ -123,7 +123,7 @@ A credential with static Azure storage account name and key.| `azure-storage-account-name` | `gravitino.iceberg-rest.azure-storage-account-name` | The static storage account name used to access ADLS data. | (none) | Yes | 0.8.0-incubating || `azure-storage-account-key` | `gravitino.iceberg-rest.azure-storage-account-key` | The static storage account key used to access ADLS data. | (none) | Yes | 0.8.0-incubating |-#### ADLS token credential+#### ADLS Token CredentialAn ADLS token is a token credential with scoped privileges, by leveraging Azure [User Delegation Sas](https://learn.microsoft.com/en-us/rest/api/storageservices/create-user-delegation-sas). To use an ADLS token credential, you should create a Microsoft Entra ID service principal and grant it proper privileges.@@ -137,38 +137,38 @@ An ADLS token is a token credential with scoped privileges, by leveraging Azure| `azure-client-secret` | `gravitino.iceberg-rest.azure-client-secret` | Azure Active Directory (AAD) client secret used for authentication. | (none) | Yes | 0.8.0-incubating || `adls-token-expire-in-secs` | `gravitino.iceberg-rest.adls-token-expire-in-secs` | The ADLS SAS token expire time in secs. | 3600 | No | 0.8.0-incubating |-### GCS credentials+### GCS Credentials-#### GCS token credential+#### GCS Token CredentialAn GCS token is a token credential with scoped privileges, by leveraging GCS [Credential Access Boundaries](https://cloud.google.com/iam/docs/downscoping-short-lived-credentials). To use an GCS token credential, you should create an GCS service account and grant it proper privileges.| Gravitino server catalog properties | Gravitino Iceberg REST server configurations | Description | Default value | Required | Since Version ||-------------------------------------|---------------------------------------------------|------------------------------------------------------------|-------------------------------------|----------|------------------|| `credential-providers` | `gravitino.iceberg-rest.credential-providers` | `gcs-token` for GCS token credential. | (none) | Yes | 0.8.0-incubating |-| `gcs-credential-file-path` | `gravitino.iceberg-rest.gcs-credential-file-path` | Deprecated, please use `gcs-service-account-file` instead. | GCS Application default credential. | No | 0.7.0-incubating |+| `gcs-credential-file-path` | `gravitino.iceberg-rest.gcs-credential-file-path` | Deprecated; use `gcs-service-account-file` instead. | GCS Application default credential. | No | 0.7.0-incubating || `gcs-service-account-file` | `gravitino.iceberg-rest.gcs-service-account-file` | The location of GCS credential file. | GCS Application default credential. | No | 0.8.0-incubating |:::note-For Gravitino Iceberg REST server, please ensure that the credential file can be accessed by the server. For example, if the server is running on a GCE machine, or you can set the environment variable as `export GOOGLE_APPLICATION_CREDENTIALS=/xx/application_default_credentials.json`, even when the `gcs-service-account-file` has already been configured.+For the Gravitino Iceberg REST server, ensure that the credential file is accessible by the server. For example, the server may be running on a GCE machine, or you may set the environment variable `export GOOGLE_APPLICATION_CREDENTIALS=/xx/application_default_credentials.json` even when `gcs-service-account-file` is already configured.:::-## Custom credentials+## Custom CredentialsGravitino supports custom credentials, you can implement the `org.apache.gravitino.credential.CredentialProvider` interface to support custom credentials, and place the corresponding jar to the classpath of Iceberg catalog server or Fileset catalog.## Deployment-Besides setting credentials related configuration, please download the related cloud bundle jar and place it in the classpath of Iceberg REST server or Fileset catalog.+Besides setting credentials-related configuration, download the related cloud bundle jar and place it in the classpath of the Iceberg REST server or Fileset catalog.-For Fileset catalog, please use Gravitino cloud bundle jar with Hadoop and cloud packages:+For the Fileset catalog, use the Gravitino cloud bundle jar with Hadoop and cloud packages:- [Gravitino AWS bundle jar with Hadoop and cloud packages](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-aws-bundle)- [Gravitino Aliyun bundle jar with Hadoop and cloud packages](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-aliyun-bundle)- [Gravitino GCP bundle jar with Hadoop and cloud packages](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-gcp-bundle)- [Gravitino Azure bundle jar with Hadoop and cloud packages](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-azure-bundle)-For Iceberg REST catalog server, please download the corresponding Gravitino cloud packages.+For the Iceberg REST catalog server, download the corresponding Gravitino cloud packages.- [Gravitino Iceberg AWS bundle JAR](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-iceberg-aws-bundle)- [Gravitino Iceberg GCP bundle JAR](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-iceberg-aliyun-bundle)@@ -181,12 +181,12 @@ Since Gravitino 1.1.0, the above Gravitino Iceberg cloud bundle jars have alreadThe classpath of the server:-- Iceberg REST server: the classpath differs in different deploy mode, please refer to [Server management](../iceberg-rest-service.md#server-management) part.+- Iceberg REST server: the classpath differs in different deploy mode, refer to [Server management](../iceberg-rest-service.md#server-management) part.- Fileset catalog: `catalogs/fileset/libs/`-## Usage example+## Example-### Credential vending for Iceberg REST server+### Credential Vending for Iceberg REST ServerSuppose the Iceberg table data is stored in S3, follow the steps below:diff --git a/docs/security/how-to-authenticate.md b/docs/security/how-to-authenticate.mdindex 004a98c661..053821fb07 100644--- a/docs/security/how-to-authenticate.md+++ b/docs/security/how-to-authenticate.md@@ -1,16 +1,16 @@----title: "How to authenticate"-slug: /security/how-to-authenticate-keyword: security authentication oauth kerberos+title: "Authentication"+slug: "/security/how-to-authenticate"+keyword: "security authentication oauth kerberos"license: "This software is licensed under the Apache License version 2."----## Authentication+## IntroductionApache Gravitino supports four kinds of authentication mechanisms: simple, Basic, OAuth and Kerberos.If you don't enable authentication for your client and server explicitly, the user `anonymous` will be used to access the server.-### Simple mode+### Simple ModeIn simple mode, the client uses the value of the `GRAVITINO_USER` environment variable as the username.If the environment variable `GRAVITINO_USER` in the client isn't set, the client defaults to the username of the user logged into the machine sending the requests.@@ -43,7 +43,7 @@ curl -v -X GET \http://localhost:8090/api/version```-### Basic mode+### Basic ModeIn Basic mode, Gravitino verifies HTTP Basic credentials against built-in IDP user metadata storedin the relational entity store.@@ -86,7 +86,7 @@ curl -v -X GET \http://localhost:8090/api/version```-### OAuth mode+### OAuth ModeGravitino supports external OAuth 2.0 servers with two token validation methods:@@ -115,7 +115,7 @@ GravitinoClient client = GravitinoClient.builder(uri).build();```-### Kerberos mode+### Kerberos ModeTo enable Kerberos mode, users must ensure that the server and client have the correct Kerberos configuration. On the server side, users should set `gravitino.authenticators` as `kerberos` and give`gravitino.authenticator.kerberos.principal` and `gravitino.authenticator.kerberos.keytab` a proper value. For the client side, users can enable `kerberos` mode by the following code:@@ -139,11 +139,11 @@ GravitinoClient client = GravitinoClient.builder(uri)```:::info-Currently, the Iceberg REST service does not support Kerberos authentication.+The Iceberg REST service does not support Kerberos authentication.The URI must be the server's hostname instead of its IP address.:::-### Custom mode+### Custom ModeGravitino also supports custom authentication implementations.For server side, you can implement the interface `Authenticator` and specify `gravitino.authenciators`.@@ -156,17 +156,17 @@ GravitinoClient client = GravitinoClient.builder(uri).build();```-### Principal mapping+### Principal MappingGravitino supports principal mapping to transform authenticated principals (from OAuth or Kerberos) into user identities for authorization. By default, Gravitino uses regex-based mapping.-### Group mapping+### Group MappingGravitino supports group mapping to transform authenticated groups (from OAuth) into Gravitino groups for authorization. By default, Gravitino uses regex-based mapping.-#### OAuth group mapping+#### OAuth Group Mapping-For OAuth authentication, groups are extracted from JWT claims (configured via `gravitino.authenticator.oauth.groupsFields`). You can customize how these groups are mapped:+For OAuth authentication, groups are extracted from JWT claims (configured via `gravitino.authenticator.oauth.groupsFields`). Customize how these groups are mapped:```text# Use default regex mapper that extracts everything (passes through unchanged)@@ -182,7 +182,7 @@ gravitino.authenticator.oauth.groupMapper.regex.pattern = ^/(.*)gravitino.authenticator.oauth.groupMapper = com.example.MyCustomGroupMapper```-#### Custom group mapper+#### Custom Group MapperFor advanced use cases, implement the `GroupMapper` interface:@@ -215,9 +215,9 @@ Configure Gravitino to use your custom mapper:gravitino.authenticator.oauth.groupMapper = com.example.MyCustomGroupMapper```-#### OAuth principal mapping+#### OAuth Principal Mapping-For OAuth authentication, principals are extracted from JWT claims (configured via `gravitino.authenticator.oauth.principalFields`). You can customize how these principals are mapped:+For OAuth authentication, principals are extracted from JWT claims (configured via `gravitino.authenticator.oauth.principalFields`). Customize how these principals are mapped:```text# Use default regex mapper that extracts everything (passes through unchanged)@@ -232,7 +232,7 @@ gravitino.authenticator.oauth.principalMapper.regex.pattern = ([^@]+)@.*gravitino.authenticator.oauth.principalMapper = com.example.MyCustomPrincipalMapper```-#### Custom principal mapper+#### Custom Principal MapperFor advanced use cases, implement the `PrincipalMapper` interface:@@ -256,7 +256,7 @@ Configure Gravitino to use your custom mapper:gravitino.authenticator.oauth.principalMapper = com.example.MyCustomPrincipalMapper```-#### Kerberos principal mapping+#### Kerberos Principal MappingFor Kerberos authentication, principals follow the format `primary[/instance][@REALM]`. The default mapper extracts the primary component (username before `@`):@@ -270,7 +270,7 @@ gravitino.authenticator.kerberos.principalMapper = regexgravitino.authenticator.kerberos.principalMapper.regex.pattern = ([^/@]+).*```-#### Custom Kerberos principal mapper+#### Custom Kerberos Principal MapperFor advanced use cases, implement the `PrincipalMapper` interface:@@ -310,7 +310,7 @@ Configure Gravitino to use your custom mapper:gravitino.authenticator.kerberos.principalMapper = com.example.RealmBasedMapper```-### Server configuration+### Server ConfigurationGravitino server and Gravitino Iceberg REST server share the same configuration items, you doesn't need to add `gravitino.iceberg-rest` prefix for Gravitino Iceberg REST server.@@ -482,9 +482,9 @@ gravitino.authenticator.oauth.tokenValidatorClass = org.apache.gravitino.server.gravitino.authenticator.oauth.jwksUri = https://your-oauth-provider/.well-known/jwks.json```-### Example+### Example-You can follow the steps to set up an OAuth mode Gravitino server.+Follow these steps to set up an OAuth mode Gravitino server:1. Prerequisite@@ -523,7 +523,7 @@ gravitino.authenticator.oauth.serverUri = http://localhost:8177-8. You can also use the curl command to access Gravitino.+8. Use the curl command to access Gravitino.Get access token@@ -537,7 +537,7 @@ Use the access token to request the Gravitinocurl -v -X GET -H "Accept: application/vnd.gravitino.v1+json" -H "Content-Type: application/json" -H "Authorization: Bearer <access_token>" http://localhost:8090/api/version```-### Example: Keycloak as OAuth providers+### Configure Keycloak as an OAuth Provider1. Set up an external Keycloak server, you can refer to [Keycloak document](https://www.keycloak.org/getting-started/getting-started-docker)@@ -587,7 +587,7 @@ docker run -dti -p 8080:8080 -e KC_BOOTSTRAP_ADMIN_USERNAME=admin -e KC_BOOTSTRA-7. You can refer to the [Configurations](../gravitino-server-config.md) and append the configurations to the conf/gravitino.conf.+7. Refer to the [Configurations](../gravitino-server-config.md) and append the configurations to the conf/gravitino.conf.```textgravitino.authenticators = oauthdiff --git a/docs/security/how-to-use-cors.md b/docs/security/how-to-use-cors.mdindex 8b0fe4624d..c936cf2689 100644--- a/docs/security/how-to-use-cors.md+++ b/docs/security/how-to-use-cors.md@@ -1,13 +1,15 @@----title: "How to use CORS"-slug: /security/how-to-use-cors-keyword: security cors+title: "CORS"+slug: "/security/how-to-use-cors"+keyword: "security cors"license: "This software is licensed under the Apache License version 2."----## Cross-origin resource filter+## Introduction-### Server configuration+Cross-Origin Resource Sharing (CORS) is a browser security mechanism that controls which web origins can call the Gravitino HTTP API. Without CORS configuration, browsers block requests from a web UI hosted on a different origin than the Gravitino server. Configure CORS when the Gravitino web UI or any other browser-based client runs on a different host, port, or protocol than the server.++## Server Configuration| Configuration item | Description | Default value | Required | Since version ||----------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|----------|---------------|@@ -21,7 +23,7 @@ license: "This software is licensed under the Apache License version 2."| `gravitino.server.webserver.exposedHeaders` | A comma separated list of allowed HTTP headers exposed on the client. The default value is the empty list. | ''(empty string) | No | 0.4.0 || `gravitino.server.webserver.chainPreflight` | If true chained preflight requests for normal handling (as an OPTION request). Otherwise, the filter responds to the preflight. The default is true. | `true` | No | 0.4.0 |-### Apache Iceberg REST service's configuration+## Apache Iceberg REST Service Configuration| Configuration item | Description | Default value | Required | Since version ||------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|----------|---------------|diff --git a/docs/security/how-to-use-https.md b/docs/security/how-to-use-https.mdindex e489e74399..b3ee0b8c4c 100644--- a/docs/security/how-to-use-https.md+++ b/docs/security/how-to-use-https.md@@ -1,19 +1,19 @@----title: "How to use HTTPS"-slug: /security/how-to-use-https-keyword: security HTTPS protocol+title: "HTTPS"+slug: "/security/how-to-use-https"+keyword: "security HTTPS protocol"license: "This software is licensed under the Apache License version 2."----## HTTPS+## IntroductionFor users choosing OAuth 2.0 as the authentication method, it is recommended to use HTTPS instead of HTTP. HTTPS encrypts the request headers, offering better protection against smuggling attacks.Note that Gravitino cannot simultaneously support both HTTP and HTTPS within a single server instance. If HTTPS is enabled, Gravitino will no longer provide HTTP service.-Currently, both the Gravitino server and Iceberg REST service can configure and support HTTPS.+Both the Gravitino server and Iceberg REST service can configure and support HTTPS.-### Apache Gravitino server's configuration+### Apache Gravitino Server Configuration| Configuration item | Description | Default value | Required | Since version ||-----------------------------------------------------|--------------------------------------------------------------------|---------------------|---------------------------------------------------|---------------|@@ -30,7 +30,7 @@ Currently, both the Gravitino server and Iceberg REST service can configure and| `gravitino.server.webserver.trustStorePassword` | Password to the trust store. | (none) | Yes if use HTTPS and the authentication of client | 0.3.0 || `gravitino.server.webserver.trustStoreType` | The type to the trust store. | `JKS` | No | 0.3.0 |-### Apache Iceberg REST service's configuration+### Apache Iceberg REST Service Configuration| Configuration item | Description | Default value | Required | Since version ||-------------------------------------------------|--------------------------------------------------------------------|-------------------|---------------------------------------------------|---------------|@@ -53,7 +53,7 @@ Refer to the "Additional JSSE Standard Names" section of the [Java security guid### Example-You can follow the steps to set up an HTTPS server.+Follow these steps to set up an HTTPS server:1. Prerequisite- You need to install the JDK8, wget, and set the environment JAVA_HOME.@@ -82,7 +82,7 @@ bin/keytool -export -alias localhost -keystore localhost.jks -file localhost.crbin/keytool -import -alias localhost -keystore jre/lib/security/cacerts -file localhost.crt -storepass changeit -noprompt```-5. You can refer to the [Configurations](../gravitino-server-config.md) and append the configuration to the conf/gravitino.conf.+5. Refer to the [Configurations](../gravitino-server-config.md) and append the configuration to the conf/gravitino.conf.Configuration doesn't support resolving environment variables, so you should replace `${JAVA_HOME}` with the actual value.Then, You can start the Gravitino server.diff --git a/docs/security/security.md b/docs/security/security.mdindex 5f6b9edc7b..c4d02963cc 100644--- a/docs/security/security.md+++ b/docs/security/security.md@@ -1,7 +1,7 @@---title: "Security"-slug: /security/security-keyword: security+slug: "/security/security"+keyword: "security"license: "This software is licensed under the Apache License version 2."---@@ -13,7 +13,7 @@ Gravitino provides features that ensure the highest levels of security for you.Gravitino has supported the following security features:-### [Authorization push down](./authorization-pushdown.md)+### [Authorization Pushdown](./authorization-pushdown.md)### [Authentication](how-to-authenticate.md)@@ -25,4 +25,4 @@ Gravitino has supported the following security features:### [Credential vending](credential-vending.md)-### [CORS](how-to-use-cors.md)\ No newline at end of file+### [CORS](how-to-use-cors.md)diff --git a/docs/spark-connector/spark-authentication-with-gravitino.md b/docs/spark-connector/spark-authentication-with-gravitino.mdindex 9ec4a949ae..5f74593dd9 100644--- a/docs/spark-connector/spark-authentication-with-gravitino.md+++ b/docs/spark-connector/spark-authentication-with-gravitino.md@@ -1,7 +1,7 @@----title: "Spark authentication with Gravitino server"-slug: /spark-connector/spark-authentication-keyword: spark connector authentication oauth2 kerberos+title: "Spark Authentication"+slug: "/spark-connector/spark-authentication"+keyword: "spark connector authentication oauth2 kerberos"license: "This software is licensed under the Apache License version 2."---@@ -11,16 +11,16 @@ Spark connector supports `simple` `oauth2` and `kerberos` authentication when ac| Property | Type | Default Value | Description | Required | Since Version ||------------------------------|--------|---------------|---------------------------------------------------------------------------------------------------------------------|----------|------------------|-| spark.sql.gravitino.authType | string | `simple` | The authentication mechanisms when communicating with Gravitino server, supports `simple`, `oauth2` and `kerberos`. | No | 0.7.0-incubating |+| spark.sql.gravitino.authType | string | `simple` | The authentication mechanism for communicating with the Gravitino server. Supported values: `simple`, `oauth2`, `kerberos`. | No | 0.7.0-incubating |-## Simple mode+## Simple ModeIn the simple mode, the username originates from Spark, and is obtained using the following sequences:1. The environment variable of `SPARK_USER`2. The environment variable of `HADOOP_USER_NAME`3. The user login in the machine-## OAuth2 mode+## OAuth2 ModeIn the OAuth2 mode, you could use the following configuration to fetch an OAuth2 token to access Gravitino server.@@ -31,9 +31,9 @@ In the OAuth2 mode, you could use the following configuration to fetch an OAuth2| spark.sql.gravitino.oauth2.credential | string | None | The credential to request the OAuth2 token. | Yes, for OAuth2 mode | 0.7.0-incubating || spark.sql.gravitino.oauth2.scope | string | None | The scope to request the OAuth2 token. | Yes, for OAuth2 mode | 0.7.0-incubating |-## Kerberos mode+## Kerberos ModeIn kerberos mode, you could use the Spark kerberos configuration to fetch a kerberos ticket to access Gravitino server, use `spark.kerberos.principal`, `spark.kerberos.keytab` to specify kerberos principal and keytab.-The principal of Gravitino server is like `HTTP/$host@$realm`, please keep the `$host` consistent with the host in Gravitino server uri address.+The Gravitino server principal has the form `HTTP/$host@$realm`. Keep `$host` consistent with the host in the Gravitino server URI.Please make sure `krb5.conf` is accessible by Spark, like by specifying the configuration `spark.driver.extraJavaOptions="-Djava.security.krb5.conf=/xx/krb5.conf"`.diff --git a/docs/spark-connector/spark-catalog-hive.md b/docs/spark-connector/spark-catalog-hive.mdindex 0b8824533e..74df514c70 100644--- a/docs/spark-connector/spark-catalog-hive.md+++ b/docs/spark-connector/spark-catalog-hive.md@@ -1,10 +1,12 @@----title: "Spark connector hive catalog"-slug: /spark-connector/spark-catalog-hive-keyword: spark connector hive catalog+title: "Spark Connector: Hive Catalog"+slug: "/spark-connector/spark-catalog-hive"+keyword: "spark connector hive catalog"license: "This software is licensed under the Apache License version 2."---+## Introduction+With the Apache Gravitino Spark connector, accessing data or managing metadata in Hive catalogs becomes straightforward, enabling seamless federation queries across different Hive catalogs.## Capabilities@@ -23,12 +25,12 @@ Supports most DDL and DML operations in SparkSQL, except such operations:Don't support reading and writing tables with `org.apache.hadoop.hive.serde2.OpenCSVSerde` row format.:::-## Requirement+## Prerequisites* Hive metastore 2.x* HDFS 2.x or 3.x-## SQL example+## SQL Example```sql@@ -56,7 +58,7 @@ SELECT * FROM employees WHERE department = 'Engineering';```-## Catalog properties+## Catalog PropertiesGravitino spark connector will transform below property names which are defined in catalog properties to Spark Hive connector configuration.@@ -76,4 +78,4 @@ When using the `spark-sql` shell client, you must explicitly set the `spark.bypa### S3-Please refer to [Hive catalog with s3](../hive-catalog-with-s3.md) to set up a Hive catalog with s3 storage. To query the data stored in s3, you need to add s3 secret to the Spark configuration using `spark.sql.catalog.${hive_catalog_name}.fs.s3a.access.key` and `spark.sql.catalog.${hive_catalog_name}.fs.s3a.secret.key`. Additionally, download [hadoop aws jar](https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-aws), [aws java sdk jar](https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-bundle) and place them in the classpath of Spark.+Refer to [Hive catalog with s3](../hive-catalog-with-cloud-storage.md) to set up a Hive catalog with s3 storage. To query the data stored in s3, you need to add s3 secret to the Spark configuration using `spark.sql.catalog.${hive_catalog_name}.fs.s3a.access.key` and `spark.sql.catalog.${hive_catalog_name}.fs.s3a.secret.key`. Additionally, download [hadoop aws jar](https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-aws), [aws java sdk jar](https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-bundle) and place them in the classpath of Spark.diff --git a/docs/spark-connector/spark-catalog-iceberg.md b/docs/spark-connector/spark-catalog-iceberg.mdindex 826a11d4bd..7f5ef7bdb2 100644--- a/docs/spark-connector/spark-catalog-iceberg.md+++ b/docs/spark-connector/spark-catalog-iceberg.md@@ -1,10 +1,12 @@----title: "Spark connector Iceberg catalog"-slug: /spark-connector/spark-catalog-iceberg-keyword: spark connector iceberg catalog+title: "Spark Connector: Iceberg Catalog"+slug: "/spark-connector/spark-catalog-iceberg"+keyword: "spark connector iceberg catalog"license: "This software is licensed under the Apache License version 2."---+## Introduction+The Apache Gravitino Spark connector offers the capability to read and write Iceberg tables, with the metadata managed by the Gravitino server.## Preparation@@ -14,7 +16,7 @@ The Apache Gravitino Spark connector offers the capability to read and write Ice## Capabilities-#### Support DML and DDL operations:+### DML and DDL Operations- `CREATE TABLE`@@ -31,7 +33,7 @@ Doesn't support distribution and sort orders.- `TIME TRAVEL QUERY`- `DESCRIBE TABLE`-#### Not supported operations:+### Unsupported Operations- View operations.- Metadata tables, like:@@ -43,7 +45,7 @@ Doesn't support distribution and sort orders.- `ALTER TABLE prod.db.sample CREATE TAG tagName`- AtomicCreateTableAsSelect&AtomicReplaceTableAsSelect-## SQL example+## SQL Example```sql-- Suppose iceberg_a is the Iceberg catalog name managed by Gravitino@@ -100,9 +102,9 @@ SELECT * FROM employee FOR SYSTEM_TIME AS OF '2024-05-27 01:01:00';DESC EXTENDED employee;```-For more details about `CALL`, please refer to the [Spark Procedures description](https://iceberg.apache.org/docs/1.5.2/spark-procedures/#spark-procedures) in Iceberg official document.+For more details about `CALL`, refer to the [Spark Procedures description](https://iceberg.apache.org/docs/1.5.2/spark-procedures/#spark-procedures) in Iceberg official document.-## Catalog properties+## Catalog PropertiesGravitino spark connector will transform below property names which are defined in catalog properties to Spark Iceberg connector configuration.@@ -152,6 +154,6 @@ Please make sure the credential file is accessible by Spark, like using `exportPlease downloading the [Iceberg Azure bundle](https://mvnrepository.com/artifact/org.apache.iceberg/iceberg-azure-bundle) and place it in the classpath of Spark.-### Other storage+### Other Storage-You may need to add custom configurations with the format `spark.sql.catalog.${iceberg_catalog_name}.{configuration_key}`. Additionally, place corresponding jars which implement `FileIO` in the classpath of Spark.+Add custom configurations with the format `spark.sql.catalog.${iceberg_catalog_name}.{configuration_key}`. Additionally, place corresponding jars which implement `FileIO` in the classpath of Spark.diff --git a/docs/spark-connector/spark-catalog-jdbc.md b/docs/spark-connector/spark-catalog-jdbc.mdindex dba50e0f65..18f9fd280f 100644--- a/docs/spark-connector/spark-catalog-jdbc.md+++ b/docs/spark-connector/spark-catalog-jdbc.md@@ -1,10 +1,12 @@----title: "Spark connector JDBC catalog"-slug: /spark-connector/spark-catalog-jdbc-keyword: spark connector jdbc catalog+title: "Spark Connector: JDBC Catalog"+slug: "/spark-connector/spark-catalog-jdbc"+keyword: "spark connector jdbc catalog"license: "This software is licensed under the Apache License version 2."---+## Introduction+The Apache Gravitino Spark connector offers the capability to read JDBC tables, with the metadata managed by the Gravitino server.## Preparation@@ -13,9 +15,9 @@ The Apache Gravitino Spark connector offers the capability to read JDBC tables,## Capabilities-Supports MySQL and PostgreSQL. For OceanBase which is compatible with Mysql Dialects could use Mysql driver and Mysql Dialects as a trackoff way. But for Doris which do not support MySQL Dialects, are not currently supported.+Supports MySQL and PostgreSQL. OceanBase, which is MySQL-compatible, can use the MySQL driver as a workaround. Doris, which does not support MySQL dialects, is not supported.-#### Support DML and DDL operations:+### DML and DDL Operations- `CREATE TABLE`- `DROP TABLE`@@ -27,13 +29,13 @@ Supports MySQL and PostgreSQL. For OceanBase which is compatible with Mysql DialJDBCTable does not support distributed transaction. When writing data to RDBMS, each task is an independent transaction. If some tasks of spark succeed and some tasks fail, dirty data is generated.:::-#### Not supported operations:+### Unsupported Operations- `UPDATE`- `DELETE`- `TRUNCATE`-## SQL example+## SQL Example```sql-- Suppose mysql_a is the mysql catalog name managed by Gravitino@@ -61,7 +63,7 @@ SELECT * FROM employee WHERE date(hire_date) = '2021-01-01';```-## Catalog properties+## Catalog PropertiesGravitino spark connector will transform below property names which are defined in catalog properties to Spark JDBC connector configuration.diff --git a/docs/spark-connector/spark-catalog-paimon.md b/docs/spark-connector/spark-catalog-paimon.mdindex f1f33ffc4a..1b6ed5d48c 100644--- a/docs/spark-connector/spark-catalog-paimon.md+++ b/docs/spark-connector/spark-catalog-paimon.md@@ -1,10 +1,12 @@----title: "Spark connector Paimon catalog"-slug: /spark-connector/spark-catalog-paimon-keyword: spark connector paimon catalog+title: "Spark Connector: Paimon Catalog"+slug: "/spark-connector/spark-catalog-paimon"+keyword: "spark connector paimon catalog"license: "This software is licensed under the Apache License version 2."---+## Introduction+The Apache Gravitino Spark connector offers the capability to read and write Paimon tables, with the metadata managed by the Gravitino server.## Preparation@@ -14,13 +16,13 @@ The Apache Gravitino Spark connector offers the capability to read and write Pai## Capabilities-### Support DDL and DML operations:+### DDL and DML Operations- `CREATE NAMESPACE`- `DROP NAMESPACE`- `LIST NAMESPACE`- `LOAD NAMESPACE`- - It can not return any user-specified configs now, as we only support FilesystemCatalog in spark-connector now.+ - Returning user-specified configs is not supported; the spark-connector currently only supports FilesystemCatalog.- `CREATE TABLE`- Doesn't support distribution and sort orders.- `DROP TABLE`@@ -36,7 +38,7 @@ The Apache Gravitino Spark connector offers the capability to read and write PaiOnly supports Paimon FilesystemCatalog on HDFS now.:::-#### Not supported operations:+#### Unsupported Operations- `ALTER NAMESPACE`- Paimon does not support alter namespace.@@ -48,7 +50,7 @@ Only supports Paimon FilesystemCatalog on HDFS now.- Time Travel- Hive and Jdbc backend, and Object Storage for FilesystemCatalog-## SQL example+## SQL Example```sql-- Suppose paimon_catalog is the Paimon catalog name managed by Gravitino@@ -79,7 +81,7 @@ SHOW PARTITIONS employee;ALTER TABLE employee DROP PARTITION (`name`='Alice');```-## Catalog properties+## Catalog PropertiesGravitino spark connector will transform below property names which are defined in catalog properties to Spark Paimon connector configuration.diff --git a/docs/spark-connector/spark-connector-udf.md b/docs/spark-connector/spark-connector-udf.mdindex a25241616b..e61fb17b58 100644--- a/docs/spark-connector/spark-connector-udf.md+++ b/docs/spark-connector/spark-connector-udf.md@@ -1,7 +1,7 @@----title: "Spark connector - User-defined functions"-slug: /spark-connector/spark-connector-udf-keyword: spark connector UDF user-defined function+title: "Spark Connector: User-Defined Functions"+slug: "/spark-connector/spark-connector-udf"+keyword: "spark connector UDF user-defined function"license: "This software is licensed under the Apache License version 2."---@@ -13,7 +13,7 @@ in the Gravitino function registry. Once a function isinvoke it through standard Spark SQL syntax — no additional `CREATE FUNCTION` statement is needed.:::note-Currently, only **Java implementations** with `RuntimeType.SPARK` are supported in the Spark+Only **Java implementations** with `RuntimeType.SPARK` are supported in the Sparkconnector. SQL and Python implementations registered in Gravitino cannot yet be invokeddirectly from Spark. Support for additional languages is planned for future releases.:::@@ -30,7 +30,7 @@ Before using Gravitino UDFs in Spark, ensure the following:3. The **JAR containing the UDF class** is available on the Spark classpath (e.g. via`--jars` or `spark.jars` configuration).-## Java UDF requirements+## Java UDF RequirementsThe Java class specified in `className` of the function implementation must implement Spark's`org.apache.spark.sql.connector.catalog.functions.UnboundFunction` interface. For details on@@ -44,7 +44,7 @@ Key points:- Only functions with `RuntimeType.SPARK` are visible to the Spark connector; implementationstargeting other runtimes (e.g. `TRINO`) are filtered out.-## Calling functions in Spark SQL+## Call Functions in Spark SQLUse the fully qualified three-part name `catalog.schema.function_name` to call aGravitino-registered function:@@ -59,7 +59,7 @@ FROM my_catalog.my_schema.my_table;```:::tip-You can simplify the syntax by setting the default catalog and schema first:+Simplify the syntax by setting the default catalog and schema first:```sqlUSE my_catalog;@@ -68,7 +68,7 @@ SELECT add_one(42);```:::-## Discovering functions+## Discover FunctionsThe Spark connector only exposes functions that have at least one Java implementation with`RuntimeType.SPARK`. Functions with only non-Spark implementations (e.g. `TRINO`) are notdiff --git a/docs/spark-connector/spark-connector.md b/docs/spark-connector/spark-connector.mdindex d2f62c7a16..b0bbffe247 100644--- a/docs/spark-connector/spark-connector.md+++ b/docs/spark-connector/spark-connector.md@@ -1,7 +1,7 @@----title: "Apache Gravitino Spark connector"-slug: /spark-connector/spark-connector-keyword: spark connector federation query+title: "Spark Connector"+slug: "/spark-connector/spark-connector"+keyword: "spark connector federation query"license: "This software is licensed under the Apache License version 2."---@@ -21,7 +21,7 @@ The Apache Gravitino Spark connector leverages the Spark DataSourceV2 interface* Scala 2.12 or 2.13* JDK 8, 11 or 17-## How to use it+## Usage1. [Build](../how-to-build.md) or download the package ([gravitino-spark-connector-runtime-3.3](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-spark-connector-runtime-3.3), [gravitino-spark-connector-runtime-3.4](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-spark-connector-runtime-3.4), [gravitino-spark-connector-runtime-3.5](https://mvnrepository.com/artifact/org.apache.gravitino/gravitino-spark-connector-runtime-3.5)), and place it to the classpath of Spark.2. Configure the Spark session to use the Gravitino spark connector.@@ -39,7 +39,7 @@ To configure the Gravitino client, use properties prefixed with `spark.sql.gravi**Example:** Setting `spark.sql.gravitino.client.socketTimeoutMs` is equivalent to setting `gravitino.client.socketTimeoutMs` for the Gravitino client.-**Note:** Invalid configuration properties will result in exceptions. Please see [Gravitino Java client configurations](../how-to-use-gravitino-client.md#gravitino-java-client-configuration) for more support client configuration.+**Note:** Invalid configuration properties will result in exceptions. Please see [Gravitino Java client configurations](../how-to-use-gravitino-client.md#java-client-configuration) for more support client configuration.```shell./bin/spark-sql -v \@@ -80,7 +80,7 @@ SELECT hs.name, is.score FROM hive.db.hive_students hs JOIN iceberg_scores is ONThe command `SHOW CATALOGS` will only display the Spark default catalog, named spark_catalog, due to limitations within the Spark catalog manager. It does not list the catalogs present in the metalake. However, after explicitly using the `USE` command with a specific catalog name, that catalog name then becomes visible in the output of `SHOW CATALOGS`.:::-## Datatype mapping+## Datatype MappingGravitino spark connector support the following datatype mapping between Spark and Gravitino.diff --git a/docs/spark-connector/spark-integration-test.md b/docs/spark-connector/spark-integration-test.mdindex 23d0db7d90..1277d8b6b9 100644--- a/docs/spark-connector/spark-integration-test.md+++ b/docs/spark-connector/spark-integration-test.md@@ -1,7 +1,7 @@----title: "Apache Gravitino Spark connector integration test"-slug: /spark-connector/spark-connector-integration-test-keyword: spark connector integration test+title: "Spark Connector Integration Tests"+slug: "/spark-connector/spark-connector-integration-test"+keyword: "spark connector integration test"license: "This software is licensed under the Apache License version 2."---@@ -9,7 +9,7 @@ license: "This software is licensed under the Apache License version 2."There are two types of integration tests in spark connector, normal integration test like `SparkXXCatalogIT`, and the golden file integration test.-## Normal integration test+## Normal Integration TestNormal integration test are mainly used to test the correctness of the metadata, it's enabled in the GitHub CI. You could run tests with specific Spark version like:@@ -17,7 +17,7 @@ Normal integration test are mainly used to test the correctness of the metadata,./gradlew :spark-connector:spark-3.3:test --tests "org.apache.gravitino.spark.connector.integration.test.hive.SparkHiveCatalogIT33.testCreateHiveFormatPartitionTable"```-## Golden file integration test+## Golden File Integration TestGolden file integration test are mainly to test the correctness of the SQL result with massive data, it's disabled in the GitHub CI, you could run tests with following command:@@ -26,7 +26,7 @@ Golden file integration test are mainly to test the correctness of the SQL resul```Please change the Spark version number if you want to test other Spark versions.-If you want to change the test behaviour, please modify `spark-connector/spark-common/src/test/resources/spark-test.conf`.+If you want to change the test behaviour, modify `spark-connector/spark-common/src/test/resources/spark-test.conf`.| Configuration item | Description | Default value | Required | Since Version ||--------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------|----------|------------------|diff --git a/docs/table-maintenance-service/optimizer-cli-reference.md b/docs/table-maintenance-service/optimizer-cli-reference.mdindex 7d5213b38f..855deb34fe 100644--- a/docs/table-maintenance-service/optimizer-cli-reference.md+++ b/docs/table-maintenance-service/optimizer-cli-reference.md@@ -1,16 +1,18 @@---title: "Optimizer CLI Reference"-slug: /table-maintenance-service/optimizer-cli-reference-keyword: table maintenance, optimizer, cli, commands, metrics, statistics-license: This software is licensed under the Apache License version 2.+slug: "/table-maintenance-service/optimizer-cli-reference"+keyword: "table maintenance, optimizer, cli, commands, metrics, statistics"+license: "This software is licensed under the Apache License version 2."---+## Introduction+Use `--help` to list all commands, or `--help --type <command>` for command-specific help.By default, optimizer CLI loads `conf/gravitino-optimizer.conf` from the current workingdirectory. Use `--conf-path` only when you need a custom config file.-## Command quick reference+## Command Quick Reference| Command (`--type`) | Required options | Optional options | Purpose || --- | --- | --- | --- |@@ -22,7 +24,7 @@ directory. Use `--conf-path` only when you need a custom config file.| `list-job-metrics` | `--identifiers` | None | Query stored job metrics || `submit-update-stats-job` | `--identifiers` | `--dry-run`, `--update-mode`, `--updater-options`, `--spark-conf` | Submit built-in Iceberg update stats/metrics Spark jobs |-### Option field meanings+### Option Field Meanings| Option | Meaning | Used by || --- | --- | --- |@@ -44,11 +46,11 @@ Global option:- `--conf-path`: Optional custom config file path. If omitted, CLI uses `conf/gravitino-optimizer.conf`.-## Input format for `local-stats-calculator`+## Input Format for `local-stats-calculator``local-stats-calculator` reads JSON Lines (one JSON object per line).-### Reserved fields+### Reserved Fields- `stats-type`: `table`, `partition`, or `job`- `identifier`: object identifier@@ -57,7 +59,7 @@ Global option:All other fields are treated as metric or statistic values.-### Supported examples by scope+### Supported Examples by ScopeUse JSON Lines (one JSON object per line). The following examples focus on table, partition, andjob scopes with multiple metric/statistic fields:@@ -71,15 +73,15 @@ job scopes with multiple metric/statistic fields:{"stats-type":"job","identifier":"job-1","timestamp":1735689800,"duration_ms":12500,"rewritten_files":18}```-### Identifier rules+### Identifier Rules- Table and partition records: `catalog.schema.table`- If `gravitino.optimizer.gravitinoDefaultCatalog` is set, `schema.table` is also accepted- Job records: parsed as a regular Gravitino `NameIdentifier`-## CLI workflow examples+## CLI Workflow Examples-### Update statistics in batch+### Batch Statistics UpdateCalculate and persist table or partition statistics from JSONL input.@@ -90,7 +92,7 @@ Calculate and persist table or partition statistics from JSONL input.--file-path ./table-stats.jsonl```-### Append metrics in batch+### Batch Metrics AppendCalculate and append table or job metrics from JSONL input.@@ -101,7 +103,7 @@ Calculate and append table or job metrics from JSONL input.--file-path ./table-stats.jsonl```-### Dry-run strategy submission+### Dry-Run Strategy SubmissionPreview recommendations without actually submitting jobs.@@ -114,7 +116,7 @@ Preview recommendations without actually submitting jobs.--limit 10```-### Submit strategy jobs+### Submit Strategy JobsSubmit jobs for identifiers that match the given policy name.@@ -126,7 +128,7 @@ Submit jobs for identifiers that match the given policy name.--limit 10```-### Monitor metrics+### Monitor MetricsEvaluate monitor rules around an action time.@@ -138,7 +140,7 @@ Evaluate monitor rules around an action time.--range-seconds 86400```-You can configure evaluator rules in `gravitino-optimizer.conf`:+Configure evaluator rules in `gravitino-optimizer.conf`:```propertiesgravitino.optimizer.monitor.gravitinoMetricsEvaluator.rules = table:row_count:avg:le,job:duration:latest:le@@ -154,7 +156,7 @@ When metrics are produced by `submit-update-stats-job --update-mode metrics`, meoften `custom-*` (for example `custom-data-file-mse`). Use `list-table-metrics` first andconfigure rules with the exact metric names returned by your environment.-### Submit built-in update stats jobs+### Submit Built-In Update Stats JobsSubmit built-in Iceberg update stats/metrics Spark jobs directly.@@ -177,7 +179,7 @@ Notes:runtime classpath (for example via `spark.jars` in `--spark-conf`).- `--spark-conf` and `--updater-options` are flat JSON maps.-### List table metrics+### List Table MetricsQuery stored metrics at table scope.@@ -196,7 +198,7 @@ For partition scope, provide a partition path JSON array:--partition-path '[{"dt":"2026-01-01"}]'```-### List job metrics+### List Job MetricsQuery stored metrics at job scope.@@ -206,7 +208,7 @@ Query stored metrics at job scope.--identifiers catalog.db.optimizer_job```-## Output guide+## Output Guide- `SUMMARY: ...`: summary for `update-statistics` and `append-metrics`- `DRY-RUN: ...`: recommendation preview without job submission@@ -227,7 +229,7 @@ MetricsResult{scopeType=TABLE, identifier=rest_catalog.db.t1, partitionPath=<tabEvaluationResult{scopeType=TABLE, identifier=rest_catalog.db.t1, partitionPath=<table-or-job-scope>, evaluation=true, evaluatorName=gravitino-metrics-evaluator, actionTimeSeconds=1735689600, rangeSeconds=86400, beforeMetrics={row_count=[MetricSample{timestampSeconds=1735686000, value=120}]}, afterMetrics={row_count=[MetricSample{timestampSeconds=1735689600, value=100}]}}```-## Related docs+## Related- [Table Maintenance Service (Optimizer)](./optimizer.md)- [Optimizer Configuration](./optimizer-configuration.md)diff --git a/docs/table-maintenance-service/optimizer-configuration.md b/docs/table-maintenance-service/optimizer-configuration.mdindex 5ee0ac9d1f..28d3663fa5 100644--- a/docs/table-maintenance-service/optimizer-configuration.md+++ b/docs/table-maintenance-service/optimizer-configuration.md@@ -1,11 +1,11 @@---title: "Optimizer Configuration"-slug: /table-maintenance-service/optimizer-configuration-keyword: table maintenance, optimizer, configuration, job template, spark-license: This software is licensed under the Apache License version 2.+slug: "/table-maintenance-service/optimizer-configuration"+keyword: "table maintenance, optimizer, configuration, job template, spark"+license: "This software is licensed under the Apache License version 2."----## Configuration layers+## Configuration LayersUse these layers together:@@ -15,7 +15,7 @@ Use these layers together:| Job submission `jobConf` | Per job run | `catalog_name`, `table_identifier`, `spark_*`, template-specific args || Optimizer CLI config | CLI commands | `gravitino.optimizer.*` in `conf/gravitino-optimizer.conf` |-## Server-side configuration+## Server-side ConfigurationSet server-level runtime behavior in `gravitino.conf`.@@ -28,7 +28,7 @@ gravitino.jobExecutor.local.sparkHome=/path/to/sparkFor local demo environments, you can reduce `gravitino.job.statusPullIntervalInMs` (for example`10000`) to get faster status updates. Restart Gravitino after changing this value.-## Built-in update stats `jobConf`+## Built-In Update Stats `jobConf`Use `builtin-iceberg-update-stats` with at least these keys:@@ -53,7 +53,7 @@ Use `builtin-iceberg-update-stats` with at least these keys:`warehouse_location` can be empty for local filesystem testing. Set it to your warehouse URIfor HDFS or cloud object storage environments.-## Strategy submission configuration+## Strategy Submission Configuration`submit-strategy-jobs` needs optimizer CLI config. This is a minimal working example:@@ -81,7 +81,7 @@ gravitino.optimizer.jobSubmitterConfig.spark_conf = {"spark.master":"local[2]","`--strategy-name` must be the policy name, for example `iceberg_compaction_default`.-## Local filesystem note+## Local FilesystemIf your environment is local and not HDFS-based, set:@@ -91,14 +91,14 @@ spark.hadoop.fs.defaultFS=file:///Without this, Spark jobs may try `hdfs://localhost:9000` and fail.-## Recommended validation checklist+## Validation Checklist- Job templates exist: `builtin-iceberg-update-stats`, `builtin-iceberg-rewrite-data-files`.- Policies are attached to target tables.- `submit-strategy-jobs` prints `SUBMIT` lines.- Rewrite logs show `Rewritten data files: <N>` where `N > 0` for non-empty tables.-## Related docs+## Related- [Table Maintenance Service (Optimizer)](./optimizer.md)- [Optimizer Extension Guide](./optimizer-extension-guide.md)diff --git a/docs/table-maintenance-service/optimizer-extension-guide.md b/docs/table-maintenance-service/optimizer-extension-guide.mdindex 25d1c0ee58..fbf7aa2fa2 100644--- a/docs/table-maintenance-service/optimizer-extension-guide.md+++ b/docs/table-maintenance-service/optimizer-extension-guide.md@@ -1,13 +1,15 @@---title: "Optimizer Extension Guide"-slug: /table-maintenance-service/extension-guide-keyword: table maintenance, optimizer, extension, provider, ServiceLoader-license: This software is licensed under the Apache License version 2.+slug: "/table-maintenance-service/extension-guide"+keyword: "table maintenance, optimizer, extension, provider, ServiceLoader"+license: "This software is licensed under the Apache License version 2."---+## Introduction+Use this guide when built-in optimizer components do not match your environment and you need custom implementations.-## Extension model+## Extension ModelOptimizer supports three loading patterns:@@ -15,7 +17,7 @@ Optimizer supports three loading patterns:2. Class-name mapping for strategy handlers and job adapters.3. Typed SPI for `StatisticsCalculator` and `MetricsEvaluator`.-## Extension points and config keys+## Extension Points and Config Keys| Area | Interface / type | Config key | Loading mode || --- | --- | --- | --- |@@ -33,7 +35,7 @@ Optimizer supports three loading patterns:| Monitor callbacks | `MonitorCallback` | `gravitino.optimizer.monitor.callbacks` | `Provider` SPI by `name()` (comma-separated) || CLI calculator | `StatisticsCalculator` | CLI `--calculator-name` | Typed SPI (`ServiceLoader<StatisticsCalculator>`) |-## Implement a custom provider+## Implement a Custom ProviderMost extension points use `Provider`:@@ -62,7 +64,7 @@ Requirements:## Register with ServiceLoader-### For `Provider` implementations+### `Provider` ImplementationCreate file:@@ -75,13 +77,13 @@ com.example.optimizer.MyStatisticsProvidercom.example.optimizer.MyJobSubmitter```-### For `StatisticsCalculator`+### `StatisticsCalculator` ImplementationCreate file:`META-INF/services/org.apache.gravitino.maintenance.optimizer.api.updater.StatisticsCalculator`-### For `MetricsEvaluator`+### `MetricsEvaluator` ImplementationCreate file:@@ -105,7 +107,7 @@ Notes:- `jobAdapter.<jobTemplate>.className` must match the target job template name.- `jobSubmitterConfig.*` entries are passed to job submitters as shared runtime options.-## Package and deploy+## Package and Deploy- Build a JAR containing your classes and `META-INF/services` files.- Put the JAR on optimizer runtime classpath, for example `${GRAVITINO_HOME}/optimizer/libs/`.@@ -113,14 +115,14 @@ Notes:If you also extend Gravitino server job execution, see [Manage jobs in Gravitino](../manage-jobs-in-gravitino.md).-## Validation checklist+## Validation Checklist1. `--help` shows no load-time SPI errors.2. Commands using your extension run without `No ... found for provider name` errors.3. Strategy flow can resolve both handler and job adapter mappings.4. Dry-run (`submit-strategy-jobs --dry-run`) prints expected recommendations.-## Related docs+## Related- [Table Maintenance Service (Optimizer)](./optimizer.md)- [Optimizer Configuration](./optimizer-configuration.md)diff --git a/docs/table-maintenance-service/optimizer-quick-start.md b/docs/table-maintenance-service/optimizer-quick-start.mdindex 19ce5f5fc4..cb06483db8 100644--- a/docs/table-maintenance-service/optimizer-quick-start.md+++ b/docs/table-maintenance-service/optimizer-quick-start.md@@ -1,11 +1,11 @@----title: "Optimizer Quick Start and Verification"-slug: /table-maintenance-service/quick-start-keyword: table maintenance, optimizer, quick start, compaction, update stats-license: This software is licensed under the Apache License version 2.+title: "Optimizer Quick Start"+slug: "/table-maintenance-service/quick-start"+keyword: "table maintenance, optimizer, quick start, compaction, update stats"+license: "This software is licensed under the Apache License version 2."----## Before running quick start+## Before Running Quick Start- Prepare a running Gravitino server.- Ensure target metalake exists (examples use `test`).@@ -17,14 +17,14 @@ license: This software is licensed under the Apache License version 2.For full config details, see [Optimizer Configuration](./optimizer-configuration.md).-## Success criteria+## Success Criteria- Update-stats job finishes and table statistics/metrics include `custom-data-file-mse` and`custom-delete-file-number`.- `submit-strategy-jobs` prints `SUBMIT` with a rewrite job ID.- Rewrite job log shows `Rewritten data files: <N>` where `N > 0` for non-empty tables.-## Quick start A: built-in table maintenance workflow+## Quick Start a: Built-in Table Maintenance WorkflowThis workflow uses:@@ -32,7 +32,7 @@ This workflow uses:- Built-in update stats job template: `builtin-iceberg-update-stats`- Built-in rewrite data files job template: `builtin-iceberg-rewrite-data-files`-### 1. Preflight checks+### Step 1: Preflight Checks```bash# Check metalake@@ -49,7 +49,7 @@ Expected names include:If missing, verify `gravitino-jobs` JAR in `auxlib`, then restart Gravitino.-### 2. Prepare demo metadata objects+### Step 2: Prepare Demo Metadata ObjectsCreate a REST Iceberg catalog, schema, and table:@@ -94,7 +94,7 @@ curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \http://localhost:8090/api/metalakes/test/catalogs/rest_catalog/schemas/db/tables```-### 3. Seed demo data (recommended)+### Step 3: Seed Demo Data (Recommended)Use Spark SQL to create enough small files so compaction has visible effect:@@ -110,7 +110,7 @@ ${SPARK_HOME}/bin/spark-sql \SELECT id, concat('name_', CAST(id AS STRING)) FROM range(0, 100000);"```-### 4. Create and attach built-in compaction policy+### Step 4: Create and Attach Built-In Compaction Policy```bash# Create policy@@ -140,7 +140,7 @@ Verify association:curl -sS "http://localhost:8090/api/metalakes/test/objects/table/rest_catalog.db.t1/policies?details=true" | jq```-### 5. Submit built-in update stats job+### Step 5: Submit Built-In Update Stats Job```bashupdate_stats_job_id=$(curl -sS -X POST -H "Accept: application/vnd.gravitino.v1+json" \@@ -168,7 +168,7 @@ update_stats_job_id=$(curl -sS -X POST -H "Accept: application/vnd.gravitino.v1+echo "update-stats job id: ${update_stats_job_id}"```-### 6. Trigger rewrite submission with `submit-strategy-jobs`+### Step 6: Trigger Rewrite Submission with `submit-strategy-jobs````bash# Required optimizer CLI config for strategy submission.@@ -218,7 +218,7 @@ strategy_job_id=$(echo "${submit_output}" | sed -n 's/.*jobId=\([^[:space:]]*\).echo "strategy rewrite job id: ${strategy_job_id}"```-### 7. Track status and verify results+### Step 7: Track Status and Verify Results```bash# Check job status by id@@ -238,7 +238,7 @@ grep -E "Rewritten data files|Added data files|completed successfully" \By default, Gravitino pulls job status every `300000` ms (`gravitino.job.statusPullIntervalInMs`).REST status may lag real Spark process state by up to about 5 minutes.-## Next read+## Related- [Optimizer Configuration](./optimizer-configuration.md)- [Optimizer CLI Reference](./optimizer-cli-reference.md)diff --git a/docs/table-maintenance-service/optimizer-troubleshooting.md b/docs/table-maintenance-service/optimizer-troubleshooting.mdindex 7901e69d71..13332336b6 100644--- a/docs/table-maintenance-service/optimizer-troubleshooting.md+++ b/docs/table-maintenance-service/optimizer-troubleshooting.md@@ -1,8 +1,8 @@---title: "Optimizer Troubleshooting"-slug: /table-maintenance-service/troubleshooting-keyword: table maintenance, optimizer, troubleshooting, spark, strategy-license: This software is licensed under the Apache License version 2.+slug: "/table-maintenance-service/troubleshooting"+keyword: "table maintenance, optimizer, troubleshooting, spark, strategy"+license: "This software is licensed under the Apache License version 2."---## `Invalid --type`@@ -25,7 +25,7 @@ Use a JSON array format, for example:[{"dt":"2026-01-01"}]```-## Job status appears stale (`queued` or `started` for a long time)+## Job Status Appears Stale (`queued` or `started` for a Long Time)Check `gravitino.job.statusPullIntervalInMs` and local staging logs under:@@ -38,13 +38,13 @@ restart Gravitino so REST status can refresh faster.`--strategy-name` must be the policy name (for example `iceberg_compaction_default`), not the policy type (`system_iceberg_compaction`) and not the strategy type (`iceberg-data-compaction`).-## Dry-run returns no `DRY-RUN` or `SUBMIT` lines+## Dry-Run Returns No `DRY-RUN` or `SUBMIT` LinesThis usually means trigger conditions are not met. For compaction, verify`custom-data-file-mse` and `custom-delete-file-number` in table statistics/metrics are largeenough to satisfy policy rules.-## `monitor-metrics` returns `evaluation=false` unexpectedly+## `monitor-metrics` Returns `evaluation=false` UnexpectedlyCheck both rule names and metric samples:@@ -63,7 +63,7 @@ gravitino.optimizer.strategyHandler.iceberg-data-compaction.className = org.apacIf you already use the packaged default optimizer config, this mapping may already exist.-## Spark job fails with `hdfs://localhost:9000` or filesystem errors+## Spark Job Fails with `hdfs://localhost:9000` or Filesystem ErrorsSet local filesystem explicitly in Spark config:@@ -71,7 +71,7 @@ Set local filesystem explicitly in Spark config:spark.hadoop.fs.defaultFS=file:///```-## Rewrite fails on multi-level partition (`identity + day(...)`)+## Rewrite Fails on Multi-level Partition (`identity + day(...)`)In release `1.2.0`, rewrite may fail for partition filters combining identity and day transform(for example `PARTITIONED BY (p, days(ts))`) with error:@@ -98,7 +98,7 @@ Observed compatibility matrix in release `1.2.0` (rewrite path):- FAIL: `p, years(ts)`, `p, months(ts)`, `p, days(ts)`, `p, hours(ts)`,`p, truncate(1, c2)`, `p, bucket(8, id)`-## `submit-update-stats-job` fails with JDBC metrics errors+## `submit-update-stats-job` Fails with JDBC Metrics ErrorsWhen `--updater-options` includes `gravitino.optimizer.jdbcMetrics.*`, ensure the JDBC driver isavailable to Spark runtime classpath. Typical failures include `ClassNotFoundException` for driver@@ -116,7 +116,7 @@ Example in `--spark-conf`:Check your `--conf-path` and file permissions.-## Related docs+## Related- [Table Maintenance Service (Optimizer)](./optimizer.md)- [Optimizer Configuration](./optimizer-configuration.md)diff --git a/docs/table-maintenance-service/optimizer.md b/docs/table-maintenance-service/optimizer.mdindex d7c6cda38f..08566001c4 100644--- a/docs/table-maintenance-service/optimizer.md+++ b/docs/table-maintenance-service/optimizer.md@@ -1,11 +1,11 @@---title: "Table Maintenance Service (Optimizer)"-slug: /table-maintenance-service/optimizer-keyword: table maintenance, optimizer, statistics, metrics, monitor-license: This software is licensed under the Apache License version 2.+slug: "/table-maintenance-service/optimizer"+keyword: "table maintenance, optimizer, statistics, metrics, monitor"+license: "This software is licensed under the Apache License version 2."----## What is this service+## OverviewThe Table Maintenance Service (Optimizer) automates table maintenance by connecting:@@ -15,17 +15,17 @@ The Table Maintenance Service (Optimizer) automates table maintenance by connectThe CLI commands and configuration keys use the `optimizer` name.-## Alpha status and current limitations+## Alpha Status and Limitations-The current Table Maintenance Service is in **alpha** stage.+The Table Maintenance Service is in **alpha** stage.-Current limitations:+Limitations:- It is operated through the optimizer CLI workflow.- The built-in maintenance strategy focuses on Iceberg table compaction.-- Compaction support is currently limited to Iceberg tables with identity partition transforms.+- Compaction support is limited to Iceberg tables with identity partition transforms.-## Extensibility and roadmap+## Extensibility and RoadmapAlthough the built-in capability is intentionally narrow in alpha, the framework is designed forextension:@@ -39,7 +39,7 @@ See [Optimizer Extension Guide](./optimizer-extension-guide.md) for extension poFuture versions will continue improving the out-of-the-box experience and evolve toward a moreready-to-use maintenance service.-## Architecture overview+## Architecture OverviewThe optimizer workflow is based on six parts:@@ -62,7 +62,7 @@ Typical data flow:3. Submit jobs using a concrete template and `jobConf`.4. Track status and verify results on table metadata and logs.-## Execution modes+## Execution Modes| Mode | Main entry | Best for | Output || --- | --- | --- | --- |@@ -72,7 +72,7 @@ Typical data flow:Use built-in maintenance workflow when you want policy-driven server execution.Use CLI local calculator when you want to feed JSONL input directly.-## Start here+## Start Here- Configuration first: read [Optimizer Configuration](./optimizer-configuration.md).- Need custom integrations: read [Optimizer Extension Guide](./optimizer-extension-guide.md).@@ -82,23 +82,23 @@ Use CLI local calculator when you want to feed JSONL input directly.## Lifecycle-### 1. Collect+### Step 1: CollectGenerate or ingest table and partition statistics/metrics.-### 2. Evaluate+### Step 2: EvaluateApply policies and rules to decide whether maintenance should run.-### 3. Submit+### Step 3: SubmitPick a job template and submit job with concrete `jobConf`.-### 4. Observe+### Step 4: ObserveCheck REST job status and validate resulting statistics, metrics, or rewritten data files.-## Configuration model+## Configuration Model| Layer | Scope | Typical keys || --- | --- | --- |@@ -106,7 +106,7 @@ Check REST job status and validate resulting statistics, metrics, or rewritten d| Job submission `jobConf` | Per job run | `catalog_name`, `table_identifier`, `spark_*`, template-specific args || Optimizer CLI config | CLI commands | `gravitino.optimizer.*` in `conf/gravitino-optimizer.conf` |-## Terminology mapping+## Terminology Mapping| Term | Example value | Used in || --- | --- | --- |@@ -116,12 +116,12 @@ Check REST job status and validate resulting statistics, metrics, or rewritten dFor strategy submission, `--strategy-name` must use policy name, not policy type or strategy type.-## Prerequisites and verification+## Prerequisites and VerificationQuick start prerequisites and success checks are documented in[Optimizer Quick Start and Verification](./optimizer-quick-start.md).-## Related docs+## Related- [Optimizer Configuration](./optimizer-configuration.md)- [Optimizer Extension Guide](./optimizer-extension-guide.md)diff --git a/docs/table-partitioning-distribution-sort-order-indexes.md b/docs/table-partitioning-distribution-sort-order-indexes.mdindex 10d4c211c7..06688cf464 100644--- a/docs/table-partitioning-distribution-sort-order-indexes.md+++ b/docs/table-partitioning-distribution-sort-order-indexes.md@@ -1,9 +1,9 @@----title: "Table partitioning, distribution and sort ordering and indexes"-slug: /table-partitioning-distribution-sort-order-indexes+title: "Table Structure"+slug: "/table-partitioning-distribution-sort-order-indexes"date: 2023-12-25-keyword: Table Partition Bucket Distribute Sort By-license: This software is licensed under the Apache License version 2.+keyword: "Table Partition Bucket Distribute Sort By"+license: "This software is licensed under the Apache License version 2."last_update:date: 2024-02-02author: Clearvive@@ -12,11 +12,15 @@ last_update:import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';-## Table partitioning+## Introduction-To create a partitioned table, you should provide the following two components to construct a valid partitioned table.+Tables in Gravitino have four configurable structural properties that affect how data is laid out and accessed: partitioning, distribution, sort ordering, and indexing. The sections below cover the syntax for each and how compute engines use them at query time.-- Partitioning strategy. It defines how Gravitino distributes table data across partitions. Currently, Gravitino supports the following partitioning strategies.+## Table Partitioning++To create a partitioned table, you should provide the following two components to construct a valid partitioned table:++- Partitioning strategy. It defines how Gravitino distributes table data across partitions. Gravitino supports the following partitioning strategies.:::noteThe `score`, `createTime`, and `city` appearing in the table below refer to the field names in a table.@@ -45,9 +49,9 @@ For function partitioning, you should provide the function name and the functionOnce a partitioned table is created, you can [manage its partitions using Gravitino](./manage-table-partition-using-gravitino.md).-## Table distribution+## Table Distribution-To create a distribution(bucketed) table, you should use the following three components to construct a valid bucketed table.+To create a distribution(bucketed) table, you should use the following three components to construct a valid bucketed table:- Strategy. It defines how Gravitino distributes table data across partitions.@@ -55,13 +59,13 @@ To create a distribution(bucketed) table, you should use the following three com|-----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|------------------|| hash | Distribution table using hash. Gravitino distributes table data into buckets based on the hash value of the key. | `hash` | `Strategy.HASH` || range | Distribution table using range. Gravitino distributes table data into buckets based on a specified range or interval of values. | `range` | `Strategy.RANGE` |-| even | Distribution table using even. Gravitino distributes table data, ensuring an equal distribution of data. Currently we use `even` to implementation Doris `random` distribution | `even` | `Strategy.EVEN` |+| even | Distributes table data evenly across partitions. `even` implements Doris's `random` distribution. | `even` | `Strategy.EVEN` |- number. It defines how many buckets you use to distribution the table.- funcArgs. It defines the arguments of the strategy, the argument must be an [expression](./expression.md).<Tabs groupId='language' queryString>-<TabItem value="Json" label="Json">+<TabItem value="Json" label="JSON">```json{@@ -90,9 +94,9 @@ Distributions.auto(Strategy.HASH, NamedReference.field("score"));</Tabs>-## Sort ordering+## Sort Ordering-To define a sorted order table, you should use the following three components to construct a valid sorted order table.+To define a sorted order table, you should use the following three components to construct a valid sorted order table:- Direction. It defines in which direction Gravitino sorts the table. The default value is `ascending`.@@ -113,7 +117,7 @@ Note: If the direction value is `ascending`, the default ordering value is `null- sortTerm. It shows which field or function Gravitino uses to sort the table, must be an [expression](./expression.md).<Tabs groupId='language' queryString>-<TabItem value="Json" label="Json">+<TabItem value="Json" label="JSON">```json{@@ -138,7 +142,7 @@ SortOrders.of(NamedReference.field("score"), SortDirection.ASCENDING, NullOrderi:::tip-**Not all catalogs may support those features**. Please refer to the related document for more details.+**Not all catalogs may support those features**. Refer to the related document for more details.:::The following is an example of creating a partitioned, bucketed table, and sorted order table:@@ -241,7 +245,7 @@ tableCatalog.createTable(## Indexes-To define an indexed table, you should utilize the following three components to construct a valid indexed table.+To define an indexed table, you should utilize the following three components to construct a valid indexed table:- IndexType. Represents the type of index, such as primary key or unique key.@@ -255,7 +259,7 @@ To define an indexed table, you should utilize the following three components to- FieldNames. It defines which table fields Gravitino uses to index the table.<Tabs groupId='language' queryString>-<TabItem value="Json" label="Json">+<TabItem value="Json" label="JSON">```json{diff --git a/docs/trino-connector/authentication.md b/docs/trino-connector/authentication.mdindex c4f0a77c26..c317486971 100644--- a/docs/trino-connector/authentication.md+++ b/docs/trino-connector/authentication.md@@ -1,11 +1,11 @@----title: "Apache Gravitino Trino connector Authentication"-slug: /trino-connector/authentication-keyword: gravitino connector trino authentication+title: "Trino Connector Authentication"+slug: "/trino-connector/authentication"+keyword: "gravitino connector trino authentication"license: "This software is licensed under the Apache License version 2."----## Authentication+## IntroductionThe Gravitino Trino connector supports authenticating to the Gravitino server using the same authentication mechanisms as the Gravitino Java client: Simple, OAuth2, and Kerberos. Authentication is configured through the Trino connector properties file using the `gravitino.client.*` prefix.@@ -89,7 +89,7 @@ gravitino.client.kerberos.keytabFilePath=/path/to/user.keytab| `gravitino.client.kerberos.keytabFilePath` | Path to keytab file | (none) | No (uses ticket cache if not specified) | 1.3.0 |-### Example: Connecting to OAuth-protected Gravitino Server+### Example: Connecting to OAuth-Protected Gravitino ServerThis example shows how to configure the Trino connector to connect to a Gravitino server protected by OAuth authentication.diff --git a/docs/trino-connector/catalog-hive.md b/docs/trino-connector/catalog-hive.mdindex 3836c5782c..9f0e9e1105 100644--- a/docs/trino-connector/catalog-hive.md+++ b/docs/trino-connector/catalog-hive.md@@ -1,10 +1,12 @@----title: "Apache Gravitino Trino connector - Hive catalog"-slug: /trino-connector/catalog-hive-keyword: gravitino connector trino+title: "Trino Connector: Hive Catalog"+slug: "/trino-connector/catalog-hive"+keyword: "gravitino connector trino"license: "This software is licensed under the Apache License version 2."---+## Introduction+The Hive catalog allows Trino querying data stored in an Apache Hive data warehouse.## Requirements@@ -35,9 +37,9 @@ per catalog:- TEXTFILE-## Schema operations+## Schema Operations-### Create a schema+### Create a SchemaUsers can create a schema with properties through Apache Gravitino Trino connector as follows:@@ -45,11 +47,11 @@ Users can create a schema with properties through Apache Gravitino Trino connectCREATE SCHEMA catalog.schema_name```-## Table operations+## Table Operations-### Create table+### Create Table-The Gravitino Trino connector currently supports basic Hive table creation statements, such as defining fields,+The Gravitino Trino connector supports basic Hive table creation statements, such as defining fields,allowing null values, and adding comments. The Gravitino Trino connector supports `CREATE TABLE AS SELECT`.:::note@@ -67,7 +69,7 @@ CREATE TABLE catalog.schema_name.table_name```-### Alter table+### Alter TableSupport for the following alter table operations:@@ -81,7 +83,7 @@ Support for the following alter table operations:### SelectThe Gravitino Trino connector supports most SELECT statements, allowing the execution of queries successfully.-Currently, it doesn't support certain query optimizations, such as pushdown and pruning functionalities.+It doesn't support certain query optimizations, such as pushdown and pruning functionalities.### Update@@ -98,13 +100,13 @@ Transactional Hive tables with ORC format support "row-by-row" deletion, in whicSee also [more limitation](https://trino.io/docs/current/connector/hive.html#data-management).-## Schema and table properties+## Schema and Table Properties-You can set additional properties for tables and schemas in the Hive catalog using "WITH" keyword in the "CREATE"+Set additional properties for tables and schemas in the Hive catalog using "WITH" keyword in the "CREATE"statement.-### Create a schema with properties+### Create a Schema with PropertiesUsers can use the following example to create a schema with properties:@@ -124,7 +126,7 @@ The following tables are the properties supported by the Hive schema:Reserved properties: A reserved property is one can't be set by users but can be read by users.-### Create a table with properties+### Create a Table with PropertiesUsers can use the following example to create a table with properties:@@ -164,9 +166,9 @@ The following properties are automatically added and managed as reserved propert| external | Indicate whether it's an external table | 0.2.0 || table_type | The type of Hive table | 0.2.0 |-## Basic usage examples+## Examples-You need to do the following steps before you can use the Hive catalog in Trino through Gravitino.+Complete the following steps before you can use the Hive catalog in Trino through Gravitino:- Create a metalake and catalog in Gravitino. Assuming that the metalake name is `test` and the catalog name is `hive_test`,then you can use the following code to create them in Gravitino:@@ -192,7 +194,7 @@ curl -X POST \}' http://gravitino-host:8090/api/metalakes/test/catalogs```-For More information about the Hive catalog, please refer to [Hive catalog](../apache-hive-catalog.md).+For More information about the Hive catalog, refer to [Hive catalog](../apache-hive-catalog.md).- Set the value of configuration `gravitino.metalake` to the metalake you have created, named 'test', and start the Trino container.@@ -222,7 +224,7 @@ The `gravitino` catalog is a catalog defined By Trino catalog configuration.The `hive_test` catalog is the catalog created by you in Gravitino.Other catalogs are regular user-configured Trino catalogs.-### Creating tables and schemas+### Create Tables and SchemasCreate a new schema named `database_01` in `hive_test` catalog.@@ -256,7 +258,7 @@ WITH ();```-### Writing data+### Write DataInsert data into the table `table_01`:@@ -317,7 +319,7 @@ MERGE INTO hive_test.database_01.test_acid t USING hive_test.database_01.table_0VALUES (3, s.name, s.salary);```-### Querying data+### Query DataQuery the `table_01` table:@@ -325,7 +327,7 @@ Query the `table_01` table:SELECT * FROM hive_test.database_01.table_01;```-### Modify a table+### Modify a TableAdd a new column `age` to the `table_01` table:@@ -359,7 +361,7 @@ Drop a table:DROP TABLE hive_test.database_01.table_01;```-## HDFS config and permissions+## HDFS Config and PermissionsFor basic setups, the Apache Gravitino Trino connector configures the HDFS clientusing catalog configurations. It supports configuring the HDFS client with `hdfs-site.xml`@@ -367,7 +369,7 @@ and `core-site.xml` files via the `trino.bypass.hive.config.resources` setting iBefore running any `Insert` statements for Hive tables in Trino,you must check that the user Trino is using to access HDFS has access to the Hive warehouse directory.-You can override this username by setting the HADOOP_USER_NAME system property in the Trino JVM config,+Override this username by setting the HADOOP_USER_NAME system property in the Trino JVM config,replacing hdfs_user with the appropriate username:```text@@ -377,7 +379,7 @@ replacing hdfs_user with the appropriate username:## S3When using AWS S3 within the Hive catalog, users need to configure the Trino Hive connector's-AWS S3-related properties in the catalog's properteis. Please refer to the documentation+AWS S3-related properties in the catalog's properties. Refer to the documentationof [Hive connector with Amazon S3](https://trino.io/docs/current/connector/hive-s3.html).To create a Hive catalog with AWS S3 configuration in the Trino CLI, use the following command:diff --git a/docs/trino-connector/catalog-iceberg.md b/docs/trino-connector/catalog-iceberg.mdindex df74e8b737..1af5f2ffab 100644--- a/docs/trino-connector/catalog-iceberg.md+++ b/docs/trino-connector/catalog-iceberg.md@@ -1,10 +1,12 @@----title: "Apache Gravitino Trino connector - Iceberg catalog"-slug: /trino-connector/catalog-iceberg-keyword: gravitino connector trino+title: "Trino Connector: Iceberg Catalog"+slug: "/trino-connector/catalog-iceberg"+keyword: "gravitino connector trino"license: "This software is licensed under the Apache License version 2."---+## Introduction+Apache Iceberg is an open table format for huge analytic datasets.The Iceberg catalog allows Trino querying data stored in files written in Iceberg format,as defined in the Iceberg Table Spec. The catalog supports Apache Iceberg table spec versions 1 and 2.@@ -18,9 +20,9 @@ To use Iceberg, you need:- ORC- Parquet (default)-## Schema operations+## Schema Operations-### Create a schema+### Create a SchemaUsers can create a schema through Apache Gravitino Trino connector as follows:@@ -28,11 +30,11 @@ Users can create a schema through Apache Gravitino Trino connector as follows:CREATE SCHEMA catalog.schema_name```-## Table operations+## Table Operations-### Create table+### Create Table-The Apache Gravitino Trino connector currently supports basic Iceberg table creation statements, such as defining fields,+The Apache Gravitino Trino connector supports basic Iceberg table creation statements, such as defining fields,allowing null values, and adding comments. The Apache Gravitino Trino connector supports `CREATE TABLE AS SELECT`.:::note@@ -52,7 +54,7 @@ CREATE TABLE catalog.schema_name.table_name)```-### Alter table+### Alter TableSupport for the following alter table operations:- Rename table@@ -65,7 +67,7 @@ Support for the following alter table operations:### SelectThe Apache Gravitino Trino connector supports most SELECT statements, allowing the execution of queries successfully.-Currently, it doesn't support certain query optimizations, such as pushdown and pruning functionalities.+It doesn't support certain query optimizations, such as pushdown and pruning functionalities.### Update@@ -80,7 +82,7 @@ See also [Delete limitation](https://trino.io/docs/current/connector/iceberg.htm`MERGE` is only supported for table using v2 or higher of the Iceberg specification.-### Table procedures+### Table ProceduresThe Apache Gravitino Trino connector delegates Iceberg table maintenance proceduresto the underlying Iceberg connector, so they can be invoked via@@ -122,13 +124,13 @@ ALTER TABLE iceberg_test.database_01.table_01 EXECUTE rewrite_manifests;For the full list of parameters accepted by each procedure, see the[Trino Iceberg connector documentation](https://trino.io/docs/current/connector/iceberg.html#alter-table-execute).-## Table and Schema properties+## Table and Schema Properties-### Create a schema with properties+### Create a Schema with PropertiesIceberg schema does not support properties.-### Create a table with properties+### Create a Table with PropertiesUsers can use the following example to create a table with properties:@@ -152,9 +154,9 @@ The following tables are the properties supported by the Iceberg table:Reserved properties: A reserved property is one can't be set by users but can be read by users.-## Basic usage examples+## Examples-You need to do the following steps before you can use the Iceberg catalog in Trino through Apache Gravitino.+Complete the following steps before you can use the Iceberg catalog in Trino through Apache Gravitino:- Create a metalake and catalog in Apache Gravitino. Assuming that the metalake name is `test` and the catalog name is `iceberg_test`,then you can use the following code to create them in Apache Gravitino:@@ -181,7 +183,7 @@ curl -X POST -H "Content-Type: application/json" \}' http://gravitino-host:8090/api/metalakes/test/catalogs```-For More information about the Iceberg catalog, please refer to [Iceberg catalog](../lakehouse-iceberg-catalog.md).+For More information about the Iceberg catalog, refer to [Iceberg catalog](../lakehouse-iceberg-catalog.md).- Set the value of configuration `gravitino.metalake` to the metalake you have created, named 'test', and start the Trino container.@@ -211,7 +213,7 @@ The `gravitino` catalog is a catalog defined By Trino catalog configuration.The `iceberg_test` catalog is the catalog created by you in Apache Gravitino.Other catalogs are regular user-configured Trino catalogs.-### Creating tables and schemas+### Create Tables and SchemasCreate a new schema named `database_01` in `test.iceberg_test` catalog.@@ -232,7 +234,7 @@ salary int);```-### Writing data+### Write DataInsert data into the table `table_01`:@@ -273,7 +275,7 @@ MERGE INTO iceberg_test.database_01.table_01 t USING iceberg_test.database_01.taVALUES (s.name, s.salary);```-### Querying data+### Query DataQuery the `table_01` table:@@ -281,7 +283,7 @@ Query the `table_01` table:SELECT * FROM iceberg_test.database_01.table_01;```-### Modify a table+### Modify a TableAdd a new column `age` to the `table_01` table:@@ -315,11 +317,11 @@ Drop a table:DROP TABLE iceberg_test.database_01.table_01;```-## HDFS username and permissions+## HDFS Username and PermissionsBefore running any `Insert` statements for Iceberg tables in Trino,you must check that the user Trino is using to access HDFS has access to the warehouse directory.-You can override this username by setting the HADOOP_USER_NAME system property in the Trino JVM config,+Override this username by setting the HADOOP_USER_NAME system property in the Trino JVM config,replacing hdfs_user with the appropriate username:```text@@ -329,7 +331,7 @@ replacing hdfs_user with the appropriate username:## S3When using AWS S3 within the Iceberg catalog, users need to configure the Trino Iceberg connector's-AWS S3-related properties in the catalog's properties. Please refer to the documentation+AWS S3-related properties in the catalog's properties. Refer to the documentationof [Hive connector with Amazon S3](https://trino.io/docs/current/connector/hive-s3.html).These configurations must use the `trino.bypass.` prefix in the Iceberg catalog's attributes to be effective.@@ -354,7 +356,7 @@ call gravitino.system.create_catalog(- The configurations of `trino.bypass.hive.s3.aws-access-key`, `trino.bypass.hive.s3.aws-secret-key`, `trino.bypass.hive.s3.region`are the required the configurations for the Apache Gravitino Trino connector.- The configurations of `s3-access-key-id`, `s3-secret-access-key`, `io-impl` and `s3-region`.-are the required the configurations for the [Apache Gravitino Iceberg catalog](../lakehouse-iceberg-catalog.md#S3).+are the required the configurations for the [Apache Gravitino Iceberg catalog](../lakehouse-iceberg-catalog.md#s3).- The `location` specifies the storage path on AWS S3. Ensure that the specified directory exists on AWS S3 before proceeding.Once the Iceberg catalog is successfully created, users can create schemas and tables as follows:@@ -372,5 +374,5 @@ After running the command, the tables are ready for data reading and writing ope:::noteTThe Iceberg catalog module in the Apache Gravitino server should add AWS S3 support.-Please refer to [Apache Gravitino Iceberg catalog](../lakehouse-iceberg-catalog.md#S3).+Refer to [Apache Gravitino Iceberg catalog](../lakehouse-iceberg-catalog.md#s3).:::diff --git a/docs/trino-connector/catalog-mysql.md b/docs/trino-connector/catalog-mysql.mdindex df56da9369..97b9930483 100644--- a/docs/trino-connector/catalog-mysql.md+++ b/docs/trino-connector/catalog-mysql.md@@ -1,12 +1,14 @@----title: "Apache Gravitino Trino connector - MySQL catalog"-slug: /trino-connector/catalog-mysql-keyword: gravitino connector trino+title: "Trino Connector: MySQL Catalog"+slug: "/trino-connector/catalog-mysql"+keyword: "gravitino connector trino"license: "This software is licensed under the Apache License version 2."---+## Introduction+The MySQL catalog allows querying and creating tables in an external MySQL instance.-You can join data between different systems like MySQL and Hive, or between two different MySQL instances by this.+Join data between different systems like MySQL and Hive, or between two different MySQL instances by this.## Requirements@@ -14,7 +16,7 @@ To connect to MySQL, you need:- MySQL 5.7, 8.0 or higher.- Network access from the Trino coordinator and workers to MySQL. Port 3306 is the default port.-## Create table+## Create TableAt present, the Apache Gravitino Trino connector only supports basic MySQL table creation statements, which involve fields, null allowances, comments, primary keys, indexes, default values and auto-increment.The Gravitino Trino connector supports `CREATE TABLE AS SELECT`.@@ -23,7 +25,7 @@ The Gravitino Trino connector supports `CREATE TABLE AS SELECT`.`CREATE OR REPLACE TABLE AS SELECT` is not supported. Use `DROP TABLE` followed by `CREATE TABLE AS SELECT` as an alternative.:::-## Alter table+## Alter TableSupport for the following alter table operations:- Rename table@@ -35,7 +37,7 @@ Support for the following alter table operations:## SelectThe Gravitino Trino connector supports most SELECT statements, allowing the execution of queries successfully.-Currently, it doesn't support certain query optimizations, such as indexes and pushdowns.+It doesn't support certain query optimizations, such as indexes and pushdowns.## Update@@ -49,7 +51,7 @@ If the `WHERE` clause is specified, only the matching rows are deleted. OtherwisNot support.-## Table and Schema properties+## Table and Schema PropertiesMySQL's schemas cannot support properties.@@ -69,8 +71,7 @@ The following are supported MySQL column properties:| auto_increment | boolean | false | The auto increment column. | No | 1.0.0 || default | string | (none) | The default value for column. | No | 1.0.0 |-**Note:** Currently, creating tables only supports constant default values and does not support expression default values,-and `show create table` also exclusively renders constant default values in its output.+**Note:** Creating tables supports constant default values only. Expression default values are not supported. `SHOW CREATE TABLE` also renders only constant default values.The following are Trino type which support configuration of default values:| Type name | Default Value example |@@ -88,9 +89,9 @@ The following are Trino type which support configuration of default values:| TIME | 01:01:01 || TIMESTAMP | 2025-08-07 01:01:01 (CURRENT_TIMESTAMP) |-## Basic usage examples+## Examples-You need to do the following steps before you can use the MySQL catalog in Trino through Gravitino.+Complete the following steps before you can use the MySQL catalog in Trino through Gravitino:- Create a metalake and catalog in Gravitino. Assuming that the metalake name is `test` and the catalog name is `mysql_test`,then you can use the following code to create them in Gravitino:@@ -118,7 +119,7 @@ curl -X POST -H "Content-Type: application/json" \}' http://gravitino-host:8090/api/metalakes/test/catalogs```-For More information about the MySQL catalog, please refer to [MySQL catalog](../jdbc-mysql-catalog.md).+For More information about the MySQL catalog, refer to [MySQL catalog](../jdbc-mysql-catalog.md).- Set the value of configuration `gravitino.metalake` to the metalake you have created, named 'test', and start the Trino container.@@ -148,7 +149,7 @@ The `gravitino` catalog is a catalog defined By Trino catalog configuration.The `mysql_test` catalog is the catalog created by you in Gravitino.Other catalogs are regular user-configured Trino catalogs.-### Creating tables and schemas+### Create Tables and SchemasCreate a new schema named `database_01` in `test.mysql_test` catalog.@@ -211,7 +212,7 @@ WITH ();```-### Writing data+### Write DataInsert data into the table `table_01`:@@ -238,7 +239,7 @@ DELETE FROM mysql_test.database_01.table_01 WHERE salary = 12;DELETE FROM mysql_test.database_01.table_01;```-### Querying data+### Query DataQuery the `table_01` table:@@ -246,7 +247,7 @@ Query the `table_01` table:SELECT * FROM mysql_test.database_01.table_01;```-### Modify a table+### Modify a TableAdd a new column `age` to the `table_01` table:diff --git a/docs/trino-connector/catalog-postgresql.md b/docs/trino-connector/catalog-postgresql.mdindex a9c70c52c4..17c5841b59 100644--- a/docs/trino-connector/catalog-postgresql.md+++ b/docs/trino-connector/catalog-postgresql.md@@ -1,10 +1,12 @@----title: "Apache Gravitino Trino connector - PostgreSQL catalog"-slug: /trino-connector/catalog-postgresql-keyword: gravitino connector trino+title: "Trino Connector: PostgreSQL Catalog"+slug: "/trino-connector/catalog-postgresql"+keyword: "gravitino connector trino"license: "This software is licensed under the Apache License version 2."---+## Introduction+The PostgreSQL catalog allows querying and creating tables in an external PostgreSQL database.This can be used to join data between different systems like PostgreSQL and Hive, or between different PostgreSQL instances.@@ -14,7 +16,7 @@ To connect to PostgreSQL, you need:- PostgreSQL 10.x or higher.- Network access from the Trino coordinator and workers to PostgreSQL. Port 5432 is the default port.-## Case sensitivity+## Case SensitivityPostgreSQL treats unquoted identifiers as case insensitive.For example, the table name MyTable is equivalent to mytable and MYTABLE.@@ -24,7 +26,7 @@ However, if you create a table with quoted identifiers, such as "MyTable", it beWhen using the Gravitino Trino connector with PostgreSQL, you must use unquoted identifiers to avoid case sensitivity issues.Otherwise, schema names, table names or column names containing uppercase letters may not be found.-## Create table+## Create TableAt present, the Apache Gravitino Trino connector only supports basic PostgreSQL table creation statements, which involve fields, null allowances, and comments. However, it does not support advanced features like primary keys, indexes, default values, and auto-increment.The Gravitino Trino connector supports `CREATE TABLE AS SELECT`.@@ -33,7 +35,7 @@ The Gravitino Trino connector supports `CREATE TABLE AS SELECT`.`CREATE OR REPLACE TABLE AS SELECT` is not supported. Use `DROP TABLE` followed by `CREATE TABLE AS SELECT` as an alternative.:::-## Alter table+## Alter TableGravitino Trino connector supports the following alter table operations:- Rename table@@ -46,7 +48,7 @@ Gravitino Trino connector supports the following alter table operations:## SelectThe Gravitino Trino connector supports most SELECT statements, allowing the execution of queries successfully.-Currently, it doesn't support certain query optimizations, such as indexes and pushdowns.+It doesn't support certain query optimizations, such as indexes and pushdowns.## Update@@ -60,13 +62,13 @@ If the `WHERE` clause is specified, only the matching rows are deleted. OtherwisNot support.-## Table and Schema properties+## Table and Schema PropertiesPostgreSQL's tables and schemas cannot support properties.-## Basic usage examples+## Examples-You need to do the following steps before you can use the PostgreSQL catalog in Trino through Gravitino.+Complete the following steps before you can use the PostgreSQL catalog in Trino through Gravitino:- Create a metalake and catalog in Gravitino. Assuming that the metalake name is `test` and the catalog name is `postgresql_test`, then you can use the following code to create them in Gravitino:@@ -93,7 +95,7 @@ curl -X POST -H "Content-Type: application/json" \}}' http://gravitino-host:8090/api/metalakes/test/catalogs```-For more information about the PostgreSQL catalog, please refer to [PostgreSQL catalog](../jdbc-postgresql-catalog.md).+For more information about the PostgreSQL catalog, refer to [PostgreSQL catalog](../jdbc-postgresql-catalog.md).- Set the value of configuration `gravitino.metalake` to the metalake you have created, named 'test', and start the Trino container.@@ -123,7 +125,7 @@ The `gravitino` catalog is a catalog defined By Trino catalog configuration.The `postgresql_test` catalog is the catalog created by you in Gravitino.Other catalogs are regular user-configured Trino catalogs.-### Creating tables and schemas+### Create Tables and SchemasCreate a new schema named `database_01` in `postgresql_test` catalog.@@ -141,7 +143,7 @@ salary int);```-### Writing data+### Write DataInsert data into the table `table_01`:@@ -168,7 +170,7 @@ DELETE FROM postgresql_test.database_01.table_01 WHERE salary = 12;DELETE FROM postgresql_test.database_01.table_01;```-### Querying data+### Query DataQuery the `table_01` table:@@ -176,7 +178,7 @@ Query the `table_01` table:SELECT * FROM postgresql_test.database_01.table_01;```-### Modify a table+### Modify a TableAdd a new column `age` to the `table_01` table:diff --git a/docs/trino-connector/configuration.md b/docs/trino-connector/configuration.mdindex ba7532049f..f20b8a5fb6 100644--- a/docs/trino-connector/configuration.md+++ b/docs/trino-connector/configuration.md@@ -1,10 +1,12 @@----title: "Apache Gravitino Trino connector Configuration"-slug: /trino-connector/configuration-keyword: gravitino connector trino+title: "Trino Connector Configuration"+slug: "/trino-connector/configuration"+keyword: "gravitino connector trino"license: "This software is licensed under the Apache License version 2."---+## Introduction+| Property | Type | Default Value | Description | Required | Since Version ||---------------------------------------------|---------|-----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|---------------|| connector.name | string | (none) | The `connector.name` defines the type of Trino connector, this value is always 'gravitino'. | Yes | 0.2.0 |@@ -20,10 +22,10 @@ license: "This software is licensed under the Apache License version 2."To configure the Gravitino client, use properties prefixed with `gravitino.client.`. These properties will directly passed to the Gravitino client.-**Note:** Invalid configuration properties will result in exceptions. Please see [Gravitino Java client configurations](../how-to-use-gravitino-client.md#gravitino-java-client-configuration) for more support client configuration.+**Note:** Invalid configuration properties will result in exceptions. Please see [Gravitino Java client configurations](../how-to-use-gravitino-client.md#java-client-configuration) for more support client configuration.Multi-metalake mode (`gravitino.use-single-metalake=false`) is supported on Trino connector versions 435-445 and 469-478. On versions 446-468, a warning is logged and the connector initializes, but the mode is not fully supported and some operations may fail.## Authentication-The Gravitino Trino connector supports authenticating to the Gravitino server using Simple, OAuth, and Kerberos authentication. For detailed authentication configuration, please refer to [Trino Connector Authentication](./authentication.md).+The Gravitino Trino connector supports authenticating to the Gravitino server using Simple, OAuth, and Kerberos authentication. For detailed authentication configuration, refer to [Trino Connector Authentication](./authentication.md).diff --git a/docs/trino-connector/development.md b/docs/trino-connector/development.mdindex f9464f8bbb..5120955a77 100644--- a/docs/trino-connector/development.md+++ b/docs/trino-connector/development.md@@ -1,13 +1,15 @@----title: "Apache Gravitino Trino connector development"-slug: /trino-connector/development-keyword: gravitino connector development+title: "Trino Connector Development"+slug: "/trino-connector/development"+keyword: "gravitino connector development"license: "This software is licensed under the Apache License version 2."---+## Introduction+This document guides you through developing the Apache Gravitino Trino connector locally.-## Multi-version architecture+## Multi-version ArchitectureThe Gravitino Trino connector supports multiple Trino versions (see [Requirements](requirements.md)). The source code is organized into a shared base module and several version-segment modules:@@ -56,7 +58,7 @@ curl -X POST -H "Content-Type: application/json" -d '{"name":"mysql_catalog3","tChange `localhost`, `port`, and the names of metalake and catalogs to match your environment.:::-## Development environment+## Development Environment### IDEA@@ -339,5 +341,5 @@ If a compile error occurs due to `The following artifacts could not be resolved:Download the `trino-cli` jar from the [Trino release page](https://trino.io/docs/469/client/cli.html). Use the CLI version that matches your Trino server version.:::-10. You can now develop the Gravitino Trino connector in the Gravitino project and debug it in the Trino project.+10. Develop the Gravitino Trino connector in the Gravitino project and debug it in the Trino project.diff --git a/docs/trino-connector/index.md b/docs/trino-connector/index.mdindex 5afb35a41b..901d98df32 100644--- a/docs/trino-connector/index.md+++ b/docs/trino-connector/index.md@@ -1,10 +1,12 @@----title: "Apache Gravitino Trino connector index"-slug: /trino-connector/index-keyword: gravitino connector trino+title: "Trino Connector Overview"+slug: "/trino-connector/index"+keyword: "gravitino connector trino"license: "This software is licensed under the Apache License version 2."---+## Introduction+Apache Gravitino Trino connector index:- [Trino Support](trino-connector.md)diff --git a/docs/trino-connector/installation.md b/docs/trino-connector/installation.mdindex 25c22bcf6d..3f7297aaf8 100644--- a/docs/trino-connector/installation.md+++ b/docs/trino-connector/installation.md@@ -1,19 +1,21 @@----title: "Apache Gravitino Trino connector installation"-slug: /trino-connector/installation-keyword: gravitino connector trino+title: "Install the Trino Connector"+slug: "/trino-connector/installation"+keyword: "gravitino connector trino"license: "This software is licensed under the Apache License version 2."---+## Introduction+To install the Apache Gravitino Trino connector, you should first deploy the Trino environment, and then install the Gravitino Trino connector plugin into Trino.-Please refer to the [Deploying Trino documentation](https://trino.io/docs/current/installation/deployment.html) and do the following steps:+Refer to the [Deploying Trino documentation](https://trino.io/docs/current/installation/deployment.html) and do the following steps:The examples in this document use Trino `469` by default.-## Get the connector package+## Get the Connector PackageGravitino provides different Trino connector packages for different Trino version segments.-You need to choose the package by your Trino server version first.+Choose the package by your Trino server version first.| Trino server version | Connector package segment ||----------------------|---------------------------|@@ -34,7 +36,7 @@ For example:`gravitino-trino-connector-469-472-<version>.tar.gz`-You can get the package in the following ways:+Get the package in the following ways:1. Download a released package from [GitHub Releases](https://github.com/apache/gravitino/releases). For Trino `469`, download the `469-472` package:@@ -57,7 +59,7 @@ After unpacking, you can see the connector directory:`gravitino-trino-connector-469-472-<version>`-## Install the connector package+## Install the Connector Package1. Download and unpack the correct Gravitino Trino connector tarball for your Trino version.2. Rename the unpacked connector directory to `gravitino`, and then copy it to the Trino plugin directory.@@ -76,11 +78,11 @@ discovery.uri=http://0.0.0.0:8080## Example-You can install the Gravitino Trino connector in Trino office docker images step by step.+Install the Gravitino Trino connector into the official Trino Docker image.-### Running the container+### Run the Container-Use the docker command to create a container from the `trinodb/trino` image. Assign it the trino-gravitino name.+Use the Docker command to create a container from the `trinodb/trino` image. Assign it the trino-gravitino name.Run it in the background, and map the default Trino port, which is 8080, from inside the container to port 8080 on your machine.```shell@@ -90,7 +92,7 @@ docker run --name trino-gravitino -d -p 8080:8080 trinodb/trino:469Run `docker ps` to check whether the container is running.-### Installing the Apache Gravitino Trino connector+### Install the Trino ConnectorDownload the Gravitino Trino connector tarball for Trino `469` and unpack it.@@ -100,7 +102,7 @@ wget https://github.com/apache/gravitino/releases/download/<version>/gravitino-ttar -zxvf gravitino-trino-connector-469-472-<version>.tar.gz```-You can see the connector directory `gravitino-trino-connector-469-472-<version>` after unpacking.+See the connector directory `gravitino-trino-connector-469-472-<version>` after unpacking.Rename the connector directory to `gravitino`, then copy it to the Trino container's plugin directory.@@ -118,9 +120,9 @@ cd /lib/trino/pluginNow you can see the Gravitino Trino connector directory in the plugin directory.-### Configuring the Trino+### Configure Trino-You can find the Trino configuration file `config.properties` in the directory `/etc/trino`. You need changed the file like this:+Find the Trino configuration file `config.properties` in the directory `/etc/trino`. You need changed the file like this:```text#single node install config@@ -131,9 +133,9 @@ discovery.uri=http://localhost:8080catalog.management=dynamic```-### Configuring the Apache Gravitino Trino connector+### Configure the Trino Connector-Assuming you have now started the Gravitino server on the host `gravitino-server-host` and already created a metalake named `test`, if those have not been prepared, please refer to the [Gravitino getting started](../getting-started/index.md).+Assuming you have now started the Gravitino server on the host `gravitino-server-host` and already created a metalake named `test`, if those have not been prepared, refer to the [Gravitino getting started](../getting-started/index.md).To configure Gravitino Trino connector correctly, you need to put the following configurations to the Trino configuration file `/etc/trino/catalog/gravitino.properties`.@@ -161,7 +163,7 @@ And then restart the Trino container to load the Gravitino Trino connector.docker restart trino-gravitino```-### Verifying the Apache Gravitino Trino connector+### Verify the Trino ConnectorUse the Trino CLI to connect to the Trino container and run a query.@@ -178,9 +180,9 @@ tpchsystem```-You can see the `gravitino` catalog in the result set. This signifies the successful installation of the Gravitino Trino connector.+See the `gravitino` catalog in the result set. This signifies the successful installation of the Gravitino Trino connector.-Assuming you have created a catalog named `test.jdbc-mysql` in the Gravitino server, or please refer to [Create a Catalog](../manage-relational-metadata-using-gravitino.md#create-a-catalog). Then you can use the Trino CLI to connect to the Trino container and run a query like this.+Assuming you have created a catalog named `test.jdbc-mysql` in the Gravitino server, or refer to [Create a Catalog](../manage-relational-metadata-using-gravitino.md#create-a-catalog). Then you can use the Trino CLI to connect to the Trino container and run a query like this.```textdocker exec -it trino-gravitino trinodiff --git a/docs/trino-connector/requirements.md b/docs/trino-connector/requirements.mdindex 67bd57550a..0c5bb61da4 100644--- a/docs/trino-connector/requirements.md+++ b/docs/trino-connector/requirements.md@@ -1,11 +1,13 @@----title: "Apache Gravitino Trino connector requirements"-slug: /trino-connector/requirements-keyword: gravitino connector trino+title: "Trino Connector Requirements"+slug: "/trino-connector/requirements"+keyword: "gravitino connector trino"license: "This software is licensed under the Apache License version 2."----To install and deploy the Apache Gravitino Trino connector, The following environmental setup is necessary:+## Introduction++To install and deploy the Apache Gravitino Trino connector, the following environmental setup is necessary:- Trino server version should be between Trino-server-435 and Trino-server-478.The examples in this document use Trino `469` by default.diff --git a/docs/trino-connector/sql-support.md b/docs/trino-connector/sql-support.mdindex 77528d887e..7d4ff4f0db 100644--- a/docs/trino-connector/sql-support.md+++ b/docs/trino-connector/sql-support.md@@ -1,20 +1,22 @@----title: "Apache Gravitino Trino connector SQL support"-slug: /trino-connector/sql-support-keyword: gravitino connector trino+title: "Trino Connector SQL Support"+slug: "/trino-connector/sql-support"+keyword: "gravitino connector trino"license: "This software is licensed under the Apache License version 2."---+## Introduction+The connector provides read access and write access to data and metadata stored in Apache Gravitino.-### Globally available statements+### Globally Available Statements- [EXPLAIN](https://trino.io/docs/current/sql/explain.html)- [EXPLAIN ANALYZE](https://trino.io/docs/current/sql/explain-analyze.html)- [PREPARE](https://trino.io/docs/current/sql/prepare.html)- [USE](https://trino.io/docs/current/sql/use.html)-### Read operations+### Read Operations- [SELECT](https://trino.io/docs/current/sql/select.html)- [DESCRIBE](https://trino.io/docs/current/sql/describe.html)@@ -25,7 +27,7 @@ The connector provides read access and write access to data and metadata stored- [SHOW SCHEMAS](https://trino.io/docs/current/sql/show-schemas.html)- [SHOW TABLES](https://trino.io/docs/current/sql/show-tables.html)-### Write operations+### Write Operations- [INSERT](https://trino.io/docs/current/sql/insert.html)- [INSERT INTO SELECT](https://trino.io/docs/current/sql/insert.html)@@ -33,7 +35,7 @@ The connector provides read access and write access to data and metadata stored- [DELETE](https://trino.io/docs/current/sql/delete.html)- [MERGE](https://trino.io/docs/current/sql/merge.html)-### Schema and table management+### Schema and Table Management- [CREATE TABLE](https://trino.io/docs/current/sql/create-table.html)- [CREATE TABLE AS SELECT](https://trino.io/docs/current/sql/create-table-as.html) (`CREATE OR REPLACE TABLE AS SELECT` is not supported)@@ -49,4 +51,4 @@ The connector provides read access and write access to data and metadata stored- [COMMIT](https://trino.io/docs/current/sql/commit.html)- [ROLLBACK](https://trino.io/docs/current/sql/rollback.html)-For more information, please refer to Trino [SQL statements support](https://trino.io/docs/current/language/sql-support.html#sql-globally-available)+For more information, refer to Trino [SQL statements support](https://trino.io/docs/current/language/sql-support.html#sql-globally-available)diff --git a/docs/trino-connector/supported-catalog.md b/docs/trino-connector/supported-catalog.mdindex 6cb29b39be..fd14f9deec 100644--- a/docs/trino-connector/supported-catalog.md+++ b/docs/trino-connector/supported-catalog.md@@ -1,10 +1,12 @@----title: "Apache Gravitino Trino connector supported Catalogs"-slug: /trino-connector/supported-catalog-keyword: gravitino connector trino+title: "Trino Connector Catalog Support"+slug: "/trino-connector/supported-catalog"+keyword: "gravitino connector trino"license: "This software is licensed under the Apache License version 2."---+## Introduction+The catalogs currently supported by the Apache Gravitino Trino connector are as follows:- [Hive](catalog-hive.md)@@ -12,7 +14,7 @@ The catalogs currently supported by the Apache Gravitino Trino connector are as- [MySQL](catalog-mysql.md)- [PostgreSQL](catalog-postgresql.md)-## Create catalog+## Create CatalogUsers can create catalogs through the Gravitino Trino connector and then load them into Trino.The Gravitino Trino connector provides the following stored procedures to create, delete, and alter catalogs.@@ -25,7 +27,7 @@ create_catalog(CATALOG varchar, PROVIDER varchar, PROPERTIES MAP(VARCHAR, VARCHA```- CATALOG: The catalog name to be created.-- PROVIDER: The catalog provider, currently only supports `hive`, `lakehouse-iceberg`, `jdbc-mysql`, `jdbc-postgresql`.+- PROVIDER: The catalog provider. Supported values: `hive`, `lakehouse-iceberg`, `jdbc-mysql`, `jdbc-postgresql`.- PROPERTIES: The properties of the catalog.- IGNORE_EXIST: The flag to ignore the error if the catalog already exists. It's optional, the default value is `false`.@@ -77,7 +79,7 @@ The result is like:```Example:-You can run the following SQL to create a catalog named `mysql` with `jdbc-mysql` provider.+Run the following SQL to create a catalog named `mysql` with `jdbc-mysql` provider.```sql-- Call stored procedures with position.@@ -117,10 +119,11 @@ call gravitino.system.alter_catalog();```-if you need more information about catalog, please refer to:+If you need more information about catalog, refer to:[Create a Catalog](../manage-relational-metadata-using-gravitino.md#create-a-catalog).-## Passing Trino connector configuration+## Pass Trino Connector Configuration+A Gravitino catalog is implemented by the Trino connector, so you can pass the Trino connector configuration to the Gravitino catalog.For example, you want to set the `hive.config.resources` configuration for the Hive catalog, you can pass the configuration to theGravitino catalog like this:@@ -148,7 +151,7 @@ More Trino connector configurations can refer to:- [MySQL catalog](https://trino.io/docs/current/connector/mysql.html#general-configuration-properties)- [PostgreSQL catalog](https://trino.io/docs/current/connector/postgresql.html#general-configuration-properties)-## Data type mapping between Trino and Apache Gravitino+## Data Type Mapping Between Trino and Apache GravitinoGravitino Trino connector supports the following data type conversions between Trino and Gravitino currently. Depending on the detailed catalog, Gravitino may not support some data types conversion for this specific catalog, for example,Hive does not support `TIME` data type.@@ -175,4 +178,4 @@ Hive does not support `TIME` data type.| Map | MAP || Struct | ROW |-For more about Trino data types, please refer to [Trino data types](https://trino.io/docs/current/language/types.html) and Gravitino data types, please refer to [Gravitino data types](../manage-relational-metadata-using-gravitino.md#apache-gravitino-table-column-type).+For more about Trino data types, refer to [Trino data types](https://trino.io/docs/current/language/types.html) and Gravitino data types, refer to [Gravitino data types](../manage-relational-metadata-using-gravitino.md#table-column-type).diff --git a/docs/trino-connector/trino-cascading-query.md b/docs/trino-connector/trino-cascading-query.mdindex 31b0f5b923..f4042b5585 100644--- a/docs/trino-connector/trino-cascading-query.md+++ b/docs/trino-connector/trino-cascading-query.md@@ -1,11 +1,12 @@----title: "Apache Gravitino connector Trino cascading query"-slug: /trino-connector/trino-cascading-query-keyword: gravitino connector trino+title: "Trino Cascading Queries"+slug: "/trino-connector/trino-cascading-query"+keyword: "gravitino connector trino"license: "This software is licensed under the Apache License version 2."----# Background+## Background+With the `Apache Gravitino Trino connector` and the [`Gravitino Trino cascading connector`](https://github.com/datastrato/trino-cascading-connector), you can implement cascading queries in Trino.These connectors allow you to treat other Trino clusters as data sources for the current Trino cluster,enabling queries across catalogs in different Trino clusters.@@ -15,13 +16,11 @@ based on the data distribution in the catalogs. By doing so, it significantly retransferred over the network, addressing the performance issues commonly found in traditional federated query engineswhere large volumes of data need to be transmitted across networks.-# Deploying Trino--## Deploying Trino+## Deploy TrinoTo set up the Trino cascading query environment, you should first deploy at least two Trino environments.Next, install the `Apache Gravitino Trino connector` plugin and `Gravitino Trino cascading connector` plugin into Trino.-For detailed steps, please refer to the [Deploying Trino documentation](installation.md).+For detailed steps, refer to the [Deploying Trino documentation](installation.md).Follow these steps:@@ -36,7 +35,7 @@ Ensure that the `plugin` directory includes the `gravitino` and `trino` subdirecVerify the network connectivity between the machines hosting the two Trino clusters, identified as `c1-trino` and `c2-trino`.-## Deploying Trino in Containers+### Deploy Trino in ContainersDownload the `Apache Gravitino Trino connector` tarball and `Gravitino Trino cascading connector` tarball, then unpack them.After unpacking, you will find the directories named `gravitino-trino-connector-<version>`@@ -58,11 +57,11 @@ docker run --name c2-trino -d -p 8080:8080 <image-name> -v `gravitino-trino-conn```After starting the Trino containers, ensure the configuration directory `/etc/trino` is correctly set up.-Also, verify that the Trino containers on `c1-trino` and `c2-trino` can communicate with each other over the network.+Verify that the Trino containers on `c1-trino` and `c2-trino` can communicate with each other over the network.-## Configuring Trino+## Configure Trino-For detailed instructions on configuring Trino, please refer to the [Trino documentation](https://trino.io/docs/current/installation/deployment.html#configuring-trino).+For detailed instructions on configuring Trino, refer to the [Trino documentation](https://trino.io/docs/current/installation/deployment.html#configuring-trino).After completing the basic configuration, proceed to configure the Gravitino connector.Create a `gravitino.properties` file in the `etc/catalog` directory on the `c1-trino` host with the following contents:@@ -92,7 +91,7 @@ thus queries for catalogs in this region will execute on c2-trino.Ensure that the `gravitino.uri` setting on both `c1-trino` and `c2-trino` points to the same Gravitino server.Verify that the server is operational and properly connected. Restart Trino after making any configuration changes.-## Creating Catalogs+## Create CatalogsTo verify federated queries, create catalogs.Below is an example using the `gt_mysql` catalog in the `c2` region, configured for federated querying from `c1-trino`.@@ -126,7 +125,7 @@ After successfully creating the catalog, use the Trino CLI on both `c1-trino` anSHOW CATALOGS;```-## Adding Data+## Add DataAfter creating the catalog, the next step is to add data to verify queries. Since the `Gravitino Trino cascading connector`does not support data writing directly, execute the following commands using the `c2-trino` CLI to set up your data environment:diff --git a/docs/trino-connector/trino-connector.md b/docs/trino-connector/trino-connector.mdindex 8033436190..a39bb9b2da 100644--- a/docs/trino-connector/trino-connector.md+++ b/docs/trino-connector/trino-connector.md@@ -1,10 +1,12 @@----title: "Apache Gravitino Trino connector"-slug: /trino-connector/trino-connector-keyword: gravitino connector trino+title: "Trino Connector"+slug: "/trino-connector/trino-connector"+keyword: "gravitino connector trino"license: "This software is licensed under the Apache License version 2."---+## Introduction+Trino can manage and access data using the Trino connector provided by `Apache Gravitino`, commonly referred to as the `Gravitino Trino connector`.After configuring the Gravitino Trino connector in Trino, Trino can automatically load catalog metadata from Gravitino, allowing users to directly access these catalogs in Trino.Once integrated with Gravitino, Trino can operate on all Gravitino data without requiring additional configuration.diff --git a/docs/trino-connector/udf-support.md b/docs/trino-connector/udf-support.mdindex 10dfd5aa02..67d4c094e2 100644--- a/docs/trino-connector/udf-support.md+++ b/docs/trino-connector/udf-support.md@@ -1,15 +1,17 @@----title: "Apache Gravitino Trino connector UDF support"-slug: /trino-connector/udf-support-keyword: gravitino connector trino udf function+title: "Trino Connector UDF Support"+slug: "/trino-connector/udf-support"+keyword: "gravitino connector trino udf function"license: "This software is licensed under the Apache License version 2."---+## Introduction+The Gravitino Trino connector supports user-defined functions (UDFs) registered in Apache Gravitino.Functions with `RuntimeType.TRINO` and SQL language implementations are automatically exposed as[Trino language functions](https://trino.io/docs/current/routines/function.html), making them available for use in Trino queries.-## How it works+## MechanismWhen Gravitino catalogs contain registered functions, the Trino connector:@@ -24,7 +26,7 @@ Functions registered with other runtimes (e.g., `SPARK`) are **not** visible in- The Gravitino catalog must support function operations (i.e., implement `FunctionCatalog`).- Functions must be registered in Gravitino via the Gravitino client or REST API before they can be queried from Trino.-## Registering a UDF+## Register a UDFUse the Gravitino Java client to register a function:@@ -43,7 +45,7 @@ functionCatalog.registerFunction(FunctionImpls.ofSql(FunctionImpl.RuntimeType.TRINO, "RETURN x + 1")))));```-## Querying UDFs from Trino+## Query UDFs from TrinoOnce registered, the function appears in Trino:@@ -58,7 +60,7 @@ SELECT catalog.my_schema.add_one(5);## Limitations-- **Read-only**: The Trino connector currently supports listing and invoking Gravitino UDFs. Creating or dropping functions via Trino SQL (`CREATE FUNCTION` / `DROP FUNCTION`) is not yet supported.+- **Read-only**: The Trino connector supports listing and invoking Gravitino UDFs. Creating or dropping functions via Trino SQL (`CREATE FUNCTION` / `DROP FUNCTION`) is not yet supported.- **SQL only**: Only SQL-language implementations are mapped. Java and Python implementations are not exposed to Trino.- **TRINO runtime only**: Only functions with `RuntimeType.TRINO` are visible. Functions registered with `RuntimeType.SPARK` or other runtimes are filtered out.- **Type mapping**: Function parameter and return types are converted from Gravitino types to Trino types. Unsupported types will cause the function to be skipped with a warning log.diff --git a/docs/webui-v2.md b/docs/webui-v2.mdindex edd763c06a..a70ed86055 100644--- a/docs/webui-v2.md+++ b/docs/webui-v2.md@@ -1,18 +1,20 @@----title: 'Apache Gravitino Web V2 UI'-slug: /webui-v2-keyword: webui v2+title: "Web V2 UI"+slug: "/webui-v2"+keyword: "webui v2"last_update:date: 2026-01-30author: LauraXia123-license: 'This software is licensed under the Apache License version 2.'+license: "This software is licensed under the Apache License version 2."---+## Introduction+This document outlines how users can manage metadata within Apache Gravitino using the Web V2 UI, the latest graphical interface accessible through a web browser as an alternative to writing code or using the REST interface.[Build](./how-to-build.md#quick-start) and [deploy](./getting-started/index.md#local-workstation) the Gravitino Web UI and open it in a browser at `http://<gravitino-host>:<gravitino-port>`. By default, it is [http://localhost:8090](http://localhost:8090).-## UI Version 1.2.0 — Web V2 introduced+## Web V2 (UI Version 1.2.0)Starting with version 1.2.0, Gravitino introduces Web V2. By default, the template does not set `GRAVITINO_USE_WEB_V2`, so the container or environment controls which UI is used. To force the v1 UI, explicitly set it to `false`; to enable the v2 UI, set it to `true` (for example: `export GRAVITINO_USE_WEB_V2=true`). If you want to enable Web V2 from the server env file, set the following environment variable in `conf/gravitino-env.sh` before starting the server:@@ -34,7 +36,7 @@ The Web V2 introduces additional modules (such as Jobs, Job Templates, Data CompData Compliance includes **Tags** and **Policies**. The **Access** module is visible only when `gravitino.authorization.enable=true` and includes **Users**, **User Groups**, and **Roles**.-### Initial page (Web V2)+### Initial PageThe Web V2 landing page depends on both the authentication mode and whether authorization is enabled in `<path-to-gravitino>/conf/gravitino.conf`.@@ -42,7 +44,7 @@ The Web V2 landing page depends on both the authentication mode and whether auth-- When `gravitino.authorization.enable=true`, authorization is enabled. In `simple` mode, the UI shows a login page. You can enter any username without a password.+- When `gravitino.authorization.enable=true`, authorization is enabled. In `simple` mode, the UI shows a login page. Enter any username without a password.@@ -50,13 +52,13 @@ The Web V2 landing page depends on both the authentication mode and whether auth-### Metalakes (Web V2)+### MetalakesOverview for Metalake in the Web V2.-#### Create metalake (Web V2)+#### Create MetalakeClick the `CREATE METALAKE` button to open the create dialog. Fill in the form fields and submit to create the metalake.@@ -64,13 +66,13 @@ Click the `CREATE METALAKE` button to open the create dialog. Fill in the form fAfter creation, the basic information is visible in the metalake list.-#### Properties popover (Web V2)+#### Properties PopoverHover over the number in the **Properties** column to view the properties popover.-#### Actions (Web V2)+#### ActionsIn the **Actions** column, you can edit or delete the metalake. The settings dropdown includes:@@ -79,40 +81,40 @@ In the **Actions** column, you can edit or delete the metalake. The settings dro-#### Delete metalake (Web V2)+#### Delete Metalake-To delete a metalake, the metalake must be **not in-use** (set it in the [Actions (Web V2)](#actions-web-v2) settings dropdown), and all sub-entities must be deleted first. The delete dialog requires entering the metalake name for confirmation before deletion.+To delete a metalake, the metalake must be **not in-use** (set it in the [Actions](#actions) settings dropdown), and all sub-entities must be deleted first. The delete dialog requires entering the metalake name for confirmation before deletion.-### Catalogs (Web V2)+### CatalogsOverview for Catalog in the Web V2.-#### Catalog type filter (Web V2)+#### Catalog Type FilterOn the catalogs page, use the catalog type selector at the top-left to switch between `relational`, `messaging`, `fileset`, and `model`. The list updates to show catalogs of the selected type.-#### Tags and policies association (Web V2)+#### Tags and Policies AssociationThe catalog list shows basic catalog information along with associated **Tags** and **Policies**. Use **Associate Tag** and **Associate Policy** in the list to add associations. Click the **X** on a tag to remove it.-#### Disable catalog (Web V2)+#### Disable CatalogFrom the **Actions** settings dropdown, switch a catalog to **not in-use**. A disabled icon appears next to the catalog name, and the catalog name becomes non-clickable (you cannot enter the catalog details page).-#### Provider filter (Web V2)+#### Provider FilterUse the filter on the **Provider** table header to narrow the catalogs list by provider.-#### Create catalog (Web V2)+#### Create CatalogClick **Create Catalog** to open the creation form for the selected catalog type. In step 1, choose the provider for the selected type. Click **Next** to go to step 2, fill in the required properties, and submit to create the catalog. Some providers support **Test Connection** so you can validate connectivity before submitting.@@ -120,15 +122,15 @@ Click **Create Catalog** to open the creation form for the selected catalog type-#### Delete catalog (Web V2)+#### Delete Catalog-If the catalog is still in-use, the UI shows the **Delete** entry as shown in **Figure 1 below**. After switching the catalog to **not in-use** (see [Disable catalog (Web V2)](#disable-catalog-web-v2)), the **Delete** entry changes to **Figure 2 below**. Enter the catalog name for the second confirmation, then you can delete it.+If the catalog is still in-use, the UI shows the **Delete** entry as shown in **Figure 1 below**. After switching the catalog to **not in-use** (see [Disable Catalog](#disable-catalog)), the **Delete** entry changes to **Figure 2 below**. Enter the catalog name for the second confirmation, then you can delete it.-#### Navbar (Web V2)+#### NavbarThe navbar provides the following shortcuts:@@ -139,19 +141,19 @@ The navbar provides the following shortcuts:-### Catalog details & Schemas (Web V2)+### Catalog Details and Schemas-You can enter the catalog details page by clicking the catalog name either from the left tree or from the catalog name in the right list. The catalog name shows basic catalog information underneath it. Hover over the highlighted numbers to open a popover with more details.+Enter the catalog details page by clicking the catalog name either from the left tree or from the catalog name in the right list. The catalog name shows basic catalog information underneath it. Hover over the highlighted numbers to open a popover with more details.Below the catalog information, the page shows the **Schemas** list and the catalog's **Associated Roles**. The **Associated Roles** section is visible only when `gravitino.authorization.enable=true`, and it lists the role name and its privileges.-#### Schemas list (Web V2)+#### Schemas ListOverview for Schemas in the Web V2.-#### Associated Roles (Web V2)+#### Associated RolesOverview for Associated Roles in the Web V2. (visible only when `gravitino.authorization.enable=true`)@@ -170,13 +172,13 @@ function definition.-### Tables (Web V2)+### TablesOverview for Table in the Web V2.-#### Create Table (Web V2)+#### Create TableIn the **Schema details** page, the list shows all tables under the selected schema. Click **Create Table** to open the table creation form.@@ -189,13 +191,13 @@ Depending on the provider, you can configure **Partitions**, **Sort Orders**, an-In **Properties**, default values are prefilled and can be changed. You can reselect and update the values before submitting.+In **Properties**, default values are prefilled and can be changed. Reselect and update the values before submitting.Submit the form to create a complex table.-### Filesets (Web V2)+### FilesetsOverview for Fileset in the Web V2.@@ -205,31 +207,31 @@ Overview for files under fileset in the Web V2.-### Topics (Web V2)+### TopicsOverview for Topic in the Web V2.-### Models (Web V2)+### ModelsOverview for Model in the Web V2.-### Versions (Web V2)+### VersionsOverview for Version in the Web V2.-### Job (Web V2)+### JobsOverview for Job in the Web V2.-#### Run Job (Web V2)+#### Run JobClick **Run Job**, select a job template, and review the template parameters on the left. On the right, use **Job Configuration** to replace the template placeholders defined with `{{}}`. After the replacements, the final job script is generated and executed.@@ -239,102 +241,102 @@ In the job template select dropdown, you can choose **Register Job Template** to-### Job Template (Web V2)+### Job TemplatesOverview for Job Template in the Web V2.-#### Register Job Template (Web V2)+#### Register Job TemplateClick **Register Job Template** to open the create template form. Choose a job type, fill in the required fields, and submit to register the template.-### Data Compliance - Tags (Web V2)+### TagsOverview for Data Compliance Tags in the Web V2.-#### Create Tag (Web V2)+#### Create TagClick **Create Tag** to open the create form. Fill in the required fields and submit to create a tag.-#### Tag metadata objects (Web V2)+#### Tag Metadata ObjectsClick a tag to navigate to the **Metadata Objects** page, which lists all metadata objects associated with the selected tag.-### Data Compliance - Policies (Web V2)+### PoliciesOverview for Data Compliance Policies in the Web V2.-#### Create Policy (Web V2)+#### Create PolicyClick **Create Policy** to open the create form. Fill in the required fields and submit to create a policy.-#### Policy metadata objects (Web V2)+#### Policy Metadata ObjectsClick a policy tag to navigate to the **Metadata Objects** page, which lists all metadata objects associated with the selected policy.-### Access+### AccessThe Access module is visible only when `gravitino.authorization.enable=true`.-### Access - Users (Web V2)+### User AccessOverview for Access Users in the Web V2.-#### Add User (Web V2)+#### Add UserClick **Add User** to open the create form. Fill in the required fields and submit to create a user.-#### Grant Role (Web V2)+#### Grant RoleFrom the **Actions**, click **Grant Role** icon to assign roles to the selected user.-### Access - User Groups (Web V2)+### User Group AccessOverview for Access User Groups in the Web V2.-#### Add User Group (Web V2)+#### Add User GroupClick **Add User Group** to open the create form. Fill in the required fields and submit to create a user group.-#### Grant Role (Web V2)+#### Grant RoleFrom the **Actions**, click **Grant Role** icon to assign roles to the selected user group.-### Access - Roles (Web V2)+### Role AccessOverview for Access Roles in the Web V2.-#### Create Role (Web V2)+#### Create RoleClick **Create Role** to open the create form. A role can include multiple securable objects. Different securable object types have different available privileges. For details, see [Securable Objects](security/access-control.md#securable-objects) and [Privilege Types](security/access-control.md#privilege-types).diff --git a/docs/webui.md b/docs/webui.mdindex c0960d792b..00d3478259 100644--- a/docs/webui.md+++ b/docs/webui.md@@ -1,20 +1,22 @@----title: 'Apache Gravitino web UI'-slug: /webui-keyword: webui+title: "Web UI"+slug: "/webui"+keyword: "webui"last_update:date: 2024-10-30author: LauraXia123-license: 'This software is licensed under the Apache License version 2.'+license: "This software is licensed under the Apache License version 2."---+## Introduction+This document primarily outlines how users can manage metadata within Apache Gravitino using the web UI, the graphical interface is accessible through a web browser as an alternative to writing code or using the REST interface.-Currently, you can integrate [OAuth settings](security/security.md) to view, add, modify, and delete metalakes, create catalogs, and view catalogs, schemas, and tables, among other functions.+Integrate [OAuth settings](security/security.md) to view, add, modify, and delete metalakes, create catalogs, and view catalogs, schemas, and tables, among other functions.[Build](./how-to-build.md#quick-start) and [deploy](./getting-started/index.md#local-workstation) the Gravitino Web UI and open it in a browser at `http://<gravitino-host>:<gravitino-port>`, by default is [http://localhost:8090](http://localhost:8090).-## Initial page+## Initial PageThe web UI homepage displayed in Gravitino depends on the configuration parameter for OAuth mode, see the details in [Security](security/security.md).@@ -26,7 +28,7 @@ After changing the configuration, make sure to restart the Gravitino server.`<path-to-gravitino>/bin/gravitino.sh restart`:::-### Simple mode+### Simple Mode```textgravitino.authenticators = simple@@ -40,7 +42,7 @@ At the top-right, the UI displays the current Gravitino version.The main content displays the existing metalake list.-### Oauth mode+### OAuth Mode```textgravitino.authenticators = oauth@@ -57,7 +59,7 @@ Such as Safari need to enable the developer menu, and select `Disable Cross-Orig-1. Enter the values corresponding to your specific configuration. For detailed instructions, please refer to [Security](security/security.md).+1. Enter the values corresponding to your specific configuration. For detailed instructions, refer to [Security](security/security.md).2. Click on the `LOGIN` button takes you to the homepage.@@ -65,13 +67,15 @@ Such as Safari need to enable the developer menu, and select `Disable Cross-OrigAt the top-right, there is an icon button that takes you to the login page when clicked.-## Manage metadata+## Manage Metadata> All the manage actions are performed by using the [REST API](api/rest/gravitino-rest-api)### Metalake-#### [Create metalake](./getting-started/index.md#interact-with-apache-gravitino-api)+#### Create Metalake++See the [API reference](./getting-started/index.md#interact-with-apache-gravitino-api) for the underlying REST call.On the homepage, clicking on the `CREATE METALAKE` button displays a dialog to create a metalake.@@ -89,15 +93,15 @@ There are 3 actions you can perform on a metalake.-#### Show metalake details+#### Show Metalake DetailsClick on the action icon <Icon icon='bx:show-alt' fontSize='24' /> in the table cell.-You can see the detailed information of this metalake in the drawer component on the right.+See the detailed information of this metalake in the drawer component on the right.-#### Edit metalake+#### Edit MetalakeClick on the action icon <Icon icon='mdi:square-edit-outline' fontSize='24' /> in the table cell.@@ -105,7 +109,7 @@ Displays the dialog for modifying fields of the selected metalake.-#### Disable metalake+#### Disable MetalakeMetalake defaults to in-use after successful creation.@@ -117,7 +121,7 @@ Click on the switch will disable the metalake, mouse over the switch next to the-#### Drop metalake+#### Drop MetalakeClick on the action icon <Icon icon='mdi:delete-outline' fontSize='24' color='red' /> in the table cell.@@ -151,7 +155,7 @@ Hover your mouse over the corresponding icon to the data changes to a reload ico-#### Create catalog+#### Create CatalogClick on the `CREATE CATALOG` button displays the dialog to create a catalog.@@ -226,7 +230,7 @@ Creating a catalog requires these fields:|Key |Description ||----------------------------------|-------------------------------------------------------------------------------------------------------------|- |authentication.type |The type of authentication for Paimon catalog backend, currently Gravitino only supports Kerberos and simple.|+ |authentication.type |The type of authentication for Paimon catalog backend, Gravitino only supports Kerberos and simple.||authentication.kerberos.principal |The principal of the Kerberos authentication. ||authentication.kerberos.keytab-uri|The URI of The keytab for the Kerberos authentication. |@@ -320,7 +324,7 @@ Creating a catalog requires these fields:|Key |Description ||----------------------------------|-------------------------------------------------------------------------------------------------------------|- |authentication.type |The type of authentication for Paimon catalog backend, currently Gravitino only supports Kerberos and simple.|+ |authentication.type |The type of authentication for Paimon catalog backend, Gravitino only supports Kerberos and simple.||authentication.kerberos.principal |The principal of the Kerberos authentication. ||authentication.kerberos.keytab-uri|The URI of The keytab for the Kerberos authentication. |@@ -393,15 +397,15 @@ After verifying the values of these fields, clicking on the `CREATE` button crea-#### Show catalog details+#### Show Catalog DetailsClick on the action icon <Icon icon='bx:show-alt' fontSize='24' /> in the table cell.-You can see the detailed information of this catalog in the drawer component on the right.+See the detailed information of this catalog in the drawer component on the right.-#### Edit catalog+#### Edit CatalogClick on the action icon <Icon icon='mdi:square-edit-outline' fontSize='24' /> in the table cell.@@ -413,7 +417,7 @@ Only the `name`, `comment`, and custom fields in `properties` can be modified, oThe fields that are not allowed to be modified cannot be selected and modified in the web UI.-#### Disable catalog+#### Disable CatalogCatalog defaults to in-use after successful creation.@@ -425,7 +429,7 @@ Click on the switch will disable the catalog, mouse over the switch next to the-#### Delete catalog+#### Delete CatalogClick on the action icon <Icon icon='mdi:delete-outline' fontSize='24' color='red' /> in the table cell.@@ -441,7 +445,7 @@ Displays the list schemas of the catalog.-#### Create schema+#### Create SchemaClick on the `CREATE SCHEMA` button displays the dialog to create a schema.@@ -453,15 +457,15 @@ Creating a schema needs these fields:2. **Comment**(_optional_): the comment of the schema.3. **Properties**(_optional_): Click on the `ADD PROPERTY` button to add custom properties.-#### Show schema details+#### Show Schema DetailsClick on the action icon <Icon icon='bx:show-alt' fontSize='24' /> in the table cell.-You can see the detailed information of this schema in the drawer component on the right.+See the detailed information of this schema in the drawer component on the right.-#### Edit schema+#### Edit SchemaClick on the action icon <Icon icon='mdi:square-edit-outline' fontSize='24' /> in the table cell.@@ -469,7 +473,7 @@ Displays the dialog for modifying fields of the selected schema.-#### Drop schema+#### Drop SchemaClick on the action icon <Icon icon='mdi:delete-outline' fontSize='24' color='red' /> in the table cell.@@ -485,7 +489,7 @@ Displays the list tables of the schema.-#### Create table+#### Create TableClick on the `CREATE TABLE` button displays the dialog to create a table.@@ -500,22 +504,22 @@ Creating a table needs these fields:3. **Comment**(_optional_): the comment of the table.4. **Properties**(_optional_): Click on the `ADD PROPERTY` button to add custom properties.-#### Show table details+#### Show Table DetailsClick on the action icon <Icon icon='bx:show-alt' fontSize='24' /> in the table cell.-You can see the detailed information of this table in the drawer component on the right.+See the detailed information of this table in the drawer component on the right.Click the table tree node on the left sidebar or the table name link in the table cell.-You can see the columns and detailed information on the right page.+See the columns and detailed information on the right page.-#### Edit table+#### Edit TableClick on the action icon <Icon icon='mdi:square-edit-outline' fontSize='24' /> in the table cell.@@ -523,7 +527,7 @@ Displays the dialog for modifying fields of the selected table.-#### Drop table+#### Drop TableClick on the action icon <Icon icon='mdi:delete-outline' fontSize='24' color='red' /> in the table cell.@@ -539,7 +543,7 @@ Displays the list filesets of the schema.-#### Create fileset+#### Create FilesetClick on the `CREATE FILESET` button displays the dialog to create a fileset.@@ -555,21 +559,21 @@ Creating a fileset needs these fields:4. **Comment**(_optional_): the comment of the fileset.5. **Properties**(_optional_): Click on the `ADD PROPERTY` button to add custom properties.-#### Show fileset details+#### Show Fileset DetailsClick on the action icon <Icon icon='bx:show-alt' fontSize='24' /> in the table cell.-You can see the detailed information of this fileset in the drawer component on the right.+See the detailed information of this fileset in the drawer component on the right.Click the fileset tree node on the left sidebar or the fileset name link in the table cell.-You can see the detailed information on the right page.+See the detailed information on the right page.-#### Edit fileset+#### Edit FilesetClick on the action icon <Icon icon='mdi:square-edit-outline' fontSize='24' /> in the table cell.@@ -577,7 +581,7 @@ Displays the dialog for modifying fields of the selected fileset.-#### Drop fileset+#### Drop FilesetClick on the action icon <Icon icon='mdi:delete-outline' fontSize='24' color='red' /> in the table cell.@@ -593,7 +597,7 @@ Displays the list topics of the schema.-#### Create topic+#### Create TopicClick on the `CREATE TOPIC` button displays the dialog to create a topic.@@ -605,21 +609,21 @@ Creating a topic needs these fields:2. **Comment**(_optional_): the comment of the topic.3. **Properties**(_optional_): Click on the `ADD PROPERTY` button to add custom properties.-#### Show topic details+#### Show Topic DetailsClick on the action icon <Icon icon='bx:show-alt' fontSize='24' /> in the table cell.-You can see the detailed information of this topic in the drawer component on the right.+See the detailed information of this topic in the drawer component on the right.Click the topic tree node on the left sidebar or the topic name link in the table cell.-You can see the detailed information on the right page.+See the detailed information on the right page.-#### Edit topic+#### Edit TopicClick on the action icon <Icon icon='mdi:square-edit-outline' fontSize='24' /> in the table cell.@@ -627,7 +631,7 @@ Displays the dialog for modifying fields of the selected topic.-#### Drop topic+#### Drop TopicClick on the action icon <Icon icon='mdi:delete-outline' fontSize='24' color='red' /> in the table cell.@@ -643,7 +647,7 @@ Displays the list model of the schema.-#### Register model+#### Register ModelClick on the `REGISTER MODEL` button displays the dialog to register a model.@@ -655,15 +659,15 @@ Register a model needs these fields:2. **Comment**(_optional_): the comment of the model.3. **Properties**(_optional_): Click on the `ADD PROPERTY` button to add custom properties.-#### Show model details+#### Show Model DetailsClick on the action icon <Icon icon='bx:show-alt' fontSize='24' /> in the table cell.-You can see the detailed information of this model in the drawer component on the right.+See the detailed information of this model in the drawer component on the right.-#### Drop model+#### Drop ModelClick on the action icon <Icon icon='mdi:delete-outline' fontSize='24' color='red' /> in the table cell.@@ -679,7 +683,7 @@ Displays the list versions of the model.-#### Link version+#### Link VersionClick on the `LINK VERSION` button displays the dialog to link a version.@@ -692,15 +696,15 @@ Link a version needs these fields:3. **Comment**(_optional_): the comment of the model.4. **Properties**(_optional_): Click on the `ADD PROPERTY` button to add custom properties.-#### Show version details+#### Show Version DetailsClick on the action icon <Icon icon='bx:show-alt' fontSize='24' /> in the table cell.-You can see the detailed information of this version in the drawer component on the right.+See the detailed information of this version in the drawer component on the right.-#### Drop version+#### Drop VersionClick on the action icon <Icon icon='mdi:delete-outline' fontSize='24' color='red' /> in the table cell.@@ -708,7 +712,7 @@ Displays a confirmation dialog, clicking on the `DROP` button drops this version-## Feature capabilities+## Feature Capabilities| Page | Capabilities || -------- | --------------------------------------------------------------------------------- |@@ -721,7 +725,7 @@ Displays a confirmation dialog, clicking on the `DROP` button drops this version| Model | _`View`_ ✔ / _`Create`_ ✔ / _`Edit`_ ✘ / _`Delete`_ ✔ || Version | _`View`_ ✔ / _`Create`_ ✔ / _`Edit`_ ✘ / _`Delete`_ ✔ |-## E2E test+## E2E TestEnd-to-end testing for web frontends is conducted using the [Selenium](https://www.selenium.dev/documentation/) testing framework, which is Java-based.