Details
-
Technical Debt
-
Status: Reopened
-
Not a Priority
-
Resolution: Unresolved
-
1.8.0, 1.8.1
-
None
Description
There are two places checks variables HADOO_CONF_DIR or YARN_CONF_DIR. It's better to extract a method and call it separately.
// check if required Hadoop environment variables are set. If not, warn user private void checkEnvironmentVariables() { if (System.getenv("HADOOP_CONF_DIR") == null && System.getenv("YARN_CONF_DIR") == null) { LOG.warn("Neither the HADOOP_CONF_DIR nor the YARN_CONF_DIR environment variable is set. " + "The Flink YARN Client needs one of these to be set to properly load the Hadoop " + "configuration for accessing YARN."); } }