Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HDFS] export JAVA_HOME for hadoop script #1492

Merged
merged 1 commit into from
Feb 11, 2023

Conversation

chia7712
Copy link
Contributor

as title

@@ -86,8 +86,8 @@ COPY --from=build /opt/hadoop /opt/hadoop
#add user
RUN groupadd $USER && useradd -ms /bin/bash -g $USER $USER

#edit hadoop-env.sh
RUN echo "export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64" >> /opt/hadoop/etc/hadoop/hadoop-env.sh
# expose JAVA_HOME for hadoop
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chaohengstudent 不好意思,我在 #1438 應該是講錯了,用環境變數的方式會比修改腳本更常見,所以這隻PR改成用 ENV 的方式

@chia7712 chia7712 merged commit 707dbd3 into opensource4you:main Feb 11, 2023
@chia7712 chia7712 deleted the export_java_home branch March 27, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant