1

I need to clone services configuration (hue, spark, etc.) from a cluster to another one. Both of cluster are managed by Cloudera Manager (i need to clone cloudera manager configuration too).

C1ngh10
  • 13
  • 1
  • 7
  • You can export and import CDH cluster template https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/install_cluster_template.html but it only works for CDH components, not for CM services. I found it very useful for provisioning multiple environments (DEV, PROD), but is is not well documented. – 32cupo Apr 20 '20 at 11:44
  • I need to do exactly the same thing (multiple environments DEV, PROD). Is there other documentation in addition to docs.cloudera? (Such as some examples or something else) – C1ngh10 Apr 27 '20 at 10:30
  • 1
    I do not know why previous URL stopped work, try this https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cm_intro_api.html#concept_dnn_cr5_mr__section_ztf_lyt_xr or this https://cloudera.github.io/cm_api/apidocs/v19/path__cm_deployment.html – 32cupo Apr 27 '20 at 12:26
  • In this way can I clone a cluster or just Backing Up and Restoring on the same cluster? – C1ngh10 Apr 27 '20 at 13:41
  • If they are the same sized, you only need to change host ranges in "instantiator" section. And provide all the passwords of course. Here is some example of temple, what I found https://gist.github.com/jkestelyn/a0b84f7a51fa7444480c592e3369b30c – 32cupo Apr 28 '20 at 06:03
  • what if the size is different? – C1ngh10 Apr 28 '20 at 14:10
  • Then you also need to edit `hostTemplates` section and map used services to new instances. – 32cupo Apr 28 '20 at 14:48
  • In `hostTemplate` section there are 4 entrys, but each one have `"cardinality" : 0`. What does it mean? – C1ngh10 Apr 28 '20 at 15:18
  • Number of servers with the same installed services. You should change it according to your environment. – 32cupo Apr 28 '20 at 18:07
  • Ok thank you. In `variables` section should I change hosts name for databases or not? – C1ngh10 Apr 29 '20 at 06:34
  • If something in that sections differs between environments, you should also change it. – 32cupo Apr 29 '20 at 08:53

0 Answers0