Skip to content

Commit

Permalink
Fix several document errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqi1129 committed Jan 15, 2025
1 parent 39ad18a commit 3897d9b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/hadoop-catalog-with-gcs.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Refer to [Fileset configurations](./hadoop-catalog.md#fileset-properties) for mo

This section will show you how to use the Hadoop catalog with GCS in Gravitino, including detailed examples.

### Create a Hadoop catalog with GCS
### Step1: Create a Hadoop catalog with GCS

First, you need to create a Hadoop catalog with GCS. The following example shows how to create a Hadoop catalog with GCS:

Expand Down
5 changes: 2 additions & 3 deletions docs/hadoop-catalog-with-oss.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ oss_catalog = gravitino_client.create_catalog(name="test_catalog",
</TabItem>
</Tabs>

Step 2: Create a Schema
### Step 2: Create a Schema

Once the Hadoop catalog with OSS is created, you can create a schema inside that catalog. Below are examples of how to do this:

Expand Down Expand Up @@ -174,11 +174,10 @@ catalog.as_schemas().create_schema(name="test_schema",
</Tabs>


### Create a fileset
### Step3: Create a fileset

Now that the schema is created, you can create a fileset inside it. Here’s how:


<Tabs groupId="language" queryString>
<TabItem value="shell" label="Shell">

Expand Down
6 changes: 6 additions & 0 deletions docs/hive-catalog-with-cloud-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,14 @@ cp ${HADOOP_HOME}/share/hadoop/tools/lib/*aws* ${HIVE_HOME}/lib

# For Azure Blob Storage(ADLS)
cp ${HADOOP_HOME}/share/hadoop/tools/lib/*azure* ${HIVE_HOME}/lib

# For Google Cloud Storage(GCS)
cp gcs-connector-hadoop3-2.2.22-shaded.jar ${HIVE_HOME}/lib
```

[`gcs-connector-hadoop3-2.2.22-shaded.jar`](https://github.com/GoogleCloudDataproc/hadoop-connectors/releases/download/v2.2.22/gcs-connector-hadoop2-2.2.22-shaded.jar) is the bundle jar that contains Hadoop GCS connector, you need to choose the corresponding gcs connector jar for the version of Hadoop you are using.


Alternatively, 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
Expand Down

0 comments on commit 3897d9b

Please sign in to comment.