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

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 732526ba58 [doc](multi-catalog) paimon catalog doc (#20503)
732526ba58 is described below

commit 732526ba5866d66ba9c18e23791d019841121163
Author: yuxuan-luo <[email protected]>
AuthorDate: Wed Jun 7 14:21:07 2023 +0800

    [doc](multi-catalog) paimon catalog doc (#20503)
---
 docs/en/docs/lakehouse/multi-catalog/paimon.md    | 61 ++++++++++++++++++++++
 docs/sidebars.json                                |  1 +
 docs/zh-CN/docs/lakehouse/multi-catalog/paimon.md | 62 +++++++++++++++++++++++
 3 files changed, 124 insertions(+)

diff --git a/docs/en/docs/lakehouse/multi-catalog/paimon.md 
b/docs/en/docs/lakehouse/multi-catalog/paimon.md
new file mode 100644
index 0000000000..0dcb0f2011
--- /dev/null
+++ b/docs/en/docs/lakehouse/multi-catalog/paimon.md
@@ -0,0 +1,61 @@
+---
+{
+"title": "Paimon",
+"language": "en"
+}
+---
+
+<!-- 
+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.
+-->
+
+
+# Paimon
+<version since="dev">
+</version>
+
+## Usage
+
+1. Currently, Doris only supports simple field types.
+2. Doris only supports Hive Metastore Catalogs currently. The usage is 
basically the same as that of Hive Catalogs. More types of Catalogs will be 
supported in future versions.
+
+## Create Catalog
+
+### Create Catalog Based on Paimon API
+
+Use the Paimon API to access metadata.Currently, only support Hive service as 
Paimon's Catalog.
+
+- Hive Metastore
+
+```sql
+CREATE CATALOG `paimon` PROPERTIES (
+    "type" = "paimon",
+    "hive.metastore.uris" = "thrift://172.16.65.15:7004",
+    "dfs.ha.namenodes.HDFS1006531" = "nn2,nn1",
+    "dfs.namenode.rpc-address.HDFS1006531.nn2" = "172.16.65.115:4007",
+    "dfs.namenode.rpc-address.HDFS1006531.nn1" = "172.16.65.15:4007",
+    "dfs.nameservices" = "HDFS1006531",
+    "hadoop.username" = "hadoop",
+    "warehouse" = "hdfs://HDFS1006531/data/paimon",
+    "dfs.client.failover.proxy.provider.HDFS1006531" = 
"org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider"
+);
+```
+
+## Column Type Mapping
+
+Same as that in Hive Catalogs. See the relevant section in [Hive](./hive.md).
diff --git a/docs/sidebars.json b/docs/sidebars.json
index 947670c78e..7489d61dc7 100644
--- a/docs/sidebars.json
+++ b/docs/sidebars.json
@@ -206,6 +206,7 @@
                         "lakehouse/multi-catalog/multi-catalog",
                         "lakehouse/multi-catalog/hive",
                         "lakehouse/multi-catalog/iceberg",
+                        "lakehouse/multi-catalog/paimon",
                         "lakehouse/multi-catalog/hudi",
                         "lakehouse/multi-catalog/es",
                         "lakehouse/multi-catalog/jdbc",
diff --git a/docs/zh-CN/docs/lakehouse/multi-catalog/paimon.md 
b/docs/zh-CN/docs/lakehouse/multi-catalog/paimon.md
new file mode 100644
index 0000000000..69f6ef16f9
--- /dev/null
+++ b/docs/zh-CN/docs/lakehouse/multi-catalog/paimon.md
@@ -0,0 +1,62 @@
+---
+{
+"title": "Paimon",
+"language": "zh-CN"
+}
+---
+
+<!-- 
+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.
+-->
+
+
+# Paimon
+<version since="dev">
+</version>
+
+## 使用限制
+
+1. 目前只支持简单字段类型。
+2. 目前仅支持 Hive Metastore 类型的 Catalog。所以使用方式和 Hive Catalog 基本一致。后续版本将支持其他类型的 
Catalog。
+
+## 创建 Catalog
+
+### 基于Paimon API创建Catalog
+
+使用Paimon API访问元数据的方式,目前只支持Hive服务作为Paimon的Catalog。
+
+- Hive Metastore 作为元数据服务
+
+```sql
+CREATE CATALOG `paimon` PROPERTIES (
+    "type" = "paimon",
+    "hive.metastore.uris" = "thrift://172.16.65.15:7004",
+    "dfs.ha.namenodes.HDFS1006531" = "nn2,nn1",
+    "dfs.namenode.rpc-address.HDFS1006531.nn2" = "172.16.65.115:4007",
+    "dfs.namenode.rpc-address.HDFS1006531.nn1" = "172.16.65.15:4007",
+    "dfs.nameservices" = "HDFS1006531",
+    "hadoop.username" = "hadoop",
+    "warehouse" = "hdfs://HDFS1006531/data/paimon",
+    "dfs.client.failover.proxy.provider.HDFS1006531" = 
"org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider"
+);
+```
+
+## 列类型映射
+
+和 Hive Catalog 基本一致,可参阅 [Hive Catalog](./hive.md) 中 **列类型映射** 一节。
+


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to