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 <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, April 5, 2016 at 12:35 PM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
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

Reply via email to