Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 712c835

Browse files
committed
HWXUP-3 starting ssh on port 2122 in order to support --net=host
1 parent 66ce751 commit 712c835

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ RUN ls -la /usr/local/hadoop/etc/hadoop/*-env.sh
7777
# fix the 254 error code
7878
RUN sed -i "/^[^#]*UsePAM/ s/.*/#&/" /etc/ssh/sshd_config
7979
RUN echo "UsePAM no" >> /etc/ssh/sshd_config
80+
RUN echo "Port 2122" >> /etc/ssh/sshd_config
8081

8182
RUN service sshd start && $HADOOP_PREFIX/etc/hadoop/hadoop-env.sh && $HADOOP_PREFIX/sbin/start-dfs.sh && $HADOOP_PREFIX/bin/hdfs dfs -mkdir -p /user/root
8283
RUN service sshd start && $HADOOP_PREFIX/etc/hadoop/hadoop-env.sh && $HADOOP_PREFIX/sbin/start-dfs.sh && $HADOOP_PREFIX/bin/hdfs dfs -put $HADOOP_PREFIX/etc/hadoop/ input

ssh_config

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ Host *
22
UserKnownHostsFile /dev/null
33
StrictHostKeyChecking no
44
LogLevel quiet
5+
Port 2122

0 commit comments

Comments
 (0)