You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Roberta Marton <ro...@esgyn.com> on 2016/04/05 18:35:28 UTC
Question on Kerberos enabled cluster
After I Kerberize my cluster using Ambari, I need to install my software.
I need to do different things based on whether the Kerberos is enabled. Is
there an easy way to check, via a script, whether Kerberos has been enabled?
Regards,
Roberta
Re: Question on Kerberos enabled cluster
Posted by Robert Levas <rl...@hortonworks.com>.
Roberta…
You can tell if Kerberos is enabled by checking the cluster-env/security_enabled flag. If true, kerberos is enabled, else is it is not. You will see a lot of code in the agent side scripts that look something like:
params.py:
…
security_enabled = config['configurations']['cluster-env']['security_enabled']
…
script.py:
…
if params.security_enabled:
…
else
…
…
Rob
From: Roberta Marton <ro...@esgyn.com>>
Reply-To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>
Date: Tuesday, April 5, 2016 at 12:35 PM
To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>
Subject: Question on Kerberos enabled cluster
After I Kerberize my cluster using Ambari, I need to install my software. I need to do different things based on whether the Kerberos is enabled. Is there an easy way to check, via a script, whether Kerberos has been enabled?
Regards,
Roberta
Re: Question on Kerberos enabled cluster
Posted by Alexander Denissov <ad...@pivotal.io>.
Hi Roberta,
When Kerberos is enabled, the property "security_enabled" in "cluster-env"
configuration set will be set to true. If you need this information in your
service-side python scripts (such as params.py), you can use:
config = Script.get_config()
security_enabled = config['configurations']['cluster-env']['security_enabled']
--
Thanks,
Alex.
On Tue, Apr 5, 2016 at 9:35 AM, Roberta Marton <ro...@esgyn.com>
wrote:
> After I Kerberize my cluster using Ambari, I need to install my software.
> I need to do different things based on whether the Kerberos is enabled. Is
> there an easy way to check, via a script, whether Kerberos has been enabled?
>
>
>
> Regards,
>
> Roberta
>