oula alshiekh
oula alshiekh

Reputation: 893

fencing methods with passworded ssh

iam using hadoop apache 2.7.1

after setting high availability in hadoop cluster

the automatic zookeeper fail over controller zkfc will apply fencing method

to fence(stop) one of the two name nodes if it goes down

and dfs.ha.fencing.methods in hdfs-site property handles this method as sshfence

but my question is what about if we have a passworded ssh

can fencing happens or automatic fail over works only with password less ssh ?

is there any way to make sshfencce include password in ssh in configuration?

Upvotes: 1

Views: 963

Answers (2)

Harsimranjit Singh Kler
Harsimranjit Singh Kler

Reputation: 2302

SSH between nodes should work for effective use of sshfence. More details about effective fencing can be found at

https://cornerhadoop.blogspot.com/2017/01/fencing-method-for-zk-based-ha-in-hadoop.html

Upvotes: 0

franklinsijo
franklinsijo

Reputation: 18270

No. In order for sshfence to work, it must be able to SSH to the target node without providing a passphrase. SSH through Key authentication is the only mode supported.

Upvotes: 1

Related Questions