<?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: Hadoop/Kerberos issue in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Kerberos-issue/m-p/34382#M10980</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Unfortunately, there's a known bug in hadoop where any capital letters in host names makes Kerberos not work. The only thing you can do is change your host names to be all lowercase.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Darren</description>
    <pubDate>Tue, 24 Nov 2015 16:40:35 GMT</pubDate>
    <dc:creator>Darren</dc:creator>
    <dc:date>2015-11-24T16:40:35Z</dc:date>
    <item>
      <title>Hadoop/Kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Kerberos-issue/m-p/34375#M10978</link>
      <description>&lt;P&gt;I have a two node cluster – apache hadoop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On my namenode host, datanode is also running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I enabled kerberos security on the cluster using : &lt;A href="http://queryio.com/hadoop-big-data-docs/hadoop-big-data-admin-guide/queryio/hadoop-security-setup-kerberos.html" target="_blank" rel="nofollow"&gt;http://queryio.com/hadoop-big-data-docs/hadoop-big-data-admin-guide/queryio/hadoop-security-setup-kerberos.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Host names are Hadoop2.hitex.com and Hadoop4.hitex.com. Due to initial caps in hostname, I saw issues in the log where it was using all lower case for host name – so I hard coded the host names in hdfs-site.xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My user:group is hitex:hitex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The namenode and secondary namenode startup fine. But when I try to start the datanode (using sudo) on same host, it gives error as below. I think datanode is not able to connect to namenode :&lt;BR /&gt;2015-11-24 18:06:45,641 INFO org.mortbay.log: jetty-6.1.26&lt;BR /&gt;2015-11-24 18:06:46,870 INFO org.mortbay.log: Started HttpServer2$SelectChannelConnectorWithSafeStartup@0.0.0.0:1006&lt;BR /&gt;2015-11-24 18:06:46,895 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: dnUserName = hitex&lt;BR /&gt;2015-11-24 18:06:46,895 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: supergroup = hitex&lt;BR /&gt;2015-11-24 18:06:47,111 INFO org.apache.hadoop.ipc.CallQueueManager: Using callQueue class java.util.concurrent.LinkedBlockingQueue&lt;BR /&gt;2015-11-24 18:06:47,188 INFO org.apache.hadoop.ipc.Server: Starting Socket Reader #1 for port 50020&lt;BR /&gt;2015-11-24 18:06:47,494 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Opened IPC server at /0.0.0.0:50020&lt;BR /&gt;2015-11-24 18:06:47,844 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Refresh request received for nameservices: null&lt;BR /&gt;2015-11-24 18:06:48,057 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Starting BPOfferServices for nameservices: &amp;lt;default&amp;gt;&lt;BR /&gt;2015-11-24 18:06:48,102 WARN org.apache.hadoop.hdfs.server.common.Util: Path /home/hitex/Desktop/Hadoop/nodedata/datanode_dir should be specified as a URI in configuration files. Please update hdfs configuration.&lt;BR /&gt;2015-11-24 18:06:48,118 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Block pool &amp;lt;registering&amp;gt; (Datanode Uuid unassigned) service to Hadoop2.hitex.com/192.168.11.21:9000 starting to offer service&lt;BR /&gt;2015-11-24 18:06:48,178 INFO org.apache.hadoop.ipc.Server: IPC Server Responder: starting&lt;BR /&gt;2015-11-24 18:06:48,202 INFO org.apache.hadoop.ipc.Server: IPC Server listener on 50020: starting&lt;BR /&gt;2015-11-24 18:06:48,928 WARN org.apache.hadoop.ipc.Client: Exception encountered while connecting to the server : java.lang.IllegalArgumentException: Server has invalid Kerberos principal: hitex/hadoop2.hitex.com@hitex.com&lt;BR /&gt;2015-11-24 18:06:48,937 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Problem connecting to server: Hadoop2.hitex.com/192.168.11.21:9000&lt;BR /&gt;2015-11-24 18:06:53,954 WARN org.apache.hadoop.ipc.Client: Exception encountered while connecting to the server : java.lang.IllegalArgumentException: Server has invalid Kerberos principal: hitex/hadoop2.hitex.com@hitex.com&lt;BR /&gt;2015-11-24 18:06:53,956 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Problem connecting to server: Hadoop2.hitex.com/192.168.11.21:9000&lt;BR /&gt;2015-11-24 18:06:58,970 WARN org.apache.hadoop.ipc.Client: Exception encountered while connecting to the server : java.lang.IllegalArgumentException: Server has invalid Kerberos principal: hitex/hadoop2.hitex.com@hitex.com&lt;BR /&gt;2015-11-24 18:06:58,971 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Problem connecting to server: Hadoop2.hitex.com/192.168.11.21:9000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In above log I can see that it is using lower case host name (datanode trying to connect to namenode) – but I rechecked everywhere and cannot find where it is defined so. As noted earlier I have hard coded hostname in hdfs-site.xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help in resolving this – I have already spent 2 days on this without any breakthrough. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:50:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Kerberos-issue/m-p/34375#M10978</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2022-09-16T09:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop/Kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Kerberos-issue/m-p/34380#M10979</link>
      <description>&lt;P&gt;I would appreciate any insights on how to handle the initial caps in hostname in kerberos setup - like the 'H' in Hadoop2.hitex.com which gets modified to hadoop2.hitex.com and so fails.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 16:00:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Kerberos-issue/m-p/34380#M10979</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2015-11-24T16:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop/Kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Kerberos-issue/m-p/34382#M10980</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Unfortunately, there's a known bug in hadoop where any capital letters in host names makes Kerberos not work. The only thing you can do is change your host names to be all lowercase.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Darren</description>
      <pubDate>Tue, 24 Nov 2015 16:40:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Kerberos-issue/m-p/34382#M10980</guid>
      <dc:creator>Darren</dc:creator>
      <dc:date>2015-11-24T16:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop/Kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Kerberos-issue/m-p/34392#M10981</link>
      <description>Thanks for the clarification Darren.</description>
      <pubDate>Tue, 24 Nov 2015 21:03:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Kerberos-issue/m-p/34392#M10981</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2015-11-24T21:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop/Kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Kerberos-issue/m-p/85146#M10982</link>
      <description>I agree with you</description>
      <pubDate>Sat, 19 Jan 2019 05:08:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hadoop-Kerberos-issue/m-p/85146#M10982</guid>
      <dc:creator>kaduswapnali456</dc:creator>
      <dc:date>2019-01-19T05:08:14Z</dc:date>
    </item>
  </channel>
</rss>

