Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-6202

Configuration item Dispatcher.DISPATCHER_EXIT_ON_ERROR_KEY is disregarded

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Dispatcher.DISPATCHER_EXIT_ON_ERROR_KEY (yarn.dispatcher.exit-on-error) always be true no matter what value in configuration files. This misleads users. Two solutions:

      1. Remove the configuration item and provide a method to allow exitOnDispatchException/shouldExitOnError to be false to enable related unit tests. There is no need for false value in a real daemon since daemons should crash if its dispatcher quit.
      2. Make it default true instead of false, so that we don't need to hard code it to be true in RM and NM, it is still configurable, and also provide method to enable related unit tests.

      Other than that, the code around it needs to refactor. public static final for a variable of interface isn't necessary, and YARN related configure item should be in class YarnConfiguration.

      Attachments

        1. YARN-6202.004.patch
          22 kB
          Yufei Gu
        2. YARN-6202.003.patch
          21 kB
          Yufei Gu
        3. YARN-6202.002.patch
          20 kB
          Yufei Gu
        4. YARN-6202.001.patch
          16 kB
          Yufei Gu

        Issue Links

          Activity

            People

              yufeigu Yufei Gu
              yufeigu Yufei Gu
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: