Tung
Tung

Reputation: 112

How to setup different SSH ports for different Hadoop workers?

I have some Hadoop workers with different SSH ports, so I want to setup different SSH ports for them since Hadoop uses 22 as the default SSH port and although you can change the SSH port of Hadoop AFAIK it applies to all workers. I haven't found any guide on this.

Upvotes: 1

Views: 212

Answers (2)

Tung
Tung

Reputation: 112

I figured out myself: add hosts' configurations to ~/.ssh/config and use these configurations as hosts in $HADOOP_HOME/etc/hadoop/workers.

Upvotes: 0

Aref Khandan
Aref Khandan

Reputation: 319

Try setting variable: HADOOP_SSH_OPTS in hadoop-env.sh

It should be sth like:

export HADOOP_SSH_OPTS="-p 122"

if your new ssh port is 122

Upvotes: 1

Related Questions