In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Summary of HDFS's recent study
one。 The overall operation mechanism of hdfs:
Customers put a file into HDFS, in fact, HDFS will cut the file into blocks for storage, and will be stored separately in N Linux systems (the role of storing file blocks is: datanode) (the important thing is that the behavior of slicing is determined by the client) once the file is sliced and stored, HDFS must have a mechanism that needs to record the information of each file and the specific storage machine for each slicing. (the namenode that records the block information) needs to ensure the security of the data. HDFS stores multiple copies of each block in the cluster (the number of copies is determined by the client at the time of storage). Summary: a HDFS system consists of a server running namenode and N servers running datanode.
two。 Knowledge points:
Metadata is managed by namenode: the directory structure of HDFS and the block information of each file (id of blocks, number of copies, location, etc.)
three。 Namenode metadata record location:
Namenode stores real-time complete metadata in memory namenode also stores memory metadata on disk mirroring files at some time fsimagenamenode records (like adding) client operations that make metadata changes in edits log files.
four。 Secondarynamenode responsibility:
Secondarynamenode regularly downloads the fsimage image and the newly generated edits log from namenode, then loads the fsimage image into memory, then sequentially parses the edits file, modifies (integrates) the metadata objects in memory, serializes the memory metadata into a new fsimage, and uploads the fsimage image file to namenode. This process is called that every time checkpointsecondary namenode does checkpoint operation, the first time checkpoint needs to download fsimage, then you don't have to download it later, because you already have it on your own machine. Summary: secondarynamenode will download fsimage and edits to its own machine, serialize it into metadata and pass it to namenode, which can remember a single point of failure. So secondarynamenode had better be configured as well.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.