Skip to content

Instantly share code, notes, and snippets.

@cimfalab
Last active August 11, 2017 10:15
Show Gist options
  • Save cimfalab/b3acb60b568e251121373f8df6b1bb8b to your computer and use it in GitHub Desktop.
Save cimfalab/b3acb60b568e251121373f8df6b1bb8b to your computer and use it in GitHub Desktop.
bulk_operations_controller.js
_getComponentsFromServerForHostComponentsDecommissionCallBack: function (operationData, data) {
...
if (components.length) {
...
if (turn_off) {
// For recommession
if (svcName === "YARN" || svcName === "HBASE" || svcName === "HDFS") {
App.router.get('mainHostDetailsController').doRecommissionAndStart(hostNames, svcName, masterName, slaveName);
}
} else {
...
if (turn_off) {
parameters['included_hosts'] = hostsWithComponentInProperState.join(',')
}
else {
parameters['excluded_hosts'] = hostsWithComponentInProperState.join(',');
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment