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

YARN Native Service: Respect YARN_CONTAINER_RUNTIME_DOCKER_LOCAL_RESOURCE_MOUNTS specified in service spec

    Details

      Description

      Existing YARN native service overwrites YARN_CONTAINER_RUNTIME_DOCKER_LOCAL_RESOURCE_MOUNTS regardless if user specified this in service spec or not. It is important to allow user to mount local folders like /etc/passwd, etc.

      Following logic overwrites the YARN_CONTAINER_RUNTIME_DOCKER_LOCAL_RESOURCE_MOUNTS environment:

      StringBuilder sb = new StringBuilder();
      for (Entry<String,String> mount : mountPaths.entrySet()) {
        if (sb.length() > 0) {
          sb.append(",");
        }
        sb.append(mount.getKey());
        sb.append(":");
        sb.append(mount.getValue());
      }
      env.put("YARN_CONTAINER_RUNTIME_DOCKER_LOCAL_RESOURCE_MOUNTS", sb.toString());

      Inside AbstractLauncher.java

        Attachments

        1. YARN-8141.006.patch
          16 kB
          Chandni Singh
        2. YARN-8141.005.patch
          16 kB
          Chandni Singh
        3. YARN-8141.004.patch
          12 kB
          Chandni Singh
        4. YARN-8141.003.patch
          13 kB
          Chandni Singh
        5. YARN-8141.002.patch
          12 kB
          Chandni Singh
        6. YARN-8141.001.patch
          6 kB
          Chandni Singh

          Activity

            People

            • Assignee:
              csingh Chandni Singh
              Reporter:
              leftnoteasy Wangda Tan
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: