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

Flexing a component of YARN service does not work as documented when using relative number

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The documents says,
      "Relative changes are also supported for the ${NUMBER_OF_CONTAINERS} in the flex command, such as +2 or -2." when you want to flex a component of a YARN service.

      I expected that yarn app -flex sleeper-service -component sleeper +1 increments the number of container, but actually it sets the number of container to just one.

      I guess ApiServiceClient#actionFlex treats flexing when executing the yarn app -flex, and it just uses Long.parseLong to convert the argument like +1, which doesn't care relative numbers.

      Attachments

        1. YARN-9273.004.patch
          11 kB
          Masahiro Tanaka
        2. YARN-9273.003.patch
          11 kB
          Masahiro Tanaka
        3. YARN-9273.002.patch
          11 kB
          Masahiro Tanaka
        4. YARN-9273.001.patch
          8 kB
          Masahiro Tanaka

        Activity

          People

            masatana Masahiro Tanaka
            masatana Masahiro Tanaka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: