diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/configuration.c b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/configuration.c index baaa4dc423..3a5109fba4 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/configuration.c +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/configuration.c @@ -546,8 +546,8 @@ int read_config(const char *file_path, struct configuration *cfg) { if (cfg->size == 0) { free_configuration(cfg); - fprintf(ERRORFILE, "Invalid configuration provided in %s\n", file_path); - return INVALID_CONFIG_FILE; + fprintf(ERRORFILE, "Empty configuration file provided %s\n", file_path); + exit(INVALID_CONFIG_FILE); } return 0; }