ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cabir Zounaidou" <>
Subject Re: Review Request 25572: Associating repository latest url for deploying cluster using blueprint.
Date Thu, 18 Sep 2014 22:09:33 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Sept. 18, 2014, 10:09 p.m.)

Review request for Ambari, Erik Bergenholtz, John Speidel, Mahadev Konar, Nate Cole, Robert
Nettleton, and Srimanth Gunturi.


Updating the baseUrl with the latestUrl url is now done at repository loading time.

Bugs: AMBARI-7286

Repository: ambari


1.  Create a blueprint
{"configurations": [], "host_groups": [
    {"name": "host1",
        "cardinality": "1",
        "components": [
            {"name": "DATANODE" },
            {"name": "SECONDARY_NAMENODE" },
            {"name": "NAMENODE" },
            {"name": "ZOOKEEPER_SERVER" },
            {"name": "ZOOKEEPER_CLIENT" },
            {"name": "HDFS_CLIENT" }
], "Blueprints": {
    "blueprint_name": "hdfszk",
    "stack_name": "HDP",
    "stack_version": "2.1"

2.  Create a cluster template to deploy using blueprint
"configurations": [

       "properties":{"security_enabled":"false","kerberos_domain": "EXAMPLE.COM","ignore_groupsusers_create":
"false", "smokeuser": "ambari-qa", "user_group": "hadoop"}

"blueprint": "hdfszk",
"host_groups": [
        "name": "host1",
        "hosts": [
            { "fqdn": "" }

3.  Deploy an instance of cluster using the above cluster template

4.  Verify the URL's in the Admin/repositories page of UI.  It was not be using the latest
url specified in the repoinfo.xml of the given stack and version before this fix.

Diffs (updated)




1. Ran the unit tests.  The has unit for deploying cluster
using blueprint.
2. Manually tested deploying a cluster from the UI
3. Ran the REST-API's to test deploying cluster using blueprint and verified the repository
   3.1 Create a blueprint using the API 
curl -i --user admin:admin
-X POST -d @/tmp/myblueprint_template_json -H "X-Requested-By: ambari"
   3.2 Create a cluster from the template which was using the blueprint
curl -i --user admin:admin -H "X-Requested-By: ambari" -X POST -d @/tmp/cluster_blueprint_instance.json
   3.3 Checked the status of the task until it is completed.
   3.4 Verified in the UI that Admin/repositories page shows up the latest repo url (specified
in repoinfo.xml) for the stack selected.
   3.5 Also verified the generated command file (/var/lib/ambari-agent/data/command-x.json)
for the latest url.  It sets the baseUrl="\",
which is same as the latestBaseUrl.
    "hostLevelParams": {
        "jdk_location": "",
        "ambari_db_rca_password": "mapred",
        "java_home": "/usr/jdk64/jdk1.7.0_45",
        "ambari_db_rca_url": "jdbc:postgresql://",
        "jce_name": "",
        "oracle_jdbc_url": "",
        "repo_info": "[{\"baseUrl\":\"\",\"osType\":\"redhat6\",\"repoId\":\"HDP-2.1\",\"repoName\":\"HDP\",\"defaultBaseUrl\":\"\",\"latestBaseUrl\":\"\"},{\"baseUrl\":\"\",\"osType\":\"redhat6\",\"repoId\":\"HDP-UTILS-\",\"repoName\":\"HDP-UTILS\",\"defaultBaseUrl\":\"\",\"latestBaseUrl\":\"\"}]",
        "group_list": "[\"hadoop\",\"users\"]",


Cabir Zounaidou

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message