morningman commented on code in PR #17927:
URL: https://github.com/apache/doris/pull/17927#discussion_r1141630652


##########
docs/zh-CN/docs/lakehouse/multi-catalog/hive.md:
##########
@@ -207,3 +190,92 @@ CREATE CATALOG hive PROPERTIES (
 | `map<KeyType, ValueType>` | `map<KeyType, ValueType>` | 暂不支持嵌套,KeyType 和 
ValueType 需要为基础类型 |
 | `struct<col1: Type1, col2: Type2, ...>` | `struct<col1: Type1, col2: Type2, 
...>` | 暂不支持嵌套,Type1, Type2, ... 需要为基础类型 |
 | other | unsupported | |
+
+<version since="dev">
+
+## 使用Ranger进行权限校验
+</version>
+
+### 环境配置
+
+连接开启 Ranger 权限校验的 Hive Metastore 需要增加配置 & 配置环境:
+1. 创建 Catalog 时增加:
+
+```sql
+"access_controller.properties.ranger.service.name" = "<the ranger servive name 
your hms using>",
+"access_controller.class" = 
"org.apache.doris.catalog.authorizer.RangerHiveAccessControllerFactory",
+```
+2. 配置所有 FE 环境:
+    
+   a. 将 HMS conf 目录下的三个 Ranger 配置文件Copy到 <doris_home>/conf 目录下。

Review Comment:
   写明ranger配置文件的名称



##########
docs/zh-CN/docs/lakehouse/multi-catalog/hive.md:
##########
@@ -207,3 +190,92 @@ CREATE CATALOG hive PROPERTIES (
 | `map<KeyType, ValueType>` | `map<KeyType, ValueType>` | 暂不支持嵌套,KeyType 和 
ValueType 需要为基础类型 |
 | `struct<col1: Type1, col2: Type2, ...>` | `struct<col1: Type1, col2: Type2, 
...>` | 暂不支持嵌套,Type1, Type2, ... 需要为基础类型 |
 | other | unsupported | |
+
+<version since="dev">
+
+## 使用Ranger进行权限校验
+</version>
+
+### 环境配置
+
+连接开启 Ranger 权限校验的 Hive Metastore 需要增加配置 & 配置环境:
+1. 创建 Catalog 时增加:
+
+```sql
+"access_controller.properties.ranger.service.name" = "<the ranger servive name 
your hms using>",
+"access_controller.class" = 
"org.apache.doris.catalog.authorizer.RangerHiveAccessControllerFactory",
+```
+2. 配置所有 FE 环境:
+    
+   a. 将 HMS conf 目录下的三个 Ranger 配置文件Copy到 <doris_home>/conf 目录下。
+
+   b. 修改 ranger-<ranger_service_name>-security.xml 的属性,参考配置如下:

Review Comment:
   ```suggestion
      2. 修改 ranger-<ranger_service_name>-security.xml 的属性,参考配置如下:
   ```



##########
docs/zh-CN/docs/lakehouse/multi-catalog/hive.md:
##########
@@ -207,3 +190,92 @@ CREATE CATALOG hive PROPERTIES (
 | `map<KeyType, ValueType>` | `map<KeyType, ValueType>` | 暂不支持嵌套,KeyType 和 
ValueType 需要为基础类型 |
 | `struct<col1: Type1, col2: Type2, ...>` | `struct<col1: Type1, col2: Type2, 
...>` | 暂不支持嵌套,Type1, Type2, ... 需要为基础类型 |
 | other | unsupported | |
+
+<version since="dev">
+
+## 使用Ranger进行权限校验
+</version>
+
+### 环境配置
+
+连接开启 Ranger 权限校验的 Hive Metastore 需要增加配置 & 配置环境:
+1. 创建 Catalog 时增加:
+
+```sql
+"access_controller.properties.ranger.service.name" = "<the ranger servive name 
your hms using>",
+"access_controller.class" = 
"org.apache.doris.catalog.authorizer.RangerHiveAccessControllerFactory",
+```
+2. 配置所有 FE 环境:
+    
+   a. 将 HMS conf 目录下的三个 Ranger 配置文件Copy到 <doris_home>/conf 目录下。
+
+   b. 修改 ranger-<ranger_service_name>-security.xml 的属性,参考配置如下:
+```xml
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<configuration>
+    #缓存权限数据的目录,需要可写

Review Comment:
   使用英文



##########
docs/zh-CN/docs/lakehouse/multi-catalog/hive.md:
##########
@@ -207,3 +190,92 @@ CREATE CATALOG hive PROPERTIES (
 | `map<KeyType, ValueType>` | `map<KeyType, ValueType>` | 暂不支持嵌套,KeyType 和 
ValueType 需要为基础类型 |
 | `struct<col1: Type1, col2: Type2, ...>` | `struct<col1: Type1, col2: Type2, 
...>` | 暂不支持嵌套,Type1, Type2, ... 需要为基础类型 |
 | other | unsupported | |
+
+<version since="dev">
+
+## 使用Ranger进行权限校验
+</version>
+
+### 环境配置
+
+连接开启 Ranger 权限校验的 Hive Metastore 需要增加配置 & 配置环境:
+1. 创建 Catalog 时增加:
+
+```sql
+"access_controller.properties.ranger.service.name" = "<the ranger servive name 
your hms using>",
+"access_controller.class" = 
"org.apache.doris.catalog.authorizer.RangerHiveAccessControllerFactory",
+```
+2. 配置所有 FE 环境:
+    
+   a. 将 HMS conf 目录下的三个 Ranger 配置文件Copy到 <doris_home>/conf 目录下。

Review Comment:
   ```suggestion
      1. 将 HMS conf 目录下的三个 Ranger 配置文件Copy到 <doris_home>/conf 目录下。
   ```



##########
docs/zh-CN/docs/lakehouse/multi-catalog/hive.md:
##########
@@ -207,3 +190,92 @@ CREATE CATALOG hive PROPERTIES (
 | `map<KeyType, ValueType>` | `map<KeyType, ValueType>` | 暂不支持嵌套,KeyType 和 
ValueType 需要为基础类型 |
 | `struct<col1: Type1, col2: Type2, ...>` | `struct<col1: Type1, col2: Type2, 
...>` | 暂不支持嵌套,Type1, Type2, ... 需要为基础类型 |
 | other | unsupported | |
+
+<version since="dev">
+
+## 使用Ranger进行权限校验
+</version>

Review Comment:
   这里要写明目前支持的ranger的功能,比如库、表、列。不支持加密、行权限等。



##########
docs/zh-CN/docs/lakehouse/multi-catalog/hive.md:
##########
@@ -207,3 +190,92 @@ CREATE CATALOG hive PROPERTIES (
 | `map<KeyType, ValueType>` | `map<KeyType, ValueType>` | 暂不支持嵌套,KeyType 和 
ValueType 需要为基础类型 |
 | `struct<col1: Type1, col2: Type2, ...>` | `struct<col1: Type1, col2: Type2, 
...>` | 暂不支持嵌套,Type1, Type2, ... 需要为基础类型 |
 | other | unsupported | |
+
+<version since="dev">
+
+## 使用Ranger进行权限校验
+</version>
+
+### 环境配置
+
+连接开启 Ranger 权限校验的 Hive Metastore 需要增加配置 & 配置环境:
+1. 创建 Catalog 时增加:
+
+```sql
+"access_controller.properties.ranger.service.name" = "<the ranger servive name 
your hms using>",
+"access_controller.class" = 
"org.apache.doris.catalog.authorizer.RangerHiveAccessControllerFactory",
+```
+2. 配置所有 FE 环境:
+    
+   a. 将 HMS conf 目录下的三个 Ranger 配置文件Copy到 <doris_home>/conf 目录下。
+
+   b. 修改 ranger-<ranger_service_name>-security.xml 的属性,参考配置如下:
+```xml

Review Comment:
   注意缩进



##########
docs/zh-CN/docs/lakehouse/multi-catalog/hive.md:
##########
@@ -207,3 +190,92 @@ CREATE CATALOG hive PROPERTIES (
 | `map<KeyType, ValueType>` | `map<KeyType, ValueType>` | 暂不支持嵌套,KeyType 和 
ValueType 需要为基础类型 |
 | `struct<col1: Type1, col2: Type2, ...>` | `struct<col1: Type1, col2: Type2, 
...>` | 暂不支持嵌套,Type1, Type2, ... 需要为基础类型 |
 | other | unsupported | |
+
+<version since="dev">
+
+## 使用Ranger进行权限校验
+</version>

Review Comment:
   ```suggestion
   <version since="dev"></version>
   ```
   
   直接这样写吧



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to