This is an automated email from the ASF dual-hosted git repository.
elek pushed a commit to branch docker-hadoop-runner
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/docker-hadoop-runner by this
push:
new f671b56 HDDS-1632. Make the hadoop home word readble and avoid sudo
in hadoop-runner
f671b56 is described below
commit f671b56a54f8c86a6b670553e543f0c25758e7be
Author: Márton Elek <[email protected]>
AuthorDate: Mon Jun 3 10:21:01 2019 +0200
HDDS-1632. Make the hadoop home word readble and avoid sudo in hadoop-runner
---
Dockerfile | 1 +
scripts/starter.sh | 5 +----
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 21299df..d7234ca 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -31,6 +31,7 @@ ENV PATH $PATH:/opt/hadoop/bin
RUN groupadd --gid 1000 hadoop
RUN useradd --uid 1000 hadoop --gid 100 --home /opt/hadoop
+RUN chmod 755 /opt/hadoop
RUN echo "hadoop ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN chown hadoop /opt
ADD scripts /opt/
diff --git a/scripts/starter.sh b/scripts/starter.sh
index 1328607..6b5bbe2 100755
--- a/scripts/starter.sh
+++ b/scripts/starter.sh
@@ -96,9 +96,6 @@ if [ -n "$KERBEROS_ENABLED" ]; then
sed "s/SERVER/$KERBEROS_SERVER/g" "$DIR"/krb5.conf | sudo tee
/etc/krb5.conf
fi
-#To avoid docker volume permission problems
-sudo chmod o+rwx /data
-
"$DIR"/envtoconf.py --destination "${HADOOP_CONF_DIR:-/opt/hadoop/etc/hadoop}"
if [ -n "$ENSURE_NAMENODE_DIR" ]; then
@@ -139,7 +136,7 @@ if [ -n "$BYTEMAN_SCRIPT" ] || [ -n "$BYTEMAN_SCRIPT_URL"
]; then
export PATH=$PATH:$BYTEMAN_DIR/bin
if [ ! -z "$BYTEMAN_SCRIPT_URL" ]; then
- sudo wget $BYTEMAN_SCRIPT_URL -O /tmp/byteman.btm
+ wget $BYTEMAN_SCRIPT_URL -O /tmp/byteman.btm
export BYTEMAN_SCRIPT=/tmp/byteman.btm
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]