Skip to content

Commit a0744a4

Browse files
committed
Ensure spark home owned by root
1 parent cc6ef81 commit a0744a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ RUN curl -sL --retry 3 \
5353
"http://archive.apache.org/dist/hadoop/common/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz" \
5454
| gunzip \
5555
| tar -x -C /usr/ \
56-
&& rm -rf $HADOOP_HOME/share/doc
56+
&& rm -rf $HADOOP_HOME/share/doc \
57+
&& chown -R root:root $HADOOP_HOME
5758

5859
# SPARK
5960
ENV SPARK_VERSION 2.0.0
@@ -65,7 +66,8 @@ RUN curl -sL --retry 3 \
6566
"http://d3kbcqa49mib13.cloudfront.net/${SPARK_PACKAGE}.tgz" \
6667
| gunzip \
6768
| tar x -C /usr/ \
68-
&& mv /usr/$SPARK_PACKAGE $SPARK_HOME
69+
&& mv /usr/$SPARK_PACKAGE $SPARK_HOME \
70+
&& chown -R root:root $SPARK_HOME
6971

7072
WORKDIR $SPARK_HOME
7173
CMD ["bin/spark-class", "org.apache.spark.deploy.master.Master"]

0 commit comments

Comments
 (0)