def start_cluster(self, cluster): self._set_cluster_info(cluster) deploy.start_cluster(cluster) cluster_instances = plugin_utils.get_instances(cluster) swift_helper.install_ssl_certs(cluster_instances) deploy.add_hadoop_swift_jar(cluster_instances) deploy.prepare_hive(cluster) deploy.deploy_kerberos_principals(cluster)
def scale_cluster(self, cluster, instances): deploy.prepare_kerberos(cluster, instances) deploy.setup_agents(cluster, instances) cluster = conductor.cluster_get(context.ctx(), cluster.id) deploy.wait_host_registration(cluster, instances) deploy.resolve_package_conflicts(cluster, instances) deploy.add_new_hosts(cluster, instances) deploy.manage_config_groups(cluster, instances) deploy.manage_host_components(cluster, instances) deploy.configure_rack_awareness(cluster, instances) swift_helper.install_ssl_certs(instances) deploy.add_hadoop_swift_jar(instances) deploy.deploy_kerberos_principals(cluster, instances)