hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elek, Marton (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDDS-1632) Make the hadoop home word readble and avoid sudo in hadoop-runner
Date Mon, 03 Jun 2019 08:20:00 GMT
Elek, Marton created HDDS-1632:

             Summary: Make the hadoop home word readble and avoid sudo in hadoop-runner
                 Key: HDDS-1632
                 URL: https://issues.apache.org/jira/browse/HDDS-1632
             Project: Hadoop Distributed Data Store
          Issue Type: Improvement
            Reporter: Elek, Marton
            Assignee: Elek, Marton

[~eyang] reporeted in HDDS-1609 that the hadoop-runner image can be started *without* mounting
a real hadoop (usually, it's ounted) AND using a different uid:

docker run -it  -u $(id -u):$(id -g) apache/hadoop-runner bash
docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting
container process caused "chdir to cwd (\"/opt/hadoop\") set in config.json failed: permission
denied": unknown.

There are two blocking problems here:

 * the /opt/hadoop directory (which is the CWD inside the container) is 700 instead of 755
 * The usage of sudo in started scripts (sudo is not possible if the real user is not added
to the /etc/passwd)

Both of them are addressed by this patch.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org

View raw message