private void initAndStartWorkloadManager(final WMFullResourcePlan resourcePlan) { if (!StringUtils.isEmpty(wmQueue)) { // Initialize workload management. LOG.info("Initializing workload management"); try { wm = WorkloadManager.create(wmQueue, getHiveConf(), resourcePlan); wm.start(); LOG.info("Workload manager initialized."); } catch (Exception e) { throw new ServiceException("Unable to instantiate and start Workload Manager", e); } } else { LOG.info("Workload management is not enabled."); } }
private void initAndStartWorkloadManager(final WMFullResourcePlan resourcePlan) { if (!StringUtils.isEmpty(wmQueue)) { // Initialize workload management. LOG.info("Initializing workload management"); try { wm = WorkloadManager.create(wmQueue, getHiveConf(), resourcePlan); wm.start(); LOG.info("Workload manager initialized."); } catch (Exception e) { throw new ServiceException("Unable to instantiate and start Workload Manager", e); } } else { LOG.info("Workload management is not enabled."); } }