Search code examples
hadoopapache-zookeeper

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?


Solution

  • 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.