<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Sanbox Zeppelin: How to login as maria_dev (not anonymous) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159854#M53359</link>
    <description>&lt;P&gt;Its a two step process involving changes in 4 lines which i have marked below. Access shiro.ini from Ambari using admin user id only . Please note accessing it any other way will not be useful as it will not preserve the change and will keep getting overwritten every time the zapplin service is restarted.&lt;/P&gt;&lt;P&gt;So access shiro.ini in the following path : Ambari, Zeppelin &amp;gt; Configs &amp;gt; Advanced zeppelin-env &amp;gt; shiro_ini_content and make the following changes :&lt;/P&gt;&lt;P&gt;A. &lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;# List of users with their password allowed to access Zeppelin. &lt;/LI&gt;&lt;LI&gt;# To use a different strategy (LDAP / Database / ...) check the shiro doc at &lt;A href="http://shiro.apache.org/configuration.html#Configuration-INISections" target="_blank"&gt;http://shiro.apache.org/configuration.html#Configuration-INISections&lt;/A&gt; &lt;/LI&gt;&lt;LI&gt;maria_dev =&amp;lt;password&amp;gt;, admin  #### &amp;lt;------Add this line  #this is the first change#&lt;/LI&gt;&lt;LI&gt;#admin = password1, admin &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;B.&lt;/P&gt;&lt;P&gt;Near the end of the file there you should file the following lines :&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;# anon means the access is anonymous.&lt;/LI&gt;&lt;LI&gt;# authcBasic means Basic Auth Security&lt;/LI&gt;&lt;LI&gt;# To enfore security, comment the line below and uncomment the next one&lt;/LI&gt;&lt;LI&gt;#/api/version = anon  &amp;lt;------comment this line  #this is the second change#&lt;/LI&gt;&lt;LI&gt;#/** = anon                &amp;lt;------comment this line #this is the third change#&lt;/LI&gt;&lt;LI&gt;/** = authc                 &amp;lt;------uncomment this line #this is the fourthchange#&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Wed, 22 Feb 2017 11:43:47 GMT</pubDate>
    <dc:creator>arnabarnab</dc:creator>
    <dc:date>2017-02-22T11:43:47Z</dc:date>
    <item>
      <title>Sanbox Zeppelin: How to login as maria_dev (not anonymous)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159845#M53350</link>
      <description>&lt;P&gt;Hi.  I have started a HDP Sandbox 2.5.0 in Azure.  I see that current sandbox has issue in that Zeppelin is not accessible from Abari Views.  I can get to Zeppelin via port 9995 in browser but it has me as anonymous.  How can I switch to being user maria_dev and interact w/ my sandbox.hortonworks.com build in Zeppelin?&lt;/P&gt;&lt;P&gt;Thanks. - Colin&lt;/P&gt;&lt;P&gt;p.s. I was unsuccessfully trying to move my way thru the tutorial here, &lt;A href="https://github.com/hortonworks/tutorials/blob/hdp-2.5/tutorials/hortonworks/getting-started-with-apache-zeppelin/tutorial.md" target="_blank"&gt;https://github.com/hortonworks/tutorials/blob/hdp-2.5/tutorials/hortonworks/getting-started-with-apache-zeppelin/tutorial.md&lt;/A&gt;.  &lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 01:42:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159845#M53350</guid>
      <dc:creator>colin_a_cunning</dc:creator>
      <dc:date>2017-02-04T01:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sanbox Zeppelin: How to login as maria_dev (not anonymous)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159846#M53351</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/15799/colinacunningham.html" nodeid="15799"&gt;@Colin Cunningham&lt;/A&gt;&lt;P&gt;By default zeppelin is configured with anonymous authentcation. You must set [url] section in shiro_ini of zeppelin service as below. And without AD/LDAP authencation you can set the usernames in [users]. After this changes restart zeppelin services. Now with /api/anon commented you must  login with user name set in [users]&lt;/P&gt;&lt;PRE&gt;[users] 
# List of users with their password allowed to access Zeppelin. 
# To use a different strategy (LDAP / Database / ...) check the shiro doc at &lt;A href="http://shiro.apache.org/configuration.html#Configuration-INISections" target="_blank"&gt;http://shiro.apache.org/configuration.html#Configuration-INISections&lt;/A&gt; 
maria_dev = &amp;lt;password&amp;gt; , admin  #### Add this line 
#admin = password1, admin 
#user1 = password2, role1, role2 
#user2 = password3, role3 

[urls] 

# This section is used for url-based security. 
# You can secure interpreter, configuration and credential information by urls. Comment or uncomment the below urls that you want to hide. 
# anon means the access is anonymous. 
# authc means Form based Auth Security 
# To enfore security, comment the line below and uncomment the next one 
/api/version = anon 
#/** = anon ###Comment anon
/** = authc    ####Add this line
&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Feb 2017 01:47:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159846#M53351</guid>
      <dc:creator>rguruvannagari</dc:creator>
      <dc:date>2017-02-04T01:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sanbox Zeppelin: How to login as maria_dev (not anonymous)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159847#M53352</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/15799/colinacunningham.html"&gt;Colin Cunningham&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can follow below steps:&lt;/P&gt;&lt;P&gt;Go to shiro.ini file and edit following section:&lt;/P&gt;&lt;P&gt;1) Under [users] section, you can put username and password you want to use for login :&lt;/P&gt;&lt;PRE&gt;[users]
# List of users with their password allowed to access Zeppelin.
# To use a different strategy (LDAP / Database / ...) check the shiro doc at &lt;A href="http://shiro.apache.org/configuration.html#Configuration-INISections" target="_blank"&gt;http://shiro.apache.org/configuration.html#Configuration-INISections&lt;/A&gt;
admin = password1
maria_dev = maria_dev
&lt;/PRE&gt;&lt;P&gt;2) Under [Url] section make below change:&lt;/P&gt;&lt;PRE&gt;[urls]
# anon means the access is anonymous.
# authcBasic means Basic Auth Security
# To enfore security, comment the line below and uncomment the next one
/api/version = anon
#/** = anon
/** = authc
&lt;/PRE&gt;&lt;P&gt;3) Restart the service.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 01:52:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159847#M53352</guid>
      <dc:creator>lraheja</dc:creator>
      <dc:date>2017-02-04T01:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sanbox Zeppelin: How to login as maria_dev (not anonymous)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159848#M53353</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 02:38:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159848#M53353</guid>
      <dc:creator>colin_a_cunning</dc:creator>
      <dc:date>2017-02-04T02:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sanbox Zeppelin: How to login as maria_dev (not anonymous)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159849#M53354</link>
      <description>&lt;P&gt;Thank you.  I restarted service but going to browser on :9995, I guess I still don't know how to switch from the user anonymous.    below is how the tail of my shiro.ini [urls] section now reads in case you see any issue here.&lt;/P&gt;&lt;P&gt;-Colin&lt;/P&gt;&lt;P&gt;/api/version = anon &lt;/P&gt;&lt;P&gt;/** = anon &lt;/P&gt;&lt;P&gt;#/** = authc&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 02:40:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159849#M53354</guid>
      <dc:creator>colin_a_cunning</dc:creator>
      <dc:date>2017-02-04T02:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sanbox Zeppelin: How to login as maria_dev (not anonymous)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159850#M53355</link>
      <description>&lt;P&gt;@Iraheja or &lt;A rel="user" href="https://community.cloudera.com/users/3576/rguruvannagari.html" nodeid="3576"&gt;@rguruvannagari&lt;/A&gt; .  Thanks for both your answers.  Any pointers how to switch users in Zeppelin?  I'm stuck on anonymous still after restarting zeppelin w/ the above changes to my shiro.ini config file.  I don't see a way in the zeppelin UI to switch users.  I can update the 'credential' but I don't really know what that is for.  I am clearly a zeppelin newbie.  -Colin &lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 03:27:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159850#M53355</guid>
      <dc:creator>colin_a_cunning</dc:creator>
      <dc:date>2017-02-04T03:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sanbox Zeppelin: How to login as maria_dev (not anonymous)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159851#M53356</link>
      <description>&lt;P&gt;Can you please provide shiro ini content ?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 04:26:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159851#M53356</guid>
      <dc:creator>rguruvannagari</dc:creator>
      <dc:date>2017-02-04T04:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sanbox Zeppelin: How to login as maria_dev (not anonymous)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159852#M53357</link>
      <description>&lt;PRE&gt;[root@sandbox conf]# more shiro.ini

[users]
# List of users with their password allowed to access Zeppelin.
# To use a different strategy (LDAP / Database / ...) check the shiro doc at &lt;A href="http://shiro.apache.org/configuration.html#Configuration-INISections" target="_blank"&gt;http://shiro.apache.org/configuration.html#Configuration-INISections&lt;/A&gt;
#admin = password1
#user1 = password2, role1, role2
#user2 = password3, role3
#user3 = password4, role2


# Sample LDAP configuration, for user Authentication, currently tested for single Realm
[main]
#activeDirectoryRealm = org.apache.zeppelin.server.ActiveDirectoryGroupRealm
#activeDirectoryRealm.systemUsername = CN=Administrator,CN=Users,DC=HW,DC=EXAMPLE,DC=COM
#activeDirectoryRealm.systemPassword = Password1!
#activeDirectoryRealm.hadoopSecurityCredentialPath = jceks://user/zeppelin/zeppelin.jceks
#activeDirectoryRealm.searchBase = CN=Users,DC=HW,DC=TEST,DC=COM
#activeDirectoryRealm.url = ldap://ad-nano.test.example.com:389
#activeDirectoryRealm.groupRolesMap = ""
#activeDirectoryRealm.authorizationCachingEnabled = true


#ldapRealm = org.apache.shiro.realm.ldap.JndiLdapRealm
#ldapRealm.userDnTemplate = uid={0},cn=users,cn=accounts,dc=example,dc=com
#ldapRealm.contextFactory.url = ldap://ldaphost:389
#ldapRealm.contextFactory.authenticationMechanism = SIMPLE
#sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
#securityManager.sessionManager = $sessionManager
# 86,400,000 milliseconds = 24 hour
#securityManager.sessionManager.globalSessionTimeout = 86400000
shiro.loginUrl = /api/login


[urls]
# anon means the access is anonymous.
# authcBasic means Basic Auth Security
# To enfore security, comment the line below and uncomment the next one
/api/version = anon
/** = anon
#/** = authc
&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Feb 2017 04:59:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159852#M53357</guid>
      <dc:creator>colin_a_cunning</dc:creator>
      <dc:date>2017-02-04T04:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sanbox Zeppelin: How to login as maria_dev (not anonymous)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159853#M53358</link>
      <description>&lt;P style="margin-left: 20px;"&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3576/rguruvannagari.html" nodeid="3576"&gt;@rguruvannagari&lt;/A&gt;.  I don't know if it was the trick but I set the property zeppelin.anonymous.allowed to false in conf/zeppelin-site.xml and then restarted zeppelin.  i also noticed that my shiro.ini changes were reversed or reset to the original.  confused but now i was prompted for login.  I used maria_dev and it worked.  i will carry on w/ the tutorial.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 05:38:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159853#M53358</guid>
      <dc:creator>colin_a_cunning</dc:creator>
      <dc:date>2017-02-04T05:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sanbox Zeppelin: How to login as maria_dev (not anonymous)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159854#M53359</link>
      <description>&lt;P&gt;Its a two step process involving changes in 4 lines which i have marked below. Access shiro.ini from Ambari using admin user id only . Please note accessing it any other way will not be useful as it will not preserve the change and will keep getting overwritten every time the zapplin service is restarted.&lt;/P&gt;&lt;P&gt;So access shiro.ini in the following path : Ambari, Zeppelin &amp;gt; Configs &amp;gt; Advanced zeppelin-env &amp;gt; shiro_ini_content and make the following changes :&lt;/P&gt;&lt;P&gt;A. &lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;# List of users with their password allowed to access Zeppelin. &lt;/LI&gt;&lt;LI&gt;# To use a different strategy (LDAP / Database / ...) check the shiro doc at &lt;A href="http://shiro.apache.org/configuration.html#Configuration-INISections" target="_blank"&gt;http://shiro.apache.org/configuration.html#Configuration-INISections&lt;/A&gt; &lt;/LI&gt;&lt;LI&gt;maria_dev =&amp;lt;password&amp;gt;, admin  #### &amp;lt;------Add this line  #this is the first change#&lt;/LI&gt;&lt;LI&gt;#admin = password1, admin &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;B.&lt;/P&gt;&lt;P&gt;Near the end of the file there you should file the following lines :&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;# anon means the access is anonymous.&lt;/LI&gt;&lt;LI&gt;# authcBasic means Basic Auth Security&lt;/LI&gt;&lt;LI&gt;# To enfore security, comment the line below and uncomment the next one&lt;/LI&gt;&lt;LI&gt;#/api/version = anon  &amp;lt;------comment this line  #this is the second change#&lt;/LI&gt;&lt;LI&gt;#/** = anon                &amp;lt;------comment this line #this is the third change#&lt;/LI&gt;&lt;LI&gt;/** = authc                 &amp;lt;------uncomment this line #this is the fourthchange#&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 22 Feb 2017 11:43:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159854#M53359</guid>
      <dc:creator>arnabarnab</dc:creator>
      <dc:date>2017-02-22T11:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sanbox Zeppelin: How to login as maria_dev (not anonymous)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159855#M53360</link>
      <description>&lt;P&gt;Its a two step process and has to be done from Ambari only. Otherwise the changes will not be retained in shiro.ini and it will get overwritten the moment zapplin service is restarted. Any way here are the steps :&lt;/P&gt;&lt;P&gt;from ambari  Zeppelin &amp;gt; Configs &amp;gt; Advanced zeppelin-env &amp;gt; shiro_ini_content and change the following :&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;[users]&lt;/LI&gt;&lt;LI&gt;# List of users with their password allowed to access Zeppelin. &lt;/LI&gt;&lt;LI&gt;# To use a different strategy (LDAP / Database / ...) check the shiro doc at &lt;A href="http://shiro.apache.org/configuration.html#Configuration-INISections" target="_blank"&gt;http://shiro.apache.org/configuration.html#Configuration-INISections&lt;/A&gt; &lt;/LI&gt;&lt;LI&gt;maria_dev =&amp;lt;password&amp;gt;, admin  #### Add this line &lt;/LI&gt;&lt;LI&gt;#admin = password1, admin &lt;/LI&gt;&lt;LI&gt;#user1 = password2, role1, role2 &lt;/LI&gt;&lt;LI&gt;#user2 = password3, role3 &lt;/LI&gt;&lt;LI&gt;[urls]&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;B. Under URL section make the changes shown below :&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;[urls]&lt;/LI&gt;&lt;LI&gt;# anon means the access is anonymous.&lt;/LI&gt;&lt;LI&gt;# authcBasic means Basic Auth Security&lt;/LI&gt;&lt;LI&gt;# To enfore security, comment the line below and uncomment the next one&lt;/LI&gt;&lt;LI&gt;#/api/version = anon  ## commened this line&lt;/LI&gt;&lt;LI&gt;#/** = anon  ##commented this line&lt;/LI&gt;&lt;LI&gt;/** = authc  ## uncommented this line&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Then restart zapplin. try to log in again. This should solve the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 11:51:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sanbox-Zeppelin-How-to-login-as-maria-dev-not-anonymous/m-p/159855#M53360</guid>
      <dc:creator>arnabarnab</dc:creator>
      <dc:date>2017-02-22T11:51:24Z</dc:date>
    </item>
  </channel>
</rss>

