def check_direct_mode_cluster_definition(cluster, config_path):
config_path = config.get_heron_cluster_conf_dir(cluster, config_path)<EOL>if not os.path.isdir(config_path):<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Check the cluster definition for direct mode
:param cluster:
:param config_path:
:return: