Search code examples
ambarihortonworks-sandbox

Host Disk Usage: Warning message regarding disk usage


I've downloaded version HDF_3.0.2.0_vmware of the Hortonworks Sandbox. I am using VMWare Player version 6.0.7 on my laptop. Shortly after startup/logging into Ambari, I see this alert:

enter image description here

The message that is cut off reads: "Capacity Used: [60.11%, 32.3 GB], Capacity Total: [53.7 GB], path=/usr/hdp". I'd hoped that I would be able to focus on NiFi/Storm development rather than administering the sandbox itself, however it looks like the VM is undersized. Here are the VM settings I have for storage. How do I go about correcting the underlying issue prompting the alert?

enter image description here


Solution

  • I had similar issue, it's about node partitioning and directories mounted for data under HDFS -> Configs -> Settings -> DataNode

    You can check your node partitioning using below command-

    lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
    

    Mostly hdfs namenode or datanode directories point to root partitions. We can change thresholds values for alerts temporary and to have permanent solution we can add additional data directories.

    Below links can he helpful to do the same.

    Check from above link - I think your partitioning is wrong you are not using "/" for hdfs directory. If you want use full disk capacity, you can create any folder name under "/" example /data/1 on every data node using command "#mkdir -p /data/1" and add to it dfs.datanode.data.dir. restart the hdfs service.