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
Component | Directory | Description |
---|---|---|
NameNode |
|
|
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}/hdfs | N 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
Component | Directory | Description |
---|---|---|
ZKFailoverController (ZKFC) | None | The ZKFC does not use a local disk directory. |
NameNode |
|
|
JournalNode | /mnt/disk1/hdfs/journal/ | The directory stores the EditLog files of a JournalNode in the HA cluster. |
DataNode | /mnt/disk{1...N}/hdfs | N 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. |