<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question fencing methods with passworded ssh in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/fencing-methods-with-passworded-ssh/m-p/188644#M150737</link>
    <description>&lt;P&gt;iam using hadoop apache 2.7.1&lt;/P&gt;&lt;P&gt;after setting high availability in hadoop cluster &lt;/P&gt;&lt;P&gt;the automatic zookeeper  fail over controller zkfc will apply fencing method &lt;/P&gt;&lt;P&gt;to fence(stop) one of the two name nodes if it goes down&lt;/P&gt;&lt;P&gt;and &lt;CODE&gt;dfs.ha.fencing.methods&lt;/CODE&gt; in &lt;CODE&gt;hdfs-site&lt;/CODE&gt; property handles this method as &lt;CODE&gt;sshfence&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;but my question is what about if we have a passworded ssh&lt;/P&gt;&lt;P&gt;can fencing happens or automatic fail over works only with password less ssh ?&lt;/P&gt;&lt;P&gt;is there any way to make &lt;CODE&gt;sshfencce&lt;/CODE&gt; include password in ssh in configuration? &lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2017 18:17:10 GMT</pubDate>
    <dc:creator>oula_alshiekh</dc:creator>
    <dc:date>2017-04-05T18:17:10Z</dc:date>
    <item>
      <title>fencing methods with passworded ssh</title>
      <link>https://community.cloudera.com/t5/Support-Questions/fencing-methods-with-passworded-ssh/m-p/188644#M150737</link>
      <description>&lt;P&gt;iam using hadoop apache 2.7.1&lt;/P&gt;&lt;P&gt;after setting high availability in hadoop cluster &lt;/P&gt;&lt;P&gt;the automatic zookeeper  fail over controller zkfc will apply fencing method &lt;/P&gt;&lt;P&gt;to fence(stop) one of the two name nodes if it goes down&lt;/P&gt;&lt;P&gt;and &lt;CODE&gt;dfs.ha.fencing.methods&lt;/CODE&gt; in &lt;CODE&gt;hdfs-site&lt;/CODE&gt; property handles this method as &lt;CODE&gt;sshfence&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;but my question is what about if we have a passworded ssh&lt;/P&gt;&lt;P&gt;can fencing happens or automatic fail over works only with password less ssh ?&lt;/P&gt;&lt;P&gt;is there any way to make &lt;CODE&gt;sshfencce&lt;/CODE&gt; include password in ssh in configuration? &lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 18:17:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/fencing-methods-with-passworded-ssh/m-p/188644#M150737</guid>
      <dc:creator>oula_alshiekh</dc:creator>
      <dc:date>2017-04-05T18:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: fencing methods with passworded ssh</title>
      <link>https://community.cloudera.com/t5/Support-Questions/fencing-methods-with-passworded-ssh/m-p/188645#M150738</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12065/oulaalshiekh.html" nodeid="12065"&gt;@oula.alshiekh@gmail.com alshiekh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are basically two methods which ship with Hadoop: "shell" and "sshfence".&lt;/P&gt;&lt;P&gt;The sshfence option SSHes to the target node and uses fuser to kill the process listening on the service’s TCP port. In order for this fencing option to work, it must be able to SSH to the target node without providing a passphrase. &lt;/P&gt;&lt;P&gt;You can define &lt;STRONG&gt;username&lt;/STRONG&gt; though, &lt;STRONG&gt;one must also configure the dfs.ha.fencing.ssh.private-key-files option&lt;/STRONG&gt;, which is a comma-separated list of SSH private key files.&lt;/P&gt;&lt;P&gt;
However you can define  the &lt;STRONG&gt;username&lt;/STRONG&gt;/port/timeout of your choice as mentioned below. "sshfence([[username][:port]])"&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
       &amp;lt;name&amp;gt;dfs.ha.fencing.methods&amp;lt;/name&amp;gt;
       &amp;lt;value&amp;gt;sshfence([[username][:port]])&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;[1] Reference:  &lt;A href="https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithNFS.html" target="_blank"&gt;https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithNFS.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 18:29:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/fencing-methods-with-passworded-ssh/m-p/188645#M150738</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-04-05T18:29:38Z</dc:date>
    </item>
  </channel>
</rss>

