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

Giving multiple commands to ContainerLaunchContext doesn't work as expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.0-beta, 2.7.2
    • None
    • api, nodemanager
    • None

    Description

      A ContainerLaunchContext accepts a list of commands (as strings) to be executed to launch the container. I would expect that giving a list with the two commands "echo yolo" and "date" would print something like

      yolo
      Mon Aug 26 14:40:23 PDT 2013
      

      Instead it prints

      yolo date
      

      This is because the commands get executed with:

      exec /bin/bash -c "echo yolo date"
      

      To get the expected behavior I have to include semicolons at the end of each command. At the very least, this should be documented, but I think better would be for the NM to insert the semicolons.

      Attachments

        1. YARN-1100.patch
          1 kB
          Xiaoshuang LU

        Activity

          People

            Unassigned Unassigned
            sandyr Sandy Ryza
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated: