jerryshao commented on code in PR #104: URL: https://github.com/apache/gravitino-playground/pull/104#discussion_r1847938771
########## init/ranger/init.sh: ########## @@ -0,0 +1,32 @@ +# +# 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. +# + +# remove command line `tail -f /dev/null` in the `/tmp/start-ranger-services.sh` +sed -i '$d' /tmp/start-ranger-services.sh +sed -i '$d' /tmp/start-ranger-services.sh +/tmp/start-ranger-services.sh + +# https://ranger.apache.org/apidocs/resource_PublicAPIsv2.html#resource_PublicAPIsv2_createService_POST +sleep 5s Review Comment: Do we have a better solution if "5s" is not enough? ########## README.md: ########## @@ -378,6 +378,22 @@ os.environ["OPENAI_API_KEY"] = "" os.environ["OPENAI_API_BASE"] = "" ``` +### Using Gravitino with Ranger authorization + +Gravitino supports to provide the ability of access control for Hive tables using Ranger plugin. + +For example, there are a manager and staffs in your company. Manager creates a Hive catalog and create different roles. +The manager can give different roles to different staffs. + +You can run the command +```shell Review Comment: Can you please add a blank line above. ########## README.md: ########## @@ -378,6 +378,22 @@ os.environ["OPENAI_API_KEY"] = "" os.environ["OPENAI_API_BASE"] = "" ``` +### Using Gravitino with Ranger authorization + +Gravitino supports to provide the ability of access control for Hive tables using Ranger plugin. + +For example, there are a manager and staffs in your company. Manager creates a Hive catalog and create different roles. +The manager can give different roles to different staffs. + +You can run the command +```shell +./playground.sh start --enable-ranger +``` + +The demo is located in the `jupyter` folder, you can open the `gravitino-access-control-example.ipynb` +demo via Jupyter Notebook by [http://localhost:18888](http://localhost:18888). + + Review Comment: Please remove one additional blank line. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
