Skip to content

Commit

Permalink
Fix PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeBottle committed Feb 17, 2024
1 parent 332aa7b commit b83c148
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,20 @@ ENV ZOOKEEPER_VER="3.9.1" \
HADOOP_CONF_DIR="/opt/hadoop/etc/hadoop" \
# Hadoop日志目录
HADOOP_LOG_DIR="/opt/hadoop/logs"
# 用户.ssh配置目录
ENV USR_SSH_CONF_DIR="/root/.ssh" \
# 容器初次启动标识文件
INIT_FLAG_FILE="/root/init_flag" \
# 定义PATH
HASPARK_PATH="$HADOOP_HOME/bin:/opt/somebottle/haspark/tools:$ZOOKEEPER_HOME/bin" \
HASPARK_LD_LIBRARY_PATH="$HADOOP_HOME/lib/native"
# 把Hadoop目录加入环境变量
ENV HASPARK_PATH="$HADOOP_HOME/bin:/opt/somebottle/haspark/tools:$ZOOKEEPER_HOME/bin" \
HASPARK_LD_LIBRARY_PATH="$HADOOP_HOME/lib/native" \
PATH="$HASPARK_PATH:$PATH" \
ENV PATH="$HASPARK_PATH:$PATH" \
# 把Hadoop本地库加入动态链接库路径
# 以免Spark或Hadoop找不到Hadoop Native Library
LD_LIBRARY_PATH="$HASPARK_LD_LIBRARY_PATH:$LD_LIBRARY_PATH" \
# 临时密码文件路径加入环境变量
TEMP_PASS_FILE="/root/temp.pass"
# 用户.ssh配置目录
ENV USR_SSH_CONF_DIR="/root/.ssh" \
# 容器初次启动标识文件
INIT_FLAG_FILE="/root/init_flag"
# 以下是一些环境变量默认值,用于Hadoop初始化
ENV HADOOP_LAUNCH_MODE="general" \
HADOOP_HDFS_REPLICATION="2" \
Expand Down

0 comments on commit b83c148

Please sign in to comment.