HDDS-524. log4j is added with root to apache/hadoop:2 and apache/hadoop:3 images. Contributed by Dinesh Chitlangia.

This commit is contained in:
Márton Elek 2018-11-05 15:34:06 +01:00
parent eb740e3e35
commit 1c9bd24755
1 changed files with 1 additions and 0 deletions

View File

@ -19,3 +19,4 @@ WORKDIR /opt
RUN sudo rm -rf /opt/hadoop && wget $HADOOP_URL -O hadoop.tar.gz && tar zxf hadoop.tar.gz && rm hadoop.tar.gz && mv hadoop* hadoop && rm -rf /opt/hadoop/share/doc
WORKDIR /opt/hadoop
ADD log4j.properties /opt/hadoop/etc/hadoop/log4j.properties
RUN sudo chown -R hadoop:users /opt/hadoop/etc/hadoop/*