[
https://issues.apache.org/jira/browse/METRON-1389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16328265#comment-16328265
]
ASF GitHub Bot commented on METRON-1389:
----------------------------------------
Github user anandsubbu commented on a diff in the pull request:
https://github.com/apache/metron/pull/888#discussion_r161955419
--- Diff:
metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/indexing_master.py
---
@@ -162,9 +163,21 @@ def zeppelin_notebook_import(self, env):
--- End diff --
In Ambari, the Shiro INI content appears as a template like here:
<img width="1274" alt="zeppelin-config-shiro-ini"
src="https://user-images.githubusercontent.com/20395490/35026106-0a038a28-fb6f-11e7-93e3-371e5fa353d0.png">
And this can be fetched using Ambari API as follows:
http://<ambari-node>:8080/api/v1/clusters/cl1/configurations?type=zeppelin-shiro-ini&tag=version1
Which I am fetching in the `status_params.py` as
```
zeppelin_shiro_ini_content =
config['configurations']['zeppelin-shiro-ini']['shiro_ini_content']
```
I found it easy to parse this from the content. Could you please clarify
how I can use `dict` to get this info?
> Zeppelin notebook import does not work with Ambari 2.6
> ------------------------------------------------------
>
> Key: METRON-1389
> URL: https://issues.apache.org/jira/browse/METRON-1389
> Project: Metron
> Issue Type: Bug
> Affects Versions: 0.4.2
> Reporter: Anand Subramanian
> Assignee: Anand Subramanian
> Priority: Major
> Fix For: Next + 1
>
>
> This issue is seen with Ambari 2.6.0.0.
> Doing 'Metron -> Service Actions -> Zeppelin Notebook Import' shows that the
> notebooks have been imported, but when I go to the Zeppelin dashboard, I
> cannot find any of the notebooks.
> In recent versions of Ambari, [Shiro
> Authentication|https://zeppelin.apache.org/docs/0.6.0/security/shiroauthentication.html]
> is enabled which requires a user/password authentication in order to
> interact with Zeppelin. We need to incorporate this in order to be able to
> import metron Zeppelin notebooks.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)