PostgreSQL 中的用户对 Apache Zeppelin 中的用户的特权

Privileges to users in Apache Zeppelin from users in PostgreSQL

我已经设置了一个 PostgreSQL 数据库并创建了三个用户:

- admin (all privileges) 
- user1 (access table1_for_user1)
- user2 (access table2_for_user2)

同样,我创建了这个基础(某个数据库)并在其中创建了两个表:

table1_for_user1
table2_for_user2

按逻辑理解,如果我在 Apache Zeppelin 中将连接配置为管理员 (admin),我将能够对数据库的两个表进行选择。在 Apache Zeppelin 中,我也创建了两个用户:

- user1
- user2

如何在 Apache Zeppelin 中正确配置数据库连接以向用户应用权限。

谢谢。 祝你有美好的一天!

解决:

  • 第 1 步:在 Interpreters 中创建两个用户到 DB 的连接
  • 第 2 步:在权限中仅添加用户 N 所有列。