<?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: cluster setup using ambari blueprint in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cluster-setup-using-ambari-blueprint/m-p/186466#M73359</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;I am familiar with the manual creating but exporting blueprint form other cluster some confusions , below i am listing the steps I do while creating blueprint manually, and iits replacement when we export from other cluster .&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;while we do manual our first step is to create &lt;STRONG&gt;hostmapping.json &lt;/STRONG&gt;file but when we have to export blueprint still we have to do the same .&lt;/LI&gt;&lt;LI&gt;Then we create &lt;STRONG&gt;cluster_configuration.json&lt;/STRONG&gt;  file but in &lt;STRONG&gt;export method&lt;/STRONG&gt; all these configs will come automatically &lt;STRONG&gt;so we do not need to create t&lt;/STRONG&gt;his file , am i right with this ?&lt;/LI&gt;&lt;LI&gt;then we have to create nternal repo .&lt;/LI&gt;&lt;LI&gt;: Register blueprint with
ambari server by executing below command&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;curl -H "X-Requested-By: ambari" -X POST -u
admin:admin &lt;A href="http://&amp;lt;ambari-server-hostname&amp;gt;:8080/api/v1/blueprints/multinode-hdp" target="_blank"&gt;http://&amp;lt;ambari-server-hostname&amp;gt;:8080/api/v1/blueprints/multinode-hdp&lt;/A&gt;
-d @cluster_config.json [here in place of cluster_config.json we have to pass ambari blueprint that we exported from other cluster .&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;setup internal repos&lt;/LI&gt;&lt;LI&gt;pull the trigger! below command to start cluster isntallation&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;curl
-H "X-Requested-By: ambari" -X POST -u admin:admin
&lt;A href="http://&amp;lt;ambari-server-hostname&amp;gt;:8080/api/v1/clusters/multinode-hdp" target="_blank"&gt;http://&amp;lt;ambari-server-hostname&amp;gt;:8080/api/v1/clusters/multinode-hdp&lt;/A&gt; -d
@hostmap.json&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;conclusion &lt;/STRONG&gt;:  basically all the steps are same except creating  cluster_configuration.json  file we are exporting this from another cluster .&lt;/P&gt;&lt;P&gt;This is my whole understanding If I am wrong somewhere please highlight the same .&lt;/P&gt;&lt;P&gt;Thanks in advance .&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;@Jay Kumar SenSharma&lt;/A&gt; can you please check above and help me out &lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2018 16:25:59 GMT</pubDate>
    <dc:creator>amol_08</dc:creator>
    <dc:date>2018-01-11T16:25:59Z</dc:date>
    <item>
      <title>cluster setup using ambari blueprint</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cluster-setup-using-ambari-blueprint/m-p/186463#M73356</link>
      <description>&lt;P&gt;I am planning to build cluster with the help of ambari-blueprint option . I am referring below link to achieve same but some of doubts are there please help me out to understand better.&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-BlueprintUsageOverview" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-BlueprintUsageOverview&lt;/A&gt; &lt;/P&gt;&lt;P&gt;please find below confusion I have :&lt;/P&gt;&lt;P&gt;Step 1: Create Blueprint&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I want to create blueprint exporting from other cluster , my doubt is if i export blueprint from other cluster then if kerberos is implemented in the cluster and HA is achieved then will all configuration reflect in the blueprint ?&lt;/LI&gt;&lt;LI&gt;Is mapping of hosts to  its component also comes when we export ambari blueprint from other cluster ?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;command I am using to export blueprint :&lt;/P&gt;&lt;P&gt;GET /api/v1/clusters/:clusterName?format=blueprint and saving this file to some name , that is name of my blueprint which i will use to register with server .&lt;/P&gt;&lt;P&gt;Step 2: Register Blueprint with Ambari :&lt;/P&gt;&lt;P&gt;POST /api/v1/blueprints/:blueprintName?validate_topology=false&lt;/P&gt;&lt;P&gt;what is the use of validate_topology ?&lt;/P&gt;&lt;P&gt;Step 3: Create Cluster Creation Template :&lt;/P&gt;&lt;P&gt;How to achieve this step as specified in the link&lt;/P&gt;&lt;P&gt;"configuration can be applied at the cluster and host group scope and overrides any configurations specified in the blueprint."&lt;/P&gt;&lt;P&gt;[ Request Body is above Cluster Creation Template ] ------&amp;gt; What does it signify ?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note : I am much confused with all these steps if my doubts do not present clear understanding  please provide your suggestions, if possible step wise, my requirement is to export ambari blueprint from other cluster and use this blueprint to build cluster. I am able to manually setup ambari blueprint but exporting the blueprint and then all the whole procedure I am not very clear with .&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 15:20:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cluster-setup-using-ambari-blueprint/m-p/186463#M73356</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-01-11T15:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: cluster setup using ambari blueprint</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cluster-setup-using-ambari-blueprint/m-p/186464#M73357</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Query1:  &lt;/STRONG&gt;I want to create blueprint exporting from other cluster , my doubt is if
 i export blueprint from other cluster then if kerberos is implemented 
in the cluster and HA is achieved then will all configuration reflect in
 the blueprint ?&lt;/P&gt;&lt;P&gt;   &amp;gt;&amp;gt;&amp;gt;&amp;gt; When we export the blueprint of an existing cluster like following then the Kerberos configuration also comes as it is. However you may need to change the KDC/AD hostname &amp;amp; Port etc details while creating a new cluster to point to Other KDC/AD host.  (If HA is enabled then the HA related information also will appear in the blueprint JSON file)&lt;/P&gt;&lt;PRE&gt;GET /api/v1/clusters/:clusterName?format=blueprint&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Query2:&lt;/STRONG&gt; Is mapping of hosts to its component also comes when we export ambari blueprint from other cluster ?&lt;/P&gt;&lt;P&gt;   &amp;gt;&amp;gt;&amp;gt; When we export the blueprint of an existing cluster then only the cluster service/component  configurations are exported.  We will need to write write our own Hostmaping file based on our requirement.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Query3: &lt;/STRONG&gt;You can store (save) the JSON file with any name you like.  The Blueprint name Is defined inside the Hostmapping JSON file that we create on our own  and the same name need to be passed in the POST API call.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example &lt;/STRONG&gt;hostmapping.json&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{
  "blueprint" : "BlueprintTest",
  "default_password" : "admin",
  "host_groups" :[
    {
      "name" : "host_group_1", 
      "hosts" : [         
        {
          "fqdn" : "test1.example.com"
        }
      ]
    },
.
.
  ],
    "credentials" : [
     {
       "alias" : "kdc.admin.credential",
       "principal" : "admin/admin",
       "key" : "admin",
       "type" : "TEMPORARY"
     }
    ],
    "security" : {
        "type" : "KERBEROS"
   },
   "Clusters" : {
      "cluster_name":"BlueprintCluster"
    }
}
&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Query4: &lt;/STRONG&gt;The "validate_topology" optional flag we can use to tell ambari to enable / disable topology validation and register a blueprint:&lt;/P&gt;&lt;P&gt;When a blueprint is submitted, topology validation is performed. During this validation, the blueprint validator ensures that the blueprint topology is valid based on the component cardinalities specified in the stack.&lt;/P&gt;&lt;P&gt;Some components are specified as being "auto-deploy" enabled in the stack. This means that if the component in not explicitly specified in the blueprint that it will be added according to the information provided in the stack. In the case where a component is added because it wasn't explicitly specified and it is auto-deploy enabled, if it has dependencies itself, these should be validated.&lt;/P&gt;&lt;PRE&gt;POST /api/v1/blueprints/:blueprintName?validate_topology=false&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 15:35:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cluster-setup-using-ambari-blueprint/m-p/186464#M73357</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-01-11T15:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: cluster setup using ambari blueprint</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cluster-setup-using-ambari-blueprint/m-p/186465#M73358</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Some demos can be found here:     &lt;A href="https://github.com/abajwa-hw/ambari-workshops/blob/master/blueprints-demo-security.md" target="_blank"&gt;https://github.com/abajwa-hw/ambari-workshops/blob/master/blueprints-demo-security.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Kerberos Blueprint Article:   &lt;A href="https://community.hortonworks.com/articles/70189/automate-hdp-installation-using-ambari-blueprints-3.html" target="_blank"&gt;https://community.hortonworks.com/articles/70189/automate-hdp-installation-using-ambari-blueprints-3.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 15:38:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cluster-setup-using-ambari-blueprint/m-p/186465#M73358</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-01-11T15:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: cluster setup using ambari blueprint</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cluster-setup-using-ambari-blueprint/m-p/186466#M73359</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;I am familiar with the manual creating but exporting blueprint form other cluster some confusions , below i am listing the steps I do while creating blueprint manually, and iits replacement when we export from other cluster .&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;while we do manual our first step is to create &lt;STRONG&gt;hostmapping.json &lt;/STRONG&gt;file but when we have to export blueprint still we have to do the same .&lt;/LI&gt;&lt;LI&gt;Then we create &lt;STRONG&gt;cluster_configuration.json&lt;/STRONG&gt;  file but in &lt;STRONG&gt;export method&lt;/STRONG&gt; all these configs will come automatically &lt;STRONG&gt;so we do not need to create t&lt;/STRONG&gt;his file , am i right with this ?&lt;/LI&gt;&lt;LI&gt;then we have to create nternal repo .&lt;/LI&gt;&lt;LI&gt;: Register blueprint with
ambari server by executing below command&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;curl -H "X-Requested-By: ambari" -X POST -u
admin:admin &lt;A href="http://&amp;lt;ambari-server-hostname&amp;gt;:8080/api/v1/blueprints/multinode-hdp" target="_blank"&gt;http://&amp;lt;ambari-server-hostname&amp;gt;:8080/api/v1/blueprints/multinode-hdp&lt;/A&gt;
-d @cluster_config.json [here in place of cluster_config.json we have to pass ambari blueprint that we exported from other cluster .&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;setup internal repos&lt;/LI&gt;&lt;LI&gt;pull the trigger! below command to start cluster isntallation&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;curl
-H "X-Requested-By: ambari" -X POST -u admin:admin
&lt;A href="http://&amp;lt;ambari-server-hostname&amp;gt;:8080/api/v1/clusters/multinode-hdp" target="_blank"&gt;http://&amp;lt;ambari-server-hostname&amp;gt;:8080/api/v1/clusters/multinode-hdp&lt;/A&gt; -d
@hostmap.json&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;conclusion &lt;/STRONG&gt;:  basically all the steps are same except creating  cluster_configuration.json  file we are exporting this from another cluster .&lt;/P&gt;&lt;P&gt;This is my whole understanding If I am wrong somewhere please highlight the same .&lt;/P&gt;&lt;P&gt;Thanks in advance .&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;@Jay Kumar SenSharma&lt;/A&gt; can you please check above and help me out &lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 16:25:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cluster-setup-using-ambari-blueprint/m-p/186466#M73359</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-01-11T16:25:59Z</dc:date>
    </item>
  </channel>
</rss>

