use of com.sequenceiq.cloudbreak.domain.stack.Stack in project cloudbreak by hortonworks.
the class ClusterBuilderService method autoConfigureCluster.
public void autoConfigureCluster(Long stackId) throws CloudbreakException, ClusterClientInitException {
Stack stack = stackService.getByIdWithListsInTransaction(stackId);
getClusterSetupService(stack).autoConfigureClusterManager();
}
use of com.sequenceiq.cloudbreak.domain.stack.Stack in project cloudbreak by hortonworks.
the class ClusterBuilderService method configureKerberos.
public void configureKerberos(Long stackId) throws CloudbreakException {
Stack stack = stackService.getByIdWithListsInTransaction(stackId);
getClusterSetupService(stackId).configureKerberos(kerberosConfigService.get(stack.getEnvironmentCrn(), stack.getName()).orElse(null));
}
use of com.sequenceiq.cloudbreak.domain.stack.Stack in project cloudbreak by hortonworks.
the class ClusterBuilderService method prepareExtendedTemplate.
public void prepareExtendedTemplate(Long stackId) {
Stack stack = stackService.getByIdWithListsInTransaction(stackId);
Cluster cluster = stack.getCluster();
Set<HostGroup> hostGroups = hostGroupService.getByClusterWithRecipes(cluster.getId());
setInitialBlueprintText(cluster);
String template = getClusterSetupService(stack).prepareTemplate(loadInstanceMetadataForHostGroups(hostGroups), stackToTemplatePreparationObjectConverter.convert(stack), getSdxContextOptional(stack.getDatalakeCrn()).orElse(null), stack.getDatalakeCrn(), kerberosConfigService.get(stack.getEnvironmentCrn(), stack.getName()).orElse(null));
validateExtendedBlueprintTextDoesNotContainUnresolvedHandlebarParams(template);
cluster.setExtendedBlueprintText(template);
clusterService.save(cluster);
}
use of com.sequenceiq.cloudbreak.domain.stack.Stack in project cloudbreak by hortonworks.
the class ClusterUpscaleService method ensureComponentsAreStopped.
public void ensureComponentsAreStopped(Long stackId, Map<String, String> components, String hostname) throws CloudbreakException {
Stack stack = stackService.getByIdWithListsInTransaction(stackId);
LOGGER.info("Ensuring components are in stopped state in ambari on host {}", hostname);
getClusterConnector(stack).ensureComponentsAreStopped(components, hostname);
}
use of com.sequenceiq.cloudbreak.domain.stack.Stack in project cloudbreak by hortonworks.
the class ClusterUpscaleService method executePostRecipesOnNewHosts.
public void executePostRecipesOnNewHosts(Long stackId) throws CloudbreakException {
Stack stack = stackService.getByIdWithListsInTransaction(stackId);
LOGGER.debug("Start executing post recipes");
recipeEngine.executePostInstallRecipes(stack, hostGroupService.getByClusterWithRecipes(stack.getCluster().getId()));
}
Aggregations