rasStrategy.prepare(conf);
} catch (DisallowedStrategyException e) {
markFailedTopology(topologySubmitter, cluster, td,
"Unsuccessful in scheduling - " + e.getAttemptedClass()
+ " is not an allowed strategy. Please make sure your "
return;
} catch (RuntimeException e) {
markFailedTopology(topologySubmitter, cluster, td,
"Unsuccessful in scheduling - failed to create instance of topology strategy "
+ strategyConf
LOG.debug("scheduling result: {}", result);
if (result == null) {
markFailedTopology(topologySubmitter, cluster, td, "Internal scheduler error");
return;
} else {
markFailedTopology(topologySubmitter, cluster, td, message.toString());
return;
markFailedTopology(topologySubmitter, cluster, td,
"Internal Error - Exception thrown when scheduling. Please check logs for details", ex);
return;
markFailedTopology(topologySubmitter, cluster, td, "Failed to schedule within " + maxSchedulingAttempts + " attempts");