<?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 Setting the NameNode port (8020) to listen outside of localhost in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Setting-the-NameNode-port-8020-to-listen-outside-of/m-p/2257#M385</link>
    <description>&lt;P&gt;I have manually installed CDH4 on a machine according to the default configurations given in the Cloudera installation documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.2.1/CDH4-Installation-Guide/CDH4-Installation-Guide.html"&gt;http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.2.1/CDH4-Installation-Guide/CDH4-Installation-Guide.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I configured the machine to run in pseudo-distributed mode and the pseudo-cluster is working as expected when using the HDFS and MapReduce programs on the machine itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I have an application that is need of access to the NameNode port (8020). I am unable to make a connection to this port from an external machine despite having this port opened on the firewall. I found that the NameNode service is only listening on the localhost, thus rejecting requests from outside machines to communicate on this port.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ sudo netstat -tulpn | grep :8020&lt;/PRE&gt;&lt;PRE&gt;tcp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 127.0.0.1:8020&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0.0.0:*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LISTEN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16504/java&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want this service to listen to requests outside of the machine itself, just like I can communicate through port 50030 or 50070 on another machine. I have configured vi /etc/hadoop/conf.pseudo.mr1/core-site.xml to reference the machine name (hadoop) rather than localhost:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;fs.default.name&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;hdfs://hadoop:8020&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;After restarting the NameNode service, I find that it is still only listening of 127.0.0.1. Is there any way to open to this port up for external usage?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 08:49:03 GMT</pubDate>
    <dc:creator>JakeZ</dc:creator>
    <dc:date>2022-09-16T08:49:03Z</dc:date>
    <item>
      <title>Setting the NameNode port (8020) to listen outside of localhost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Setting-the-NameNode-port-8020-to-listen-outside-of/m-p/2257#M385</link>
      <description>&lt;P&gt;I have manually installed CDH4 on a machine according to the default configurations given in the Cloudera installation documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.2.1/CDH4-Installation-Guide/CDH4-Installation-Guide.html"&gt;http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.2.1/CDH4-Installation-Guide/CDH4-Installation-Guide.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I configured the machine to run in pseudo-distributed mode and the pseudo-cluster is working as expected when using the HDFS and MapReduce programs on the machine itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I have an application that is need of access to the NameNode port (8020). I am unable to make a connection to this port from an external machine despite having this port opened on the firewall. I found that the NameNode service is only listening on the localhost, thus rejecting requests from outside machines to communicate on this port.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ sudo netstat -tulpn | grep :8020&lt;/PRE&gt;&lt;PRE&gt;tcp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 127.0.0.1:8020&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0.0.0:*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LISTEN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16504/java&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want this service to listen to requests outside of the machine itself, just like I can communicate through port 50030 or 50070 on another machine. I have configured vi /etc/hadoop/conf.pseudo.mr1/core-site.xml to reference the machine name (hadoop) rather than localhost:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;fs.default.name&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;hdfs://hadoop:8020&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;After restarting the NameNode service, I find that it is still only listening of 127.0.0.1. Is there any way to open to this port up for external usage?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:49:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Setting-the-NameNode-port-8020-to-listen-outside-of/m-p/2257#M385</guid>
      <dc:creator>JakeZ</dc:creator>
      <dc:date>2022-09-16T08:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the NameNode port (8020) to listen outside of localhost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Setting-the-NameNode-port-8020-to-listen-outside-of/m-p/2303#M386</link>
      <description>&lt;P&gt;I found the solution. I had neglected to find the article detailing network configuration which specified that the /etc/hosts file should have the fully-qualified domain name listed, not just the machine name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.2.1/CDH4-Installation-Guide/cdh4ig_topic_4_4.html"&gt;http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.2.1/CDH4-Installation-Guide/cdh4ig_topic_4_4.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2013 19:03:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Setting-the-NameNode-port-8020-to-listen-outside-of/m-p/2303#M386</guid>
      <dc:creator>JakeZ</dc:creator>
      <dc:date>2013-10-16T19:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the NameNode port (8020) to listen outside of localhost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Setting-the-NameNode-port-8020-to-listen-outside-of/m-p/2321#M387</link>
      <description>&lt;P&gt;Thanks for closing the loop with us and posting back the solution, JakeZ&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2013 19:34:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Setting-the-NameNode-port-8020-to-listen-outside-of/m-p/2321#M387</guid>
      <dc:creator>Clint</dc:creator>
      <dc:date>2013-10-16T19:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the NameNode port (8020) to listen outside of localhost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Setting-the-NameNode-port-8020-to-listen-outside-of/m-p/20788#M388</link>
      <description>&lt;P&gt;The solution is much Simpler&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the HDFS configuration in cloudera there is a property called&lt;/P&gt;&lt;P&gt;Bind NameNode to Wildcard Address. You just need to check the box and it will bind the service on 0.0.0.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then restart hdfs service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[cloudera@localhost ~]$ sudo netstat -tulpn | grep :8020&lt;BR /&gt;tcp 0 0 0.0.0.0:8020 0.0.0.0:* LISTEN 29966/java&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 12:08:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Setting-the-NameNode-port-8020-to-listen-outside-of/m-p/20788#M388</guid>
      <dc:creator>Ciccio</dc:creator>
      <dc:date>2014-10-24T12:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the NameNode port (8020) to listen outside of localhost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Setting-the-NameNode-port-8020-to-listen-outside-of/m-p/278544#M389</link>
      <description>&lt;P&gt;Please guide how to follow step by step. thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 12:13:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Setting-the-NameNode-port-8020-to-listen-outside-of/m-p/278544#M389</guid>
      <dc:creator>ThanhP</dc:creator>
      <dc:date>2019-09-30T12:13:44Z</dc:date>
    </item>
  </channel>
</rss>

