<?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 won't start - dfs.datanode.http.address in use in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Datanode-won-t-start-dfs-datanode-http-address-in-use/m-p/322492#M228815</link>
    <description>&lt;P&gt;I realize that &lt;SPAN&gt;&lt;FONT face="courier new,courier,monospace"&gt;netstat -lpn | grep 1022&lt;/FONT&gt;&amp;nbsp;&lt;/SPAN&gt;command not display all port so I use&amp;nbsp;&lt;FONT face="courier new,courier,monospace"&gt;netstat -nap | grep 1022&lt;/FONT&gt; command I found a process run on this port&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;tcp 0 0 10.10.201.106:1022 10.10.201.10:2049 ESTABLISHED -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what process it is, seems OS process. So we try to restart the node I after it I find that port 1022 is free. Datanode is successfully started after it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not good to set &amp;lt;1024 for any process, I'll plan to modify all non-standard port on our cluster to the standard one.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Aug 2021 04:02:32 GMT</pubDate>
    <dc:creator>Mahadi</dc:creator>
    <dc:date>2021-08-13T04:02:32Z</dc:date>
    <item>
      <title>Datanode won't start - dfs.datanode.http.address in use</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-won-t-start-dfs-datanode-http-address-in-use/m-p/322486#M228810</link>
      <description>&lt;P&gt;One of of my data-node won't start. The error log on {HADOOP_LOG}/hdfs/{datanode}.err shown that the port of&amp;nbsp;dfs.datanode.http.address already in use. We use custom port for&amp;nbsp; dfs.datanode.http.address. When I run&amp;nbsp;&lt;FONT face="courier new,courier,monospace"&gt;netstat -lpn | grep 1022,&amp;nbsp;&lt;/FONT&gt;no service run on it. While for {datanode}.log file is not updated.&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;Initializing secure datanode resources
isSaslEnabled:true
Opened streaming server at /0.0.0.0:1019
java.net.BindException: Address already in use /0.0.0.0:1022
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:461)
        at sun.nio.ch.Net.bind(Net.java:453)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:222)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:85)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:78)
        at org.apache.hadoop.hdfs.server.datanode.SecureDataNodeStarter.getSecureResources(SecureDataNodeStarter.java:158)
        at org.apache.hadoop.hdfs.server.datanode.SecureDataNodeStarter.init(SecureDataNodeStarter.java:94)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:207)
Cannot load daemon
Service exit with a return value of 3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message on Ambari:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-sudo.sh  -H -E /usr/hdp/3.1.5.0-152/hadoop/bin/hdfs --config /usr/hdp/3.1.5.0-152/hadoop/conf --daemon start datanode' returned 1. ERROR: Cannot set priority of datanode process 7111&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 00:23:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-won-t-start-dfs-datanode-http-address-in-use/m-p/322486#M228810</guid>
      <dc:creator>Mahadi</dc:creator>
      <dc:date>2021-08-13T00:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode won't start - dfs.datanode.http.address in use</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-won-t-start-dfs-datanode-http-address-in-use/m-p/322492#M228815</link>
      <description>&lt;P&gt;I realize that &lt;SPAN&gt;&lt;FONT face="courier new,courier,monospace"&gt;netstat -lpn | grep 1022&lt;/FONT&gt;&amp;nbsp;&lt;/SPAN&gt;command not display all port so I use&amp;nbsp;&lt;FONT face="courier new,courier,monospace"&gt;netstat -nap | grep 1022&lt;/FONT&gt; command I found a process run on this port&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;tcp 0 0 10.10.201.106:1022 10.10.201.10:2049 ESTABLISHED -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what process it is, seems OS process. So we try to restart the node I after it I find that port 1022 is free. Datanode is successfully started after it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not good to set &amp;lt;1024 for any process, I'll plan to modify all non-standard port on our cluster to the standard one.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 04:02:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-won-t-start-dfs-datanode-http-address-in-use/m-p/322492#M228815</guid>
      <dc:creator>Mahadi</dc:creator>
      <dc:date>2021-08-13T04:02:32Z</dc:date>
    </item>
  </channel>
</rss>

