{
    "name": "HDP",
    "version": "1.3.2",
    "author": "Hortonworks",
    "created": "03-31-2013",
    "reference": "Hortonworks-linux",
    "packages": {
        "type": "rpm",
        "repos": [
            {
                "name": "HDP",
                "repoLocations": [
                    {
                        "target": "centos6",
                        "uri": "http://public-repo-1.hortonworks.com/ambari/centos6/1.x/GA/"
                    },
                    {
                        "target": "suse11",
                        "uri": "http://public-repo-1.hortonworks.com/ambari/suse11/1.x/GA/"
                    }
                ]
            }
        ]
    },
    "services": [
        {
            "name": "HDFS",
            "components": [
                {
                    "name": "NAMENODE",
                    "type": "MASTER",
                    "cardinality": "1",
                    "hostRequirements": [
                        {
                            "name": "python",
                            "value": "exists"
                        },
                        {
                            "name": "jdk-1.6",
                            "value": "exists"
                        }
                    ],
                    "deployedPackages": {
                        "type": "rpm",
                        "deploymentContext": [
                            {
                                "name": "customName",
                                "value": "customValue"
                            }
                        ]
                    }
                },
                {
                    "name": "DATANODE",
                    "type": "SLAVE",
                    "cardinality": "1+",
                    "hostRequirements": {
                        "python": "exists",
                        "jdk-1.6": "exists"
                    },
                    "deployedPackages": {
                        "type": "rpm"
                    }
                }
            ],
            "configurations": [
                {
                    "name": "core-site",
                    "properties": [
                        {
                            "name": "fs.trash.interval",
                            "value": "360"
                        },
                        {
                            "name": "fs.checkpoint.size",
                            "value": "536870912"
                        }
                    ]
                },
                {
                    "name": "global",
                    "properties": [
                        {
                            "name": "dfs_name_dir",
                            "value": "/hadoop/hdfs/namenode"
                        }
                    ]
                }
            ]
        },
        {
            "name": "MAPREDUCE",
            "components": [
                {
                    "name": "JOBTRACKER",
                    "type": "MASTER",
                    "cardinality": "1",
                    "hostRequirements": {
                        "jdk-1.6": "exists"
                    },
                    "deployedPackages": {
                        "type": "rpm"
                    }
                },
                {
                    "name": "MAPREDUCE_CLIENT",
                    "type": "CLIENT",
                    "cardinality": "0+"
                }
            ],
            "configurations": [
                {
                    "name": "global",
                    "properties": [
                        {
                            "name": "jobtracker_host",
                            "value": "localhost"
                        }
                    ]
                }
            ]
        },
        {
            "name" : "AMBARI",
            "components" : [
                {
                    "name" : "AMBARI_SERVER",
                    "type" : "MASTER",
                    "cardinality" : "1"
                },
                {
                    "name" : "AMBARI_AGENT",
                    "type" : "SLAVE",
                    "cardinality" : "1+"
                }
            ],
            "configurations" : [
            ],
            "users" : [
                {
                    "name" : "admin",
                    "password" : "admin",
                    "groups" : [
                        "admin",
                        "user"
                    ]
                }
            ]
        }
    ],
    "host_role_mappings" : [
        {
            "name" : "MASTER",
            "components" : [
                { "name" : "NAMENODE" },
                { "name" : "JOBTRACKER" },
                { "name" : "SECONDARY_NAMENODE" },
                { "name" : "GANGLIA_SERVER" },
                { "name" : "GANGLIA_MONITOR" },
                { "name" : "NAGIOS_SERVER" },
                { "name" : "AMBARI_SERVER" },
                { "name" : "AMBARI_AGENT" }
            ],
            "hosts" : [
                {
                    "cardinality" : "1"
                }
            ]
        },
        {
            "name" : "SLAVE",
            "components" : [
                { "name" : "DATANODE" },
                { "name" : "TASKTRACKER" },
                { "name" : "GANGLIA_MONITOR" },
                { "name" : "HDFS_CLIENT" },
                { "name" : "MAPREDUCE_CLIENT" },
                { "name" : "AMBARI_AGENT" }
            ],
            "hosts" : [
                {
                    "cardinality" : "1+"
                }
            ]
        }
    ],
    "configurations" : [
        {
            "name" : "global",
            "properties" : [
                { "name" : "dfs_name_dir", "value" : "/hadoop/hdfs/namenode" }
            ]
        }
    ]
}