use of com.sequenceiq.cloudbreak.reactor.api.event.cluster.install.ClusterManagerConfigureKerberosFailed in project cloudbreak by hortonworks.
the class ClusterManagerConfigureKerberosHandler method doAccept.
@Override
protected Selectable doAccept(HandlerEvent<ClusterManagerConfigureKerberosRequest> event) {
Long stackId = event.getData().getResourceId();
Selectable response;
try {
clusterBuilderService.configureKerberos(stackId);
response = new ClusterManagerConfigureKerberosSuccess(stackId);
} catch (RuntimeException | CloudbreakException e) {
LOGGER.error("ClusterManagerConfigureKerberosHandler step failed with the following message: {}", e.getMessage());
response = new ClusterManagerConfigureKerberosFailed(stackId, e);
}
return response;
}
Aggregations