<?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: Failed to format Namenode in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-format-Namenode/m-p/360249#M238357</link>
    <description>&lt;P&gt;OK I solved it. Basically the permissions to the following datanode drives on all my three machines had to be made &lt;STRONG&gt;"sudo chown -R&amp;nbsp; hdfs:hadoop"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/media/sanjay/hdd02&lt;/P&gt;&lt;P&gt;/media/sanjay/hdd02&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 31 Dec 2022 00:11:07 GMT</pubDate>
    <dc:creator>sanjaysubs</dc:creator>
    <dc:date>2022-12-31T00:11:07Z</dc:date>
    <item>
      <title>Failed to format Namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-format-Namenode/m-p/360248#M238356</link>
      <description>&lt;P&gt;I got CM up and running and want to add the HDFS service. Keep getting this error. In fact I went to the linux disk and in desperation made chmod -R 755 to the root namenode folder. Still get this error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;java.io.IOException: Cannot create directory /media/sanjay/hdd02/dfs/nn/current&lt;BR /&gt;at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.clearDirectory(Storage.java:416)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:579)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:601)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:173)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1169)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1610)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1720)&lt;BR /&gt;2022-12-30 11:51:27,073 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode.&lt;BR /&gt;java.io.IOException: Cannot create directory /media/sanjay/hdd02/dfs/nn/current&lt;BR /&gt;at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.clearDirectory(Storage.java:416)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:579)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:601)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:173)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1169)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1610)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1720)&lt;BR /&gt;2022-12-30 11:51:27,074 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1: java.io.IOException: Cannot create directory /media/sanjay/hdd02/dfs/nn/current&lt;BR /&gt;2022-12-30 11:51:27,076 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: SHUTDOWN_MSG:&lt;BR /&gt;/************************************************************&lt;BR /&gt;SHUTDOWN_MSG: Shutting down NameNode at hp8300one/10.0.0.3&lt;BR /&gt;************************************************************/&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 20:31:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-format-Namenode/m-p/360248#M238356</guid>
      <dc:creator>sanjaysubs</dc:creator>
      <dc:date>2022-12-30T20:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to format Namenode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-format-Namenode/m-p/360249#M238357</link>
      <description>&lt;P&gt;OK I solved it. Basically the permissions to the following datanode drives on all my three machines had to be made &lt;STRONG&gt;"sudo chown -R&amp;nbsp; hdfs:hadoop"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/media/sanjay/hdd02&lt;/P&gt;&lt;P&gt;/media/sanjay/hdd02&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2022 00:11:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-format-Namenode/m-p/360249#M238357</guid>
      <dc:creator>sanjaysubs</dc:creator>
      <dc:date>2022-12-31T00:11:07Z</dc:date>
    </item>
  </channel>
</rss>

