<?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 Re: Datanode can't connect to the namenode after enabling kerberos in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Datanode-can-t-connect-to-the-namenode-after-enabling/m-p/313628#M225627</link>
    <description>&lt;P&gt;Please note, the instructions are also available in our public documentation under "&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.5/installation/topics/cdpdc-installing-open-jdk-using-cm.html" target="_self"&gt;Installing OpenJDK&lt;/A&gt;".&lt;/P&gt;</description>
    <pubDate>Tue, 23 Mar 2021 14:35:00 GMT</pubDate>
    <dc:creator>Bender</dc:creator>
    <dc:date>2021-03-23T14:35:00Z</dc:date>
    <item>
      <title>Datanode can't connect to the namenode after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-can-t-connect-to-the-namenode-after-enabling/m-p/310895#M224352</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've recently enabled Kerberos in my cluster and since then one of my datanodes is not able to connect to the namenode:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see these entries in the namenode logs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-02-03 12:06:15,699 INFO  ipc.Server (Server.java:saslProcess(1573)) - Auth successful for $4E8100-MH1MCLUV65LO@&amp;lt;Realm-Name&amp;gt; (auth:KERBEROS)
2021-02-03 12:06:15,700 INFO  ipc.Server (Server.java:authorizeConnection(2235)) - Connection from &amp;lt;datanode-ip&amp;gt;:42328 for protocol org.apache.hadoop.hdfs.server.protocol.DatanodeProtocol is unauthorized for user dn/&amp;lt;datanode-hostname&amp;gt;@&amp;lt;Realm-Name&amp;gt; (auth:PROXY) via $4E8100-MH1MCLUV65LO@&amp;lt;Realm-Name&amp;gt; (auth:KERBEROS)
2021-02-03 12:06:15,700 INFO  ipc.Server (Server.java:doRead(1006)) - Socket Reader #1 for port 8020: readAndProcess from client &amp;lt;datanode-ip&amp;gt; threw exception [org.apache.hadoop.security.authorize.AuthorizationException: User: $4E8100-MH1MCLUV65LO@&amp;lt;Realm-Name&amp;gt; is not allowed to impersonate dn/&amp;lt;datanode-hostname&amp;gt;@&amp;lt;Realm-Name&amp;gt;]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the datanode logs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-02-03 12:14:33,806 WARN  datanode.DataNode (BPServiceActor.java:retrieveNamespaceInfo(225)) - Problem connecting to server: &amp;lt;namenode-hostname&amp;gt;/&amp;lt;namenode-ip&amp;gt;:8020&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've ensured that the hostnames are in lowercase and consistent in all the nodes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Telnet is also happening from the datanode to namenode hostname on 8020 port.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regenerating Keytabs and restarting everything also didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other areas to look into?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Megh&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 06:52:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-can-t-connect-to-the-namenode-after-enabling/m-p/310895#M224352</guid>
      <dc:creator>vidanimegh</dc:creator>
      <dc:date>2021-02-03T06:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode can't connect to the namenode after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-can-t-connect-to-the-namenode-after-enabling/m-p/310902#M224356</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84001"&gt;@vidanimegh&lt;/a&gt;&amp;nbsp;what java version you are using? This seems you are hitting a well known issue with java.&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Cloudera product releases using one of the following JDK versions:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;OpenJDK 1.8 u242 and later updates(example u252, u262 etc)&lt;BR /&gt;&amp;nbsp;OpenJDK 11.0.6 and later updates&lt;BR /&gt;&amp;nbsp;Oracle JDK 8u241 and later updates&lt;/PRE&gt;&lt;P&gt;are affected by this. Below are the instructions to mitigate this issue. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instructions:&lt;/P&gt;&lt;P&gt;On all impacted nodes, this issue has been solved pursuant to implementing the steps below based on the environment.&amp;nbsp;Edit the&lt;FONT face="terminal,monaco,monospace"&gt; java.security&lt;/FONT&gt; file located in the active JDK on each node.&amp;nbsp;You can find this file at one of the following locations:&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&amp;lt;JAVA_HOME&amp;gt;/jre/lib/security/&lt;BR /&gt;&amp;nbsp;&amp;lt;JAVA_HOME&amp;gt;/conf/security&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Add or alter the&amp;nbsp;sun.security.krb5.disableReferrals&amp;nbsp;parameter so that it is set to&amp;nbsp;true:&lt;/P&gt;&lt;PRE&gt;sun.security.krb5.disableReferrals=true&lt;/PRE&gt;&lt;P&gt;This change disables the new feature addition in the upgraded JDK release and no longer sets the bit in the AS-REQ which advertises the Name Type. This effectively disables the feature additions for RFC-6806.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 08:37:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-can-t-connect-to-the-namenode-after-enabling/m-p/310902#M224356</guid>
      <dc:creator>GangWar</dc:creator>
      <dc:date>2021-02-03T08:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode can't connect to the namenode after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-can-t-connect-to-the-namenode-after-enabling/m-p/310903#M224357</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84001"&gt;@vidanimegh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ensure if you are able to do forward and reverse dns lookup., Iptables are off.&lt;BR /&gt;Perform CM agent hard restart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whats the java version, There's this bug&amp;nbsp;&lt;A href="https://bugs.openjdk.java.net/browse/JDK-8215032" target="_blank"&gt;https://bugs.openjdk.java.net/browse/JDK-8215032&lt;/A&gt;&amp;nbsp;wherein&amp;nbsp;&lt;SPAN&gt;Servers with Kerberos enabled stop functioning. That could be a possibility&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 08:20:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-can-t-connect-to-the-namenode-after-enabling/m-p/310903#M224357</guid>
      <dc:creator>kingpin</dc:creator>
      <dc:date>2021-02-03T08:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode can't connect to the namenode after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-can-t-connect-to-the-namenode-after-enabling/m-p/310920#M224363</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29629"&gt;@GangWar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the node this issue was occuring, somehow the default jdk folder name was&amp;nbsp;java-1.8.0-openjdk-1.8.0.161-0.b14.el7_4.x86_64, so I assumed that it is 1.8.0.161, but after your suggestion I went into the node and issued "java -version" and to my surprise it was indeed&amp;nbsp;openjdk version "1.8.0_252".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following your suggestion has fixed the issue for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Megh&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 11:02:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-can-t-connect-to-the-namenode-after-enabling/m-p/310920#M224363</guid>
      <dc:creator>vidanimegh</dc:creator>
      <dc:date>2021-02-03T11:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode can't connect to the namenode after enabling kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-can-t-connect-to-the-namenode-after-enabling/m-p/313628#M225627</link>
      <description>&lt;P&gt;Please note, the instructions are also available in our public documentation under "&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.5/installation/topics/cdpdc-installing-open-jdk-using-cm.html" target="_self"&gt;Installing OpenJDK&lt;/A&gt;".&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 14:35:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-can-t-connect-to-the-namenode-after-enabling/m-p/313628#M225627</guid>
      <dc:creator>Bender</dc:creator>
      <dc:date>2021-03-23T14:35:00Z</dc:date>
    </item>
  </channel>
</rss>

