Skip to main content
ryu
Gold ⭐️
Dec 16, 2021 12:47 AM UTC
Solved

What is the difference between volumes and folders?

Hi experts,

Can someone please explain the difference between volumes and folders in hadoop?

 

Thanks,

willx
willxAnswer
Gold ⭐️⭐️⭐️
Dec 16, 2021 1:26 AM UTC

Hi @ryu 

Volume:

As described in HDFS architecture, the NameNode stores metadata while the DataNodes store the actual data content. Each DataNode is a computer which usually consists of multiple disks (in HDFS’ terminology, volumes). A file in HDFS contains one or more blocks. A block has one or multiple copies (called Replicas), based on the configured replication factor. A replica is stored on a volume of a DataNode, and different replicas of the same block are stored on different DataNodes. 
 
Directory(usually don't say it folders):
like other file system, hdfs directory is hierarchical file structure
 
Regards,
Will

2 replies

willx
Gold ⭐️⭐️⭐️
willxAnswer
Gold ⭐️⭐️⭐️
Dec 16, 2021 1:26 AM UTC

Hi @ryu 

Volume:

As described in HDFS architecture, the NameNode stores metadata while the DataNodes store the actual data content. Each DataNode is a computer which usually consists of multiple disks (in HDFS’ terminology, volumes). A file in HDFS contains one or more blocks. A block has one or multiple copies (called Replicas), based on the configured replication factor. A replica is stored on a volume of a DataNode, and different replicas of the same block are stored on different DataNodes. 
 
Directory(usually don't say it folders):
like other file system, hdfs directory is hierarchical file structure
 
Regards,
Will
Translate
ryu
ryuAuthor
Gold ⭐️
Dec 16, 2021 8:40 PM UTC

Hi @willx ,
Is there a way to see if the hadoop path is a volume or a directory?

Translate