Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Format of cloudbreak blueprint

Format of cloudbreak blueprint

New Contributor

I am trying to create a manual blueprint in cloudbreak.

My blueprint has the format

{

"configurations":[],

"host_groups":[],

"settings":[],

"Blueprints":{}

}

When I upload this in cloudbreak to create a blueprint it gives me error "Invalid JSON"

But when I remove "configurations" section then it accepts the blueprint.

Is "configuration" not supported with cloudbreak blueprints?

Regards,

Shubham

1 REPLY 1
Highlighted

Re: Format of cloudbreak blueprint

Rising Star

@Shubham Saxena Cloudbreak does support the "configurations" section, below is an example of one I have running in AWS right now. You might verify that you don't have incorrect or extraneous characters in there somewhere, and that the blueprint is otherwise formatted correctly. For proper formatting and structure, reviewing https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-BlueprintStructure might be helpful.

{
  "host_groups": [
    {
      "name": "host_group_master_1",
      "configurations": [],
      "components": [
        {
          "name": "ZOOKEEPER_SERVER"
        },
        {
          "name": "HISTORYSERVER"
        },
        {
          "name": "OOZIE_CLIENT"
        },
        {
          "name": "NAMENODE"
        },
        {
          "name": "OOZIE_SERVER"
        },
        {
          "name": "HDFS_CLIENT"
        },
        {
          "name": "YARN_CLIENT"
        },
        {
          "name": "FALCON_SERVER"
        },
        {
          "name": "METRICS_MONITOR"
        },
        {
          "name": "MAPREDUCE2_CLIENT"
        }
      ],
      "cardinality": "1"
    },
    {
      "name": "host_group_master_2",
      "configurations": [],
      "components": [
        {
          "name": "ZOOKEEPER_SERVER"
        },
        {
          "name": "PIG"
        },
        {
          "name": "ZOOKEEPER_CLIENT"
        },
        {
          "name": "HIVE_SERVER"
        },
        {
          "name": "METRICS_MONITOR"
        },
        {
          "name": "TEZ_CLIENT"
        },
        {
          "name": "HIVE_METASTORE"
        },
        {
          "name": "HDFS_CLIENT"
        },
        {
          "name": "YARN_CLIENT"
        },
        {
          "name": "MYSQL_SERVER"
        },
        {
          "name": "MAPREDUCE2_CLIENT"
        },
        {
          "name": "RESOURCEMANAGER"
        },
        {
          "name": "WEBHCAT_SERVER"
        }
      ],
      "cardinality": "1"
    },
    {
      "name": "host_group_master_3",
      "configurations": [],
      "components": [
        {
          "name": "ZOOKEEPER_SERVER"
        },
        {
          "name": "APP_TIMELINE_SERVER"
        },
        {
          "name": "TEZ_CLIENT"
        },
        {
          "name": "HBASE_MASTER"
        },
        {
          "name": "HBASE_CLIENT"
        },
        {
          "name": "HDFS_CLIENT"
        },
        {
          "name": "METRICS_MONITOR"
        },
        {
          "name": "SECONDARY_NAMENODE"
        }
      ],
      "cardinality": "1"
    },
    {
      "name": "host_group_client_1",
      "configurations": [],
      "components": [
        {
          "name": "ZOOKEEPER_CLIENT"
        },
        {
          "name": "PIG"
        },
        {
          "name": "OOZIE_CLIENT"
        },
        {
          "name": "HBASE_CLIENT"
        },
        {
          "name": "HCAT"
        },
        {
          "name": "KNOX_GATEWAY"
        },
        {
          "name": "METRICS_MONITOR"
        },
        {
          "name": "FALCON_CLIENT"
        },
        {
          "name": "TEZ_CLIENT"
        },
        {
          "name": "SLIDER"
        },
        {
          "name": "SQOOP"
        },
        {
          "name": "HDFS_CLIENT"
        },
        {
          "name": "HIVE_CLIENT"
        },
        {
          "name": "YARN_CLIENT"
        },
        {
          "name": "METRICS_COLLECTOR"
        },
        {
          "name": "MAPREDUCE2_CLIENT"
        }
      ],
      "cardinality": "1"
    },
    {
      "name": "host_group_slave_1",
      "configurations": [],
      "components": [
        {
          "name": "HBASE_REGIONSERVER"
        },
        {
          "name": "NODEMANAGER"
        },
        {
          "name": "METRICS_MONITOR"
        },
        {
          "name": "DATANODE"
        }
      ]
    }
  ],
  "Blueprints": {
    "blueprint_name": "hdp-small-default",
    "stack_name": "HDP",
    "stack_version": "2.6"
  }
}