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

The option shell_command and shell_script have conflict

    XMLWordPrintableJSON

    Details

      Description

      The DistributedShell has an option shell_script to let user specify a shell script which will be executed in containers. But the issue is that the shell_command option is a must, so if both options are set, then every container executor will end with exitCode=1. This is because DistributedShell executes the shell_command and shell_script together. For example, if shell_command is 'date' then the final command to be executed in container is "date `ExecShellScript.sh`", so the date command will treat the result of ExecShellScript.sh as its parameter, then there will be an error.

      To solve this, the DistributedShell should not use the value of shell_command option when the shell_script option is set, and the shell_command option also should not be mandatory.

        Attachments

        1. hadoop_yarn.patch
          3 kB
          rainy Yu
        2. shell_script.sh
          0.0 kB
          rainy Yu
        3. YARN-157.patch
          4 kB
          rainy Yu

          Activity

            People

            • Assignee:
              rainy rainy Yu
              Reporter:
              doom9 Li Ming
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: