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

DockerContainerExecutor should support environment variables setting

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.6.0
    • None
    • applications, nodemanager
    • None

    Description

      Currently, DockerContainerExecutor will mount "yarn.nodemanager.local-dirs" and "yarn.nodemanager.log-dirs" to containers automatically. However applications maybe need set more environment variables before launching containers.

      In our applications, just as the following command, we need to attach several directories and set some environment variables to docker containers.

      docker run -i -t -v /data/transcode:/data/tmp -v /etc/qcs:/etc/qcs -v /mnt:/mnt -e VTC_MQTYPE=rabbitmq -e VTC_APP=ugc -e VTC_LOCATION=sh -e VTC_RUNTIME=vtc sequenceiq/hadoop-docker:2.6.0 /bin/bash
      

      Attachments

        1. YARN-3282.01.patch
          5 kB
          Leitao Guo

        Activity

          People

            Unassigned Unassigned
            guoleitao Leitao Guo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: