Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-13130

Reduce code duplication in AbstractYarnClusterDescriptor

    XMLWordPrintableJSON

Details

    • Technical Debt
    • Status: Reopened
    • Not a Priority
    • Resolution: Unresolved
    • 1.8.0, 1.8.1
    • None
    • Deployment / YARN

    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.");
          }
      }
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            xuchao Charles Xu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m