Skip to content

Commit 0d348c9

Browse files
authored
Update apache-spark-zeppelin-notebook.md
Added example shiro.ini for configuring multiple domain groups
1 parent ced23e7 commit 0d348c9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

articles/hdinsight/spark/apache-spark-zeppelin-notebook.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,21 @@ Privileged domain users can use the `Shiro.ini` file to control access to the In
165165
/api/interpreter/** = authc, roles[adminGroupName]
166166
```
167167
168+
### Example shiro.ini for multiple domain groups:
169+
170+
```
171+
[main]
172+
anyofrolesuser = org.apache.zeppelin.utils.AnyOfRolesUserAuthorizationFilter
173+
174+
[roles]
175+
group1 = *
176+
group2 = *
177+
group3 = *
178+
179+
[urls]
180+
/api/interpreter/** = authc, anyofrolesuser[group1, group2, group3]
181+
```
182+
168183
## Livy session management
169184
170185
The first code paragraph in your Zeppelin notebook creates a new Livy session in your cluster. This session is shared across all Zeppelin notebooks that you later create. If the Livy session is killed for any reason, jobs won't run from the Zeppelin notebook.

0 commit comments

Comments
 (0)