Configure Zeppelin for Authentication: Non-Production Use
The following steps provide a quick, basic form of authentication. This approach is not for production use; usernames and passwords are exposed in clear text. For production use, you should use LDAP or Active Directory as the identity source.
To configure authentication for informal use or testing:
Populate the
[urls]
section as follows:Specify
authc
as the authentication method in the URL section ofshiro.ini
contents, and make sure that theauthc
line is not commented out.To disable anonymous access to Zeppelin, add a comment character (
#
) at the start of the line containing/** = anon
.
Here is an example:
[urls] #/api/version = anon #/** = anon /** = authc
Populate the
[users]
section as follows:Specify authorized accounts and associated passwords in
shiro_ini
settings: for clusters managed by Ambari, updateshiro_ini_content
; for non-Ambari clusters, update theshiro.ini
file.The following example configures authentication for users
admin
,user1
, anduser2
, with passwordspassword1
,password2
, andpassword3
, respectively:[users] admin = password1 user1 = password2 user2 = password3
Restart the Zeppelin server using Ambari or, for a cluster not managed by Ambari, follow the instructions in Installing and Configuring Apache Zeppelin in the Non-Ambari Cluster Installation Guide.
After completing these steps, Zeppelin requires authentication of user credentials before allowing access to the Zeppelin UI.