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

YARN container executor config does not handle white space

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      The container executor configuration reader does not handle white spaces or malformed key value pairs in the config file correctly or gracefully
      as an example the following key value line which is part of the configuration (note the << is used as a marker to show the extra trailing space):
      yarn.nodemanager.linux-container-executor.group=yarn <<
      is a valid line but when you run the check over the file:
      [root@test]#./container-executor --checksetup
      Can't get group information for yarn - Success.
      [root@test]#
      It fails to find the yarn group but it really tries to find the "yarn " group which fails. There is no trimming anywhere while processing the lines. If a space would be added in before or after the = sign a failure would also occur.
      Minor nit is the fact that a failure still is logged as a Success

      Attachments

        1. YARN-5736.addendum.000.patch
          0.7 kB
          Miklos Szegedi
        2. YARN-5736.002.patch
          8 kB
          Miklos Szegedi
        3. YARN-5736.001.patch
          4 kB
          Miklos Szegedi
        4. YARN_5736.000.patch
          4 kB
          Miklos Szegedi

        Activity

          People

            miklos.szegedi@cloudera.com Miklos Szegedi
            miklos.szegedi@cloudera.com Miklos Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: