From b3e53c089b990ebca2a71b296f7a7dae522ff648 Mon Sep 17 00:00:00 2001 From: Kshitij Date: Sun, 13 Apr 2025 04:01:09 +0530 Subject: [PATCH] Changed ADD to COPY for run.sh and added USER hdoop command in historyserver dir. --- historyserver/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/historyserver/Dockerfile b/historyserver/Dockerfile index 86ebad5..fc9301c 100644 --- a/historyserver/Dockerfile +++ b/historyserver/Dockerfile @@ -6,9 +6,11 @@ ENV YARN_CONF_yarn_timeline___service_leveldb___timeline___store_path=/hadoop/ya RUN mkdir -p /hadoop/yarn/timeline VOLUME /hadoop/yarn/timeline -ADD run.sh /run.sh +COPY --chown=hdoop:hdoop run.sh /run.sh RUN chmod a+x /run.sh +USER hdoop + EXPOSE 8188 CMD ["/run.sh"]