You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Chen He (JIRA)" <ji...@apache.org> on 2016/03/15 21:43:33 UTC

[jira] [Created] (AMBARI-15432) Ambari can not successfully translate blueprint configs

Chen He created AMBARI-15432:
--------------------------------

             Summary: Ambari can not successfully translate blueprint configs
                 Key: AMBARI-15432
                 URL: https://issues.apache.org/jira/browse/AMBARI-15432
             Project: Ambari
          Issue Type: Bug
          Components: blueprints
            Reporter: Chen He


We submit blueprint with configurations (core-site):

{"Blueprints": {
    "blueprint_name": "bp1_simple",
    "stack_name": "HDP",
    "stack_version": "2.2"
  },
  "host_groups": [
    {
      "name": "master_1",
      "cardinality" : "1",
      "components": [
        { "name": "JOURNALNODE" },
        { "name": "NAMENODE" },
        { "name": "ZKFC" },
        { "name": "ZOOKEEPER_SERVER" },
        { "name": "DATANODE" },
        { "name": "NODEMANAGER" },
        { "name": "HDFS_CLIENT" },
        { "name": "MAPREDUCE2_CLIENT" },
        { "name": "YARN_CLIENT" },
        { "name": "ZOOKEEPER_CLIENT" }
      ]
    },
    {
      "name": "master_2",
      "cardinality" : "1",
      "components": [
        { "name": "APP_TIMELINE_SERVER" },
        { "name": "JOURNALNODE" },
        { "name": "RESOURCEMANAGER" },
        { "name": "ZOOKEEPER_SERVER" },
        { "name": "DATANODE" },
        { "name": "NODEMANAGER" }
      ]
    },
    {
      "name": "master_3",
      "cardinality" : "1",
      "components": [
        { "name": "JOURNALNODE" },
        { "name": "RESOURCEMANAGER" },
        { "name": "NAMENODE" },
        { "name": "ZKFC" },
        { "name": "ZOOKEEPER_SERVER" },
        { "name": "DATANODE" },
        { "name": "NODEMANAGER" }
      ]
    }
  }
 "configurations": [
    {
      "core-site": {
        "properties" : {
          "fs.defaultFS" : "hdfs://mycluster",
          "ha.zookeeper.quorum" : "%HOSTGROUP::master_1%:2181,%HOSTGROUP::master_2%:2181,%HOSTGROUP::master_3%:2181"
      }}
    }
  ]
}

After "cluster assign" and "cluster create". The ambari-server still has the "%HOSTGROUP::master_1%" in corresponding hostname position and did not translate them.

We checked database those configs are added to table "blueprint-configuration" once the blueprint is added and never have chance to be changed even we change some "%HOSTGROUP::master_1%" to correct hostname through Ambari webUI.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)