From a496a8bebf431c3e597c171af2a8173954202436 Mon Sep 17 00:00:00 2001 From: yangyu Date: Sat, 28 Jul 2018 16:19:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9/etc/hosts=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hadoop/2.6.0/Dockerfile | 2 +- hadoop/2.6.0/start.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hadoop/2.6.0/Dockerfile b/hadoop/2.6.0/Dockerfile index ab40f05..19ceec1 100644 --- a/hadoop/2.6.0/Dockerfile +++ b/hadoop/2.6.0/Dockerfile @@ -44,6 +44,6 @@ COPY start.sh / RUN chmod 777 /start.sh -EXPOSE 22 50070 8020 8088 8042 +EXPOSE 22 50070 8020 8088 8042 8030 8031 8032 8033 CMD ["/start.sh"] diff --git a/hadoop/2.6.0/start.sh b/hadoop/2.6.0/start.sh index 301ec2c..17dea08 100644 --- a/hadoop/2.6.0/start.sh +++ b/hadoop/2.6.0/start.sh @@ -3,4 +3,6 @@ \cp /conf/* /usr/local/$HADOOP_VERSION/etc/hadoop +echo "127.0.0.1 localhost" > /etc/hosts + /usr/sbin/sshd -D