Created on 07-26-2016 04:16 AM
.
.
.
http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.1/bk_Installing_HDP_AMB/content/_download_the_...
.
Install ambari-agent package on all the nodes in the cluster and modify hostname to ambari server host(fqdn) in /etc/ambari-agent/conf/ambari-agent.ini
.
Please follow below steps to create Blueprints
.
Note – This file will have information related to all the hosts which are part of your HDP cluster.
{ "blueprint" : "multinode-hdp", "default_password" : "hadoop", "host_groups" :[ { "name" : "host2", "hosts" : [ { "fqdn" : "host2.crazyadmins.com" } ] }, { "name" : "host3", "hosts" : [ { "fqdn" : "host3.crazyadmins.com" } ] }, { "name" : "host4", "hosts" : [ { "fqdn" : "host4.crazyadmins.com" } ] } ] }
.
{ "configurations": [], "host_groups": [{ "name": "host2", "components": [{ "name": "PIG" }, { "name": "METRICS_COLLECTOR" }, { "name": "KAFKA_BROKER" }, { "name": "HISTORYSERVER" }, { "name": "HBASE_REGIONSERVER" }, { "name": "OOZIE_CLIENT" }, { "name": "HBASE_CLIENT" }, { "name": "NAMENODE" }, { "name": "SUPERVISOR" }, { "name": "HCAT" }, { "name": "METRICS_MONITOR" }, { "name": "APP_TIMELINE_SERVER" }, { "name": "NODEMANAGER" }, { "name": "HDFS_CLIENT" }, { "name": "HIVE_CLIENT" }, { "name": "FLUME_HANDLER" }, { "name": "DATANODE" }, { "name": "WEBHCAT_SERVER" }, { "name": "ZOOKEEPER_CLIENT" }, { "name": "ZOOKEEPER_SERVER" }, { "name": "STORM_UI_SERVER" }, { "name": "HIVE_SERVER" }, { "name": "FALCON_CLIENT" }, { "name": "TEZ_CLIENT" }, { "name": "HIVE_METASTORE" }, { "name": "SQOOP" }, { "name": "YARN_CLIENT" }, { "name": "MAPREDUCE2_CLIENT" }, { "name": "NIMBUS" }, { "name": "DRPC_SERVER" }], "cardinality": "1" }, { "name": "host3", "components": [{ "name": "ZOOKEEPER_SERVER" }, { "name": "OOZIE_SERVER" }, { "name": "SECONDARY_NAMENODE" }, { "name": "FALCON_SERVER" }, { "name": "ZOOKEEPER_CLIENT" }, { "name": "PIG" }, { "name": "KAFKA_BROKER" }, { "name": "OOZIE_CLIENT" }, { "name": "HBASE_REGIONSERVER" }, { "name": "HBASE_CLIENT" }, { "name": "HCAT" }, { "name": "METRICS_MONITOR" }, { "name": "FALCON_CLIENT" }, { "name": "TEZ_CLIENT" }, { "name": "SQOOP" }, { "name": "HIVE_CLIENT" }, { "name": "HDFS_CLIENT" }, { "name": "NODEMANAGER" }, { "name": "YARN_CLIENT" }, { "name": "MAPREDUCE2_CLIENT" }, { "name": "DATANODE" }], "cardinality": "1" }, { "name": "host4", "components": [{ "name": "ZOOKEEPER_SERVER" }, { "name": "ZOOKEEPER_CLIENT" }, { "name": "PIG" }, { "name": "KAFKA_BROKER" }, { "name": "OOZIE_CLIENT" }, { "name": "HBASE_MASTER" }, { "name": "HBASE_REGIONSERVER" }, { "name": "HBASE_CLIENT" }, { "name": "HCAT" }, { "name": "RESOURCEMANAGER" }, { "name": "METRICS_MONITOR" }, { "name": "FALCON_CLIENT" }, { "name": "TEZ_CLIENT" }, { "name": "SQOOP" }, { "name": "HIVE_CLIENT" }, { "name": "HDFS_CLIENT" }, { "name": "NODEMANAGER" }, { "name": "YARN_CLIENT" }, { "name": "MAPREDUCE2_CLIENT" }, { "name": "DATANODE" }], "cardinality": "1" }], "Blueprints": { "blueprint_name": "multinode-hdp", "stack_name": "HDP", "stack_version": "2.3" } }
.
.
{ "Repositories" : { "base_url" : "http://<ip-address-of-repo-server>/hdp/centos6/HDP-2.3.4.0", "verify_base_url" : true } }
.
{ "Repositories" : { "base_url" : "http://<ip-address-of-repo-server>/hdp/centos6/HDP-UTILS-1.1.0.20", "verify_base_url" : true } }
.
curl -H "X-Requested-By: ambari" -X POST -u admin:admin http://<ambari-server-hostname>:8080/api/v1/blueprints/multinode-hdp -d @cluster_config.json
.
Execute below curl calls to setup internal repositories.
curl -H "X-Requested-By: ambari" -X PUT -u admin:admin http://<ambari-server-hostname>:8080/api/v1/stacks/HDP/versions/2.3/operating_systems/redhat6/reposi... -d @repo.json
curl -H "X-Requested-By: ambari" -X PUT -u admin:admin http://<ambari-server-hostname>:8080/api/v1/stacks/HDP/versions/2.3/operating_systems/redhat6/reposi... -d @hdputils-repo.json
.
curl -H "X-Requested-By: ambari" -X POST -u admin:admin http://<ambari-server-hostname>:8080/api/v1/clusters/multinode-hdp -d @hostmap.json
.
.
Created on 07-26-2016 06:27 PM
Hi @Kuldeep Kulkarni ,
thanks for your helpful posts. Is it planned to continue this series.....I am looking forward to a Blueprint including Namenode-/HMaster-HA as well as Kerberos
Thanks in advance...
Created on 07-26-2016 06:54 PM
Thanks. Sure In next post, We can cover NN/RM HA via Blueprints.
Created on 10-13-2016 08:05 AM
@Gerd Koenig - Next tutorial is up - Blueprint setup with NN HA - https://community.hortonworks.com/articles/61358/automate-hdp-installation-using-ambari-blueprints-2...
Created on 12-30-2016 06:51 AM
Hi, Kuldeep Kulkarni. I am trying to create cluster using ambari blueprint. But after registering blueprint and triggering cluster creation request successfully when I see progress in Ambari UI it stays stuck in PENDING HOST ASSIGNMENT which means that it is not able to connect or find hosts. But I have checked all the fqdn and ambari agents are also up and running. My approach is to store/ copy ambari.repo and hdp.repo in all hosts before hand so I have skipped step 4. What could be the problem???...please help!!!
Created on 12-23-2017 02:48 PM
Hi Kuldeep
Do you have any post for ambari installation using blueprint
Created on 01-25-2018 06:40 AM
Does this tutorial still work with Ambari 2.6?