<?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: CDH installation: Failed to create HDFS directory /tmp. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CDH-installation-Failed-to-create-HDFS-directory-tmp/m-p/54404#M60461</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/19299"&gt;@BobinGZ&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Go to the path it mentioned and run the command "du -sh" and make sure it is greater than reserved amount&amp;nbsp;&lt;EM&gt;104857600&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2017 14:23:54 GMT</pubDate>
    <dc:creator>saranvisa</dc:creator>
    <dc:date>2017-05-04T14:23:54Z</dc:date>
    <item>
      <title>CDH installation: Failed to create HDFS directory /tmp.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CDH-installation-Failed-to-create-HDFS-directory-tmp/m-p/54390#M60459</link>
      <description>&lt;P&gt;Hi, I am installing CDH with CM (Path C) , but I can't create HDFS directory /tmp successfully. The log shows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2017-05-03 22:17:27,838 WARN org.apache.hadoop.hdfs.server.namenode.NameNodeResourceChecker: Space available on volume '/dev/disk/by-uuid/526841aa-13c2-4953-94ee-992b7f2fe6c9' is 0, which is below the configured reserved amount 104857600&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2017-05-03 22:17:27,838 WARN org.apache.hadoop.hdfs.server.namenode.FSNamesystem: NameNode low on available disk space. Already in safe mode.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2017-05-03 22:17:27,838 INFO org.apache.hadoop.hdfs.StateChange: STATE* Safe mode is ONResources are low on NN. Please add or free up more resources then turn off safe mode manually. NOTE: If you turn off safe mode before adding resources, the NN will immediately return to safe mode. Use "hdfs dfsadmin -safemode leave" to turn safe mode off.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;+ /opt/cloudera/parcels/CDH-5.4.7-1.cdh5.4.7.p0.3/lib/hadoop-hdfs/bin/hdfs --config /opt/cloudera-manager/cm-5.4.7/run/cloudera-scm-agent/process/60-hdfs-NAMENODE-createtmp dfs -mkdir -p /tmp mkdir: Cannot create directory /tmp. Name node is in safe mode.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;+ '[' 1 -eq 0 ']' + echo 'Unable to create directory /tmp; see stderr log.'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;+ exit 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but when I check with 'df -h' , it shows I should have enough disk space:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;lrwxrwxrwx 1 root root 10 Apr 22 09:35 /dev/disk/by-uuid/526841aa-13c2-4953-94ee-992b7f2fe6c9 -&amp;gt; ../../sda1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Filesystem Size Used Avail Use% Mounted on&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;udev 32G 4.0K 32G 1% /dev&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tmpfs 6.3G 1.6M 6.3G 1% /run&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/dev/sda1 212G 124G 78G 62% /&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, I have re-installed several times.&lt;/P&gt;&lt;P&gt;Any suggestion will be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 07:53:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CDH-installation-Failed-to-create-HDFS-directory-tmp/m-p/54390#M60459</guid>
      <dc:creator>BobinGZ</dc:creator>
      <dc:date>2017-05-04T07:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: CDH installation: Failed to create HDFS directory /tmp.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CDH-installation-Failed-to-create-HDFS-directory-tmp/m-p/54396#M60460</link>
      <description>&lt;P&gt;Could you check your hdfs-site.xml&lt;/P&gt;&lt;P&gt;for the below&amp;nbsp; parameter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dfs.namenode.resource.du.reserved&lt;/PRE&gt;&lt;P&gt;looks like you have allocated only 100MB - i can see that in you error log.&lt;/P&gt;&lt;P&gt;Increase it accordingly&amp;nbsp; and restart the namenode . it should fix the problem&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 09:50:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CDH-installation-Failed-to-create-HDFS-directory-tmp/m-p/54396#M60460</guid>
      <dc:creator>csguna</dc:creator>
      <dc:date>2017-05-04T09:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: CDH installation: Failed to create HDFS directory /tmp.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CDH-installation-Failed-to-create-HDFS-directory-tmp/m-p/54404#M60461</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/19299"&gt;@BobinGZ&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Go to the path it mentioned and run the command "du -sh" and make sure it is greater than reserved amount&amp;nbsp;&lt;EM&gt;104857600&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 14:23:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CDH-installation-Failed-to-create-HDFS-directory-tmp/m-p/54404#M60461</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2017-05-04T14:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: CDH installation: Failed to create HDFS directory /tmp.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CDH-installation-Failed-to-create-HDFS-directory-tmp/m-p/54441#M60462</link>
      <description>&lt;P&gt;Got it fixed!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Directory&amp;nbsp;&lt;/SPAN&gt;'/dfs/nn' has been removed before, but 'dfs/dn' is still there! After I removed all these directories, it works!&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 12:42:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CDH-installation-Failed-to-create-HDFS-directory-tmp/m-p/54441#M60462</guid>
      <dc:creator>BobinGZ</dc:creator>
      <dc:date>2017-05-05T12:42:28Z</dc:date>
    </item>
  </channel>
</rss>

