This topic describes the local disk directories that are used by Hadoop Distributed File System (HDFS) components in high availability (HA) clusters and non-HA clusters.

Warning If the directory that is used by a component is deleted for no reason, service exceptions and data loss may occur.

Components in a non-HA cluster

ComponentDirectoryDescription
NameNode
  • /mnt/disk1/hdfs/name
  • /mnt/disk1/hdfs/edit/
  • /mnt/disk1/hdfs/name: stores the FsImage files of the NameNode in the non-HA cluster.
  • /mnt/disk1/hdfs/edit/: stores the EditLog files of the NameNode in the non-HA cluster.
SecondaryNameNode/mnt/disk1/hdfs/secondary/The directory stores the relevant data of the Secondary NameNode in the non-HA cluster. The Secondary NameNode merges the EditLog files and generates an FsImage file.
DataNode/mnt/disk{1...N}/hdfsN depends on the number of data disks on a DataNode in the non-HA cluster. If a DataNode contains two disks, the storage directories are /mnt/disk1/hdfs and /mnt/disk2/hdfs.

Components in an HA cluster

ComponentDirectoryDescription
ZKFailoverController (ZKFC)NoneThe ZKFC does not use a local disk directory.
NameNode
  • /mnt/disk1/hdfs/name
  • /mnt/disk1/hdfs/edit/
  • /mnt/disk1/hdfs/name: stores the FsImage files of a NameNode in the HA cluster.
  • /mnt/disk1/hdfs/edit/: stores the EditLog files of a NameNode in the HA cluster.
JournalNode/mnt/disk1/hdfs/journal/The directory stores the EditLog files of a JournalNode in the HA cluster.
DataNode/mnt/disk{1...N}/hdfsN depends on the number of data disks on a DataNode in the HA cluster. If a DataNode contains two disks, the storage directories are /mnt/disk1/hdfs and /mnt/disk2/hdfs.