Skip to content

Commit

Permalink
remove start-ssh.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwenlau committed Jun 11, 2016
1 parent 54963c6 commit 3b7b450
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
6 changes: 2 additions & 4 deletions hadoop-master/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,15 @@ RUN mv /tmp/hdfs-site.xml $HADOOP_INSTALL/etc/hadoop/hdfs-site.xml && \
mv /tmp/yarn-site.xml $HADOOP_INSTALL/etc/hadoop/yarn-site.xml && \
mv /tmp/slaves $HADOOP_INSTALL/etc/hadoop/slaves && \
mv /tmp/start-hadoop.sh ~/start-hadoop.sh && \
mv /tmp/run-wordcount.sh ~/run-wordcount.sh && \
mv /tmp/start-ssh.sh ~/start-ssh.sh
mv /tmp/run-wordcount.sh ~/run-wordcount.sh

RUN chmod +x ~/start-hadoop.sh && \
chmod +x ~/run-wordcount.sh && \
chmod +x ~/start-ssh.sh && \
chmod +x $HADOOP_INSTALL/sbin/start-dfs.sh && \
chmod +x $HADOOP_INSTALL/sbin/start-yarn.sh && \
chmod 1777 /tmp

# format namenode
RUN /usr/local/hadoop/bin/hdfs namenode -format

CMD '/root/start-ssh.sh'; 'bash'
CMD [ "sh", "-c", "service ssh start; bash"]
5 changes: 0 additions & 5 deletions hadoop-master/files/start-ssh.sh

This file was deleted.

7 changes: 2 additions & 5 deletions hadoop-slave/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ RUN mkdir $HADOOP_INSTALL/logs
RUN mv /tmp/hdfs-site.xml $HADOOP_INSTALL/etc/hadoop/hdfs-site.xml && \
mv /tmp/core-site.xml $HADOOP_INSTALL/etc/hadoop/core-site.xml && \
mv /tmp/mapred-site.xml $HADOOP_INSTALL/etc/hadoop/mapred-site.xml && \
mv /tmp/yarn-site.xml $HADOOP_INSTALL/etc/hadoop/yarn-site.xml
mv /tmp/yarn-site.xml $HADOOP_INSTALL/etc/hadoop/yarn-site.xml

RUN mv /tmp/start-ssh.sh ~/start-ssh.sh && \
chmod +x ~/start-ssh.sh

CMD '/root/start-ssh.sh'; 'bash'
CMD [ "sh", "-c", "service ssh start; bash"]
5 changes: 0 additions & 5 deletions hadoop-slave/files/start-ssh.sh

This file was deleted.

0 comments on commit 3b7b450

Please sign in to comment.