<?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: java.io.FileNotFoundException: File file:/dfs/dn does not exist in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-File-file-dfs-dn-does-not/m-p/46050#M42447</link>
    <description>Has anybody has any suggestion?&lt;BR /&gt;still getting same error.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 07 Oct 2016 16:43:29 GMT</pubDate>
    <dc:creator>atif8706</dc:creator>
    <dc:date>2016-10-07T16:43:29Z</dc:date>
    <item>
      <title>java.io.FileNotFoundException: File file:/dfs/dn does not exist</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-File-file-dfs-dn-does-not/m-p/45834#M42444</link>
      <description>&lt;P&gt;Hello, Folks&amp;nbsp;&lt;BR /&gt;I got partial cloudera 5.8.2 server running.&amp;nbsp;&lt;BR /&gt;So far I have ZooKeeper and Name Node, NFS Gateway service is running.&amp;nbsp;&lt;BR /&gt;I can't get HDFS services to start on data node.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep getting - the Following error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#FF0000"&gt;&lt;STRONG&gt;java.io.FileNotFoundException: File file:/dfs/dn does not exist&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#FF0000"&gt;&lt;FONT color="#000000"&gt;Google is not very helpful either -&amp;nbsp;&lt;/FONT&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#FF0000"&gt;&lt;FONT color="#000000"&gt;Any suggestion ...? Please advise.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#FF0000"&gt;&lt;FONT color="#000000"&gt;---------&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#FF0000"&gt;&lt;FONT color="#000000"&gt;DFS Info on&amp;nbsp;data node 1.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#FF0000"&gt;&lt;FONT color="#000000"&gt;root@hadoop-dn01:/#&lt;FONT color="#FF0000"&gt;&lt;EM&gt; ll dfs&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;total 20&lt;BR /&gt;drwx------ 5 hdfs hdfs 4096 Sep 30 22:32 ./&lt;BR /&gt;drwxr-xr-x 26 root root 4096 Sep 30 14:09 ../&lt;BR /&gt;drwx------ 3 hdfs hdfs 4096 Sep 26 16:19 dn/&lt;BR /&gt;drwx------ 2 hdfs hdfs 4096 Sep 26 20:19 nn/&lt;BR /&gt;drwxr-xr-x 2 hdfs hdfs 4096 Sep 30 22:32 snn/&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#FF0000"&gt;&lt;FONT color="#000000"&gt;======&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#FF0000"&gt;&lt;FONT color="#000000"&gt;root@hadoop-dn01:/#&lt;FONT color="#FF0000"&gt;&lt;EM&gt; ll -l /dfs/dn&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;total 24&lt;BR /&gt;drwx------ 3 hdfs hdfs 4096 Sep 26 16:19 ./&lt;BR /&gt;drwx------ 5 hdfs hdfs 4096 Sep 30 22:32 ../&lt;BR /&gt;drwx------ 2 root root 16384 Sep 26 16:19 lost+found/&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#FF0000"&gt;&lt;FONT color="#000000"&gt;-------&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Installation_dataNode_09_30_16.JPG" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/2223iC414C4417749706A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Installation_dataNode_09_30_16.JPG" alt="Installation_dataNode_09_30_16.JPG" /&gt;&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;FONT face="arial,helvetica,sans-serif" size="3" color="#FF0000"&gt;&lt;FONT color="#000000"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:42:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-File-file-dfs-dn-does-not/m-p/45834#M42444</guid>
      <dc:creator>atif8706</dc:creator>
      <dc:date>2022-09-16T10:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.FileNotFoundException: File file:/dfs/dn does not exist</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-File-file-dfs-dn-does-not/m-p/45868#M42445</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a couple of questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Have you checked the value of your datanode directory in Cloudera Manager (CM -&amp;gt; HDFS -&amp;gt; Configuration-&amp;gt;&amp;nbsp;&lt;SPAN&gt;DataNode Data Directory)? &amp;nbsp;It should state /dfs/dn.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Run the following command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sudo chown -R hdfs:hdfs /dfs/dn&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. If that does not fix the issue, delete /dfs/dn, and restart HDFS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 16:12:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-File-file-dfs-dn-does-not/m-p/45868#M42445</guid>
      <dc:creator>rufusayeni</dc:creator>
      <dc:date>2016-10-03T16:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.FileNotFoundException: File file:/dfs/dn does not exist</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-File-file-dfs-dn-does-not/m-p/45872#M42446</link>
      <description>&lt;P&gt;I check the configuration and start/restart the HDFS services. No luck ..still seeing the same problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even try the different path and mount the storage to a different location. Still same problem. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Old /dfs/dn&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;new /dn01&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;root@hadoop-dn01:/# ll /dn01&lt;BR /&gt;total 24&lt;BR /&gt;drwx------ 3 hdfs hdfs 4096 Sep 26 16:19 ./&lt;BR /&gt;drwxr-xr-x 27 root root 4096 Oct 3 18:01 ../&lt;BR /&gt;drwx------ 2 hdfs hdfs 16384 Sep 26 16:19 lost+found/&lt;BR /&gt;root@hadoop-dn01:/#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;Oct 3, 6:45:31.023 PM DEBUG org.apache.htrace.core.Tracer&lt;BR /&gt;span.receiver.classes = ; loaded no span receivers&lt;BR /&gt;Oct 3, 6:45:31.161 PM DEBUG org.apache.hadoop.io.nativeio.NativeIO&lt;BR /&gt;Initialized cache for IDs to User/Group mapping with a cache timeout of 14400 seconds.&lt;BR /&gt;Oct 3, 6:45:31.161 PM WARN org.apache.hadoop.hdfs.server.datanode.DataNode&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Invalid dfs.datanode.data.dir /dn01 : &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;EPERM: Operation not permitted&lt;/FONT&gt;&lt;BR /&gt;at org.apache.hadoop.io.nativeio.NativeIO$POSIX.chmodImpl(Native Method)&lt;BR /&gt;at org.apache.hadoop.io.nativeio.NativeIO$POSIX.chmod(NativeIO.java:230)&lt;BR /&gt;at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:708)&lt;BR /&gt;at org.apache.hadoop.fs.ChecksumFileSystem$1.apply(ChecksumFileSystem.java:500)&lt;BR /&gt;at org.apache.hadoop.fs.ChecksumFileSystem$FsOperation.run(ChecksumFileSystem.java:481)&lt;BR /&gt;at org.apache.hadoop.fs.ChecksumFileSystem.setPermission(ChecksumFileSystem.java:497)&lt;BR /&gt;at org.apache.hadoop.util.DiskChecker.mkdirsWithExistsAndPermissionCheck(DiskChecker.java:140)&lt;BR /&gt;at org.apache.hadoop.util.DiskChecker.checkDir(DiskChecker.java:156)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.datanode.DataNode$DataNodeDiskChecker.checkDir(DataNode.java:2458)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.datanode.DataNode.checkStorageLocations(DataNode.java:2500)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2482)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2374)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2421)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2598)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2622)&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Oct 3, 6:45:31.164 PM FATAL org.apache.hadoop.hdfs.server.datanode.DataNode &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Exception in secureMain&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;java.io.IOException: All directories in dfs.datanode.data.dir are invalid: "/dn01/"&lt;/FONT&gt;&lt;BR /&gt;at org.apache.hadoop.hdfs.server.datanode.DataNode.checkStorageLocations(DataNode.java:2509)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2482)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2374)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2421)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2598)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2622)&lt;BR /&gt;Oct 3, 6:45:31.166 PM INFO org.apache.hadoop.util.ExitUtil&lt;BR /&gt;Exiting with status 1&lt;BR /&gt;Oct 3, 6:45:31.169 PM INFO org.apache.hadoop.hdfs.server.datanode.DataNode&lt;BR /&gt;SHUTDOWN_MSG:&lt;BR /&gt;/************************************************************&lt;BR /&gt;SHUTDOWN_MSG: Shutting down DataNode at hadoop-dn01.fhmc.local/10.29.1.4&lt;BR /&gt;************************************************************/&lt;/P&gt;&lt;P&gt;--------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same problem!! -&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 18:54:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-File-file-dfs-dn-does-not/m-p/45872#M42446</guid>
      <dc:creator>atif8706</dc:creator>
      <dc:date>2016-10-03T18:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.FileNotFoundException: File file:/dfs/dn does not exist</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-File-file-dfs-dn-does-not/m-p/46050#M42447</link>
      <description>Has anybody has any suggestion?&lt;BR /&gt;still getting same error.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Oct 2016 16:43:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-File-file-dfs-dn-does-not/m-p/46050#M42447</guid>
      <dc:creator>atif8706</dc:creator>
      <dc:date>2016-10-07T16:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.FileNotFoundException: File file:/dfs/dn does not exist</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-File-file-dfs-dn-does-not/m-p/47226#M42448</link>
      <description>&lt;P&gt;Ok, problem indeed with permission.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;/DFS ==&amp;gt; &amp;nbsp;root&lt;BR /&gt;/dfs/dn01 ==&amp;gt; root&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;==============&amp;nbsp;&lt;BR /&gt;Correct permission: &amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution::&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/dfs ==&amp;gt; cloudera-scm:cloudera-scm&lt;BR /&gt;/dfs/dn01 ==&amp;gt; hdfs:hdfs&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;chown cloudera-scm:cloudera-scm dfs&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;cd /dfs&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;BR /&gt;chown hdfs:hdfs dn01&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 17:03:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/java-io-FileNotFoundException-File-file-dfs-dn-does-not/m-p/47226#M42448</guid>
      <dc:creator>atif8706</dc:creator>
      <dc:date>2016-11-09T17:03:13Z</dc:date>
    </item>
  </channel>
</rss>

