<?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 Automatically calling ambari setup-security #2 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115871#M78665</link>
    <description>&lt;P&gt;Encrypting passwords.  I'm trying to install hdp via blueprints (with kerberos).  I need to call ambari-server setup-security then option #2 (pass/pass).  Is there a way to script this?  I'm doing this so i can pass PERSISTED for kerberos cred&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2017 09:37:16 GMT</pubDate>
    <dc:creator>sonnyheer</dc:creator>
    <dc:date>2017-02-21T09:37:16Z</dc:date>
    <item>
      <title>Automatically calling ambari setup-security #2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115871#M78665</link>
      <description>&lt;P&gt;Encrypting passwords.  I'm trying to install hdp via blueprints (with kerberos).  I need to call ambari-server setup-security then option #2 (pass/pass).  Is there a way to script this?  I'm doing this so i can pass PERSISTED for kerberos cred&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 09:37:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115871#M78665</guid>
      <dc:creator>sonnyheer</dc:creator>
      <dc:date>2017-02-21T09:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically calling ambari setup-security #2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115872#M78666</link>
      <description>&lt;P&gt;Has anyone been able to automate ambari-server commands ?  e.g. ssl / encryption setup etc.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 07:10:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115872#M78666</guid>
      <dc:creator>sonnyheer</dc:creator>
      <dc:date>2017-02-22T07:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically calling ambari setup-security #2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115873#M78667</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13108/sonnyheer.html" nodeid="13108"&gt;@Sonny Heer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are using Ambari 2.4  then you can use the automated way to setup security as mentioned in:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/AMBARI-14627" target="_blank"&gt;https://issues.apache.org/jira/browse/AMBARI-14627&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;ambari-server setup-security --security-option=encrypt-passwords --master-key=masterkey --master-key-persist=true&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 11:34:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115873#M78667</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-22T11:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically calling ambari setup-security #2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115874#M78668</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13108/sonnyheer.html" nodeid="13108"&gt;@Sonny Heer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have written a very simple article on this feature for enabling HTTPs you can refer to the same as well:  &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/84861/how-to-generate-the-ambaris-setup-security-options.html" target="_blank"&gt;https://community.hortonworks.com/articles/84861/how-to-generate-the-ambaris-setup-security-options.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- I would suggest you to use the &lt;EM&gt;&lt;STRONG&gt;"ambari-server --help"&lt;/STRONG&gt;&lt;/EM&gt; to get more information about those arguments, there might be slight changes in the argument names.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 12:04:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115874#M78668</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-22T12:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically calling ambari setup-security #2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115875#M78669</link>
      <description>&lt;P&gt;Thanks for the response.  we are actually stuck on 2.2.x&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 12:20:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115875#M78669</guid>
      <dc:creator>sonnyheer</dc:creator>
      <dc:date>2017-02-22T12:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically calling ambari setup-security #2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115876#M78670</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13108/sonnyheer.html" nodeid="13108"&gt;@Sonny Heer
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this feature is available since Ambari 2.4 onwards.  Is there any possibility for you to try upgrading to ambari 2.4 it has lots of improvements in terms of Views, also has a lots of bug fixes and new features to make things more easy.   Upgrading to ambari 2.4 will be quite easy though.&lt;/P&gt;&lt;P&gt;
&lt;A rel="user" href="https://community.cloudera.com/users/13108/sonnyheer.html" nodeid="13108"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 12:25:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115876#M78670</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-22T12:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically calling ambari setup-security #2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115877#M78671</link>
      <description>&lt;P&gt;Unfortunately I'm not able to upgrade.  Somewhat of a hack, but i put together an 'expect' script.  In case someone else is stuck in similar situation. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;#!/usr/bin/env expect

spawn ambari-server setup-security
sleep 0.5
set timeout 3

expect {

  "*Choose one of the following options:*" { send "2\r" }

  timeout

}

expect {

  -re "Please provide master key for locking the credential store:" { send "dev\r" }

  timeout

}

expect {

  -re "Re-enter master key:" { send "dev\r" }

  timeout

}

expect {

  "Do you want to persist master key.*" { send "y\r" }

}

expect eof
&lt;/PRE&gt;&lt;P&gt;This is obviously not great, but does work given no other option ...&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 06:35:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Automatically-calling-ambari-setup-security-2/m-p/115877#M78671</guid>
      <dc:creator>sonnyheer</dc:creator>
      <dc:date>2017-02-23T06:35:43Z</dc:date>
    </item>
  </channel>
</rss>

