<?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: Datanodes failed to start the role because hdfs-sockets cannot be created in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanodes-failed-to-start-the-role-because-hdfs-sockets/m-p/41144#M19198</link>
    <description>&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;java.net.BindException: bind(2) error: Permission denied when trying to bind to '/var/run/hdfs-sockets/dn'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Exception in secureMain
java.net.BindException: bind(2) error: Permission denied when trying to bind to '/var/run/hdfs-sockets/dn'
	at org.apache.hadoop.net.unix.DomainSocket.bind0(Native Method)
	at org.apache.hadoop.net.unix.DomainSocket.bindAndListen(DomainSocket.java:191)
	at org.apache.hadoop.hdfs.net.DomainPeerServer.&amp;lt;init&amp;gt;(DomainPeerServer.java:40)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.getDomainPeerServer(DataNode.java:967)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.initDataXceiver(DataNode.java:933)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1137)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.&amp;lt;init&amp;gt;(DataNode.java:451)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2406)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2293)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2340)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2517)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2541)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Exiting with status 1&lt;/PRE&gt;
&lt;PRE&gt;SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down DataNode at icslt.ad.infosys.com/172.25.11.89
************************************************************/&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Members,&lt;/P&gt;
&lt;P&gt;My problem is not resolving even with ROOT:ROOT permission on&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[root@icslt run]# ls -ltd hdfs-sockets/&lt;BR /&gt;drwxr-xr-x 2 root root 4096 May 21 00:52 hdfs-sockets/&lt;BR /&gt;[root@icslt run]#&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest its urgent....&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;Amit Lal&lt;/P&gt;</description>
    <pubDate>Sun, 22 May 2016 12:28:55 GMT</pubDate>
    <dc:creator>amitlal007</dc:creator>
    <dc:date>2016-05-22T12:28:55Z</dc:date>
    <item>
      <title>Datanodes failed to start the role because hdfs-sockets cannot be created</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanodes-failed-to-start-the-role-because-hdfs-sockets/m-p/37357#M19195</link>
      <description>&lt;P&gt;I was able to complete the installation of CDH-5.5.1.&amp;nbsp; But, all datanodes have problem starting HDFS service due to the following problem:&lt;/P&gt;&lt;PRE&gt;2016-02-11 18:18:51,394 FATAL org.apache.hadoop.hdfs.server.datanode.DataNode: Exception in secureMain
java.net.BindException: bind(2) error: Permission denied when trying to bind to '/ssd1/tmp/dfs/socket/dn'
	at org.apache.hadoop.net.unix.DomainSocket.bind0(Native Method)
	at org.apache.hadoop.net.unix.DomainSocket.bindAndListen(DomainSocket.java:191)
	at org.apache.hadoop.hdfs.net.DomainPeerServer.&amp;lt;init&amp;gt;(DomainPeerServer.java:40)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.getDomainPeerServer(DataNode.java:970)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.initDataXceiver(DataNode.java:936)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1144)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.&amp;lt;init&amp;gt;(DataNode.java:453)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2402)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2289)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2336)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2513)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2537)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original location was&amp;nbsp;/var/run/hdfs-sockets/dn.&amp;nbsp; I had the same problem with original location.&amp;nbsp; So, I changed it to a new location, and I still have the "permission denied" problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I installed the Cloudera Manager using the user root.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:03:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanodes-failed-to-start-the-role-because-hdfs-sockets/m-p/37357#M19195</guid>
      <dc:creator>kcjc</dc:creator>
      <dc:date>2022-09-16T10:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Datanodes failed to start the role because hdfs-sockets cannot be created</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanodes-failed-to-start-the-role-because-hdfs-sockets/m-p/37403#M19196</link>
      <description>&lt;P&gt;I am begining to see where the problem lies. &amp;nbsp;In the Cloudera Manager HDFS config setting, I am using hduser:hadoop as the system user and system group. &amp;nbsp;After re-starting the HDFS, I saw that /var/run/dfs-socket was created and assigned to hduser:hadoop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, I am still getting the error: &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;java.io.IOException: the path component: '/var/run/dfs-socket' is owned by a user who is not root and not you.&lt;/PRE&gt;&lt;P&gt;What I am not clear is when hdfs.sh is run to start the HDFS service, which user is running the script? &amp;nbsp;Note that root user was used to install the Cloudera Manager and setup all the NameNodes and DataNodes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 17:36:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanodes-failed-to-start-the-role-because-hdfs-sockets/m-p/37403#M19196</guid>
      <dc:creator>kcjc</dc:creator>
      <dc:date>2016-02-12T17:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Datanodes failed to start the role because hdfs-sockets cannot be created</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanodes-failed-to-start-the-role-because-hdfs-sockets/m-p/37407#M19197</link>
      <description>&lt;P&gt;The problem was solved by changing the system user to root, usergroup to root and shared usergroup to hadoop in the HDFS configuration. &amp;nbsp;I also removed the original folders named "dfs-socket" in /var/run/ in all DataNodes and let the script create new folders.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 18:04:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanodes-failed-to-start-the-role-because-hdfs-sockets/m-p/37407#M19197</guid>
      <dc:creator>kcjc</dc:creator>
      <dc:date>2016-02-12T18:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Datanodes failed to start the role because hdfs-sockets cannot be created</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanodes-failed-to-start-the-role-because-hdfs-sockets/m-p/41144#M19198</link>
      <description>&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;java.net.BindException: bind(2) error: Permission denied when trying to bind to '/var/run/hdfs-sockets/dn'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Exception in secureMain
java.net.BindException: bind(2) error: Permission denied when trying to bind to '/var/run/hdfs-sockets/dn'
	at org.apache.hadoop.net.unix.DomainSocket.bind0(Native Method)
	at org.apache.hadoop.net.unix.DomainSocket.bindAndListen(DomainSocket.java:191)
	at org.apache.hadoop.hdfs.net.DomainPeerServer.&amp;lt;init&amp;gt;(DomainPeerServer.java:40)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.getDomainPeerServer(DataNode.java:967)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.initDataXceiver(DataNode.java:933)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1137)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.&amp;lt;init&amp;gt;(DataNode.java:451)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2406)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2293)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2340)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2517)
	at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2541)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Exiting with status 1&lt;/PRE&gt;
&lt;PRE&gt;SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down DataNode at icslt.ad.infosys.com/172.25.11.89
************************************************************/&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Members,&lt;/P&gt;
&lt;P&gt;My problem is not resolving even with ROOT:ROOT permission on&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[root@icslt run]# ls -ltd hdfs-sockets/&lt;BR /&gt;drwxr-xr-x 2 root root 4096 May 21 00:52 hdfs-sockets/&lt;BR /&gt;[root@icslt run]#&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest its urgent....&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;Amit Lal&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 12:28:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanodes-failed-to-start-the-role-because-hdfs-sockets/m-p/41144#M19198</guid>
      <dc:creator>amitlal007</dc:creator>
      <dc:date>2016-05-22T12:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Datanodes failed to start the role because hdfs-sockets cannot be created</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanodes-failed-to-start-the-role-because-hdfs-sockets/m-p/287004#M19199</link>
      <description>&lt;P&gt;&lt;SPAN&gt;[root@Vm91 hadoop-hdfs]# chown hdfs:root -R /&lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;/run/hdfs-sockets&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;try this one&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 10:33:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Datanodes-failed-to-start-the-role-because-hdfs-sockets/m-p/287004#M19199</guid>
      <dc:creator>tencentemr</dc:creator>
      <dc:date>2020-01-07T10:33:18Z</dc:date>
    </item>
  </channel>
</rss>

