if (enumRoles.isEmpty()) {
throw ClusterConfigException.NO_HADOOP_ROLE_SPECIFIED(nodeGroup.getName());
}
if (!enumRoles.contains(HadoopRole.CUSTOMIZED_ROLE)) {
logger.info("Soring roles based on role dependency and relationship with HDFS");
Collections.sort(roles, new RoleComparactor());
nodeGroup.setRoles(roles);
}
}
}