add hadoop:2.7.4, add soft link to fix a bug

This commit is contained in:
newnius
2017-09-01 17:24:37 +08:00
parent fc70e58c31
commit c2265589ce
10 changed files with 349 additions and 0 deletions

View File

@@ -26,6 +26,8 @@ RUN echo "Port 2122" >> /etc/ssh/sshd_config
RUN wget -O hadoop.tar.gz https://archive.apache.org/dist/hadoop/common/hadoop-2.8.1/hadoop-2.8.1.tar.gz && \
tar -xzf hadoop.tar.gz -C /usr/local/ && rm hadoop.tar.gz
RUN ln -s /usr/local/hadoop-2.7.4 /usr/local/hadoop
ENV HADOOP_HOME /usr/local/hadoop
ENV PATH $PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin