You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by yu...@apache.org on 2026/06/23 12:50:20 UTC

(gravitino) branch main updated: [MINOR] fix(docs): Fix wrong metalake name in the getting-started document (#11774)

This is an automated email from the ASF dual-hosted git repository.

yuqi1129 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new bff164d057 [MINOR] fix(docs): Fix wrong metalake name in the getting-started document (#11774)
bff164d057 is described below

commit bff164d05766bdd2ec771d3fbae5c06783566672
Author: Kengo Seki <se...@apache.org>
AuthorDate: Tue Jun 23 21:50:15 2026 +0900

    [MINOR] fix(docs): Fix wrong metalake name in the getting-started document (#11774)
    
    ### What changes were proposed in this pull request?
    
    This PR changes the example metalake name in the "Getting started"
    document.
    
    ### Why are the changes needed?
    
    Because running the existing command fails with an
    `IllegalArgumentException` error, as follows:
    
    ```
    $ curl -s -X POST -H "Accept: application/vnd.gravitino.v1+json" -H "Content-Type: application/json" -d '{"name":"my-metalake","comment":"Test metalake"}' http://localhost:8090/api/metalakes | jq
    {
      "code": 1001,
      "type": "IllegalArgumentException",
      "message": "Failed to operate metalake(s) [my-metalake] operation [CREATE], reason [The metalake name 'my-metalake' is illegal.]",
    
    (snip)
    ```
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Ran the revised commands locally.
---
 docs/getting-started/index.md | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/docs/getting-started/index.md b/docs/getting-started/index.md
index f9665024eb..e0f4abb511 100644
--- a/docs/getting-started/index.md
+++ b/docs/getting-started/index.md
@@ -171,7 +171,7 @@ Revise based on your environment.
    ```shell
    curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \
      -H "Content-Type: application/json" \
-     -d '{"name":"my-metalake","comment":"Test metalake"}' \
+     -d '{"name":"my_metalake","comment":"Test metalake"}' \
      http://localhost:8090/api/metalakes
    ```
 
@@ -184,7 +184,7 @@ Revise based on your environment.
 
    curl -X GET -H "Accept: application/vnd.gravitino.v1+json" \
      -H "Content-Type: application/json" \
-     http://localhost:8090/api/metalakes/my-metalake
+     http://localhost:8090/api/metalakes/my_metalake
    ```
 
    Note that if you are requesting a Metalake that doesn't exist, you'll get a
@@ -203,7 +203,7 @@ Revise based on your environment.
    ```shell
    curl -X GET -H "Accept: application/vnd.gravitino.v1+json" \
      -H "Content-Type: application/json" \
-     http://localhost:8090/api/metalakes/my-metalake/catalogs
+     http://localhost:8090/api/metalakes/my_metalake/catalogs
    ```
 
    Create a new Hive catalog.
@@ -212,7 +212,7 @@ Revise based on your environment.
    curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \
      -H "Content-Type: application/json" \
      -d '{"name":"my-catalog","comment":"Test catalog", "type":"RELATIONAL", "provider":"hive", "properties":{"metastore.uris":"thrift://localhost:9083"}}' \
-     http://localhost:8090/api/metalakes/my-metalake/catalogs
+     http://localhost:8090/api/metalakes/my_metalake/catalogs
    ```
 
    Verify that the catalog has been created:
@@ -220,7 +220,7 @@ Revise based on your environment.
    ```shell
    curl -X GET -H "Accept: application/vnd.gravitino.v1+json" \
      -H "Content-Type: application/json" \
-     http://localhost:8090/api/metalakes/my-metalake/catalogs
+     http://localhost:8090/api/metalakes/my_metalake/catalogs
    ```
 
    :::tip