use of com.sequenceiq.cloudbreak.cmtemplate.CmTemplateProcessor in project cloudbreak by hortonworks.
the class HiveRdsConfigProvider method isRdsConfigNeedForHiveMetastore.
private boolean isRdsConfigNeedForHiveMetastore(Blueprint blueprint) {
String blueprintText = blueprint.getBlueprintText();
CmTemplateProcessor blueprintProcessor = cmTemplateProcessorFactory.get(blueprintText);
return blueprintProcessor.isCMComponentExistsInBlueprint("HIVEMETASTORE");
}
use of com.sequenceiq.cloudbreak.cmtemplate.CmTemplateProcessor in project cloudbreak by hortonworks.
the class NifiRegistryRdsConfigProvider method isRdsConfigNeedForNifiRegistry.
private boolean isRdsConfigNeedForNifiRegistry(Blueprint blueprint) {
String blueprintText = blueprint.getBlueprintText();
CmTemplateProcessor cmTemplateProcessor = cmTemplateProcessorFactory.get(blueprintText);
return cmTemplateProcessor.isCMComponentExistsInBlueprint("NIFI_REGISTRY_SERVER");
}
use of com.sequenceiq.cloudbreak.cmtemplate.CmTemplateProcessor in project cloudbreak by hortonworks.
the class OozieRdsConfigProvider method isRdsConfigNeedForOozieServer.
private boolean isRdsConfigNeedForOozieServer(Blueprint blueprint) {
String blueprintText = blueprint.getBlueprintText();
CmTemplateProcessor blueprintProcessor = cmTemplateProcessorFactory.get(blueprintText);
return blueprintProcessor.isCMComponentExistsInBlueprint("OOZIE_SERVER");
}
use of com.sequenceiq.cloudbreak.cmtemplate.CmTemplateProcessor in project cloudbreak by hortonworks.
the class UpdateNodeCountValidator method getComputeHostGroup.
private Set<String> getComputeHostGroup(Stack stack) {
String blueprintText = stack.getCluster().getBlueprint().getBlueprintText();
CmTemplateProcessor templateProcessor = cmTemplateProcessorFactory.get(blueprintText);
Versioned version = () -> templateProcessor.getVersion().get();
return templateProcessor.getComputeHostGroups(version);
}
use of com.sequenceiq.cloudbreak.cmtemplate.CmTemplateProcessor in project cloudbreak by hortonworks.
the class CusterServicesRestartHandlerTest method mockTemplateComponents.
private void mockTemplateComponents() {
CmTemplateProcessor cmTemplateProcessor = mock(CmTemplateProcessor.class);
when(cmTemplateProcessorFactory.get(any())).thenReturn(cmTemplateProcessor);
lenient().when(cmTemplateProcessor.getAllComponents()).thenReturn(new HashSet<>(Arrays.asList(ServiceComponent.of("HBASE", "MASTER"), ServiceComponent.of("HBASE", "REGIONSERVER"), ServiceComponent.of("HBASE", "HBASERESTSERVER"), ServiceComponent.of("PHOENIX", "PHOENIX_QUERY_SERVER"), ServiceComponent.of("CLOUDERA_MANAGER", "CM-API"), ServiceComponent.of("CLOUDERA_MANAGER_UI", "CM-UI"))));
}
Aggregations