<?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 doesn't start. Error: The path component: '/' in '/var/lib/hadoop-hdfs/dn_socket' has permissions 0777 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Datanode-doesn-t-start-Error-The-path-component-in-var-lib/m-p/238025#M199836</link>
    <description>&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Got the hint logs are exactly pointing the issue.&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;ls -ld /&lt;/STRONG&gt;" shows me it has 777 permission. Just removed the write permission for group and other users, my issue is solved.&lt;/P&gt;&lt;P&gt;All these while I only checked the permission for the subsequent folders after "/" but the problem lies with "/" itself.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2019 20:04:29 GMT</pubDate>
    <dc:creator>Vinay_Prakash</dc:creator>
    <dc:date>2019-04-08T20:04:29Z</dc:date>
    <item>
      <title>Datanode doesn't start. Error: The path component: '/' in '/var/lib/hadoop-hdfs/dn_socket' has permissions 0777</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-doesn-t-start-Error-The-path-component-in-var-lib/m-p/238024#M199835</link>
      <description>&lt;P&gt;After a successful fresh Installation of HDP 3.1.0 on a 2 node Ubuntu 18.0.4 instances, we were able to get all the services up and running.&lt;/P&gt;&lt;P&gt;But after a night off, Datanode doesn't start. Following is the error:&lt;/P&gt;&lt;PRE&gt;ERROR datanode.DataNode (DataNode.java:secureMain(2883)) - Exception in secureMain
java.io.IOException: The path component: '/' in '/var/lib/hadoop-hdfs/dn_socket' has permissions 0777 uid 0 and gid 0. It is not protected because it is world-writable. This might help: 'chmod o-w /'. For more information: &lt;A href="https://wiki.apache.org/hadoop/SocketPathSecurity" target="_blank" rel="nofollow noopener noreferrer"&gt;https://wiki.apache.org/hadoop/SocketPathSecurity&lt;/A&gt;
&amp;nbsp; &amp;nbsp; at org.apache.hadoop.net.unix.DomainSocket.validateSocketPathSecurity0(Native Method)
&amp;nbsp; &amp;nbsp; at org.apache.hadoop.net.unix.DomainSocket.bindAndListen(DomainSocket.java:193)
&amp;nbsp; &amp;nbsp; at org.apache.hadoop.hdfs.net.DomainPeerServer.&amp;lt;init&amp;gt;(DomainPeerServer.java:40)
&amp;nbsp; &amp;nbsp; at org.apache.hadoop.hdfs.server.datanode.DataNode.getDomainPeerServer(DataNode.java:1194)
&amp;nbsp; &amp;nbsp; at org.apache.hadoop.hdfs.server.datanode.DataNode.initDataXceiver(DataNode.java:1161)
&amp;nbsp; &amp;nbsp; at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1416)
&amp;nbsp; &amp;nbsp; at org.apache.hadoop.hdfs.server.datanode.DataNode.&amp;lt;init&amp;gt;(DataNode.java:500)
&amp;nbsp; &amp;nbsp; at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2782)
&amp;nbsp; &amp;nbsp; at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2690)
&amp;nbsp; &amp;nbsp; at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2732)
&amp;nbsp; &amp;nbsp; at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2876)
&amp;nbsp; &amp;nbsp; at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2900)
2019-04-08 17:36:52,452 INFO &amp;nbsp;util.ExitUtil (ExitUtil.java:terminate(210)) - Exiting with status 1: java.io.IOException: The path component: '/' in '/var/lib/hadoop-hdfs/dn_socket' has permissions 0777 uid 0 and gid 0. It is not protected because it is world-writable. This might help: 'chmod o-w /'. For more information: &lt;A href="https://wiki.apache.org/hadoop/SocketPathSecurity" target="_blank" rel="nofollow noopener noreferrer"&gt;https://wiki.apache.org/hadoop/SocketPathSecurity&lt;/A&gt;
2019-04-08 17:36:52,456 INFO &amp;nbsp;datanode.DataNode (LogAdapter.java:info(51)) - SHUTDOWN_MSG&lt;/PRE&gt;&lt;P&gt;I did check the socket file and it's parent directories, I don't see the 777 permission at any level. But still the error appears while starting the datanode.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107663-1554726842684.png" style="width: 753px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14165iDF07C166349A8297/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107663-1554726842684.png" alt="107663-1554726842684.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Couldn't find any solution, so posted here for help. I have also uploaded the complete logs for the datanode.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/107664-hadoop-hdfs-datanode.txt" target="_blank"&gt;hadoop-hdfs-datanode.txt&lt;/A&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinay MP&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 23:06:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-doesn-t-start-Error-The-path-component-in-var-lib/m-p/238024#M199835</guid>
      <dc:creator>Vinay_Prakash</dc:creator>
      <dc:date>2019-08-17T23:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Datanode doesn't start. Error: The path component: '/' in '/var/lib/hadoop-hdfs/dn_socket' has permissions 0777</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Datanode-doesn-t-start-Error-The-path-component-in-var-lib/m-p/238025#M199836</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Got the hint logs are exactly pointing the issue.&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;ls -ld /&lt;/STRONG&gt;" shows me it has 777 permission. Just removed the write permission for group and other users, my issue is solved.&lt;/P&gt;&lt;P&gt;All these while I only checked the permission for the subsequent folders after "/" but the problem lies with "/" itself.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 20:04:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Datanode-doesn-t-start-Error-The-path-component-in-var-lib/m-p/238025#M199836</guid>
      <dc:creator>Vinay_Prakash</dc:creator>
      <dc:date>2019-04-08T20:04:29Z</dc:date>
    </item>
  </channel>
</rss>

