In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Namenode is mainly used to manage the metadata information of the namespace (actually directories and files) of the entire distributed file system. At the same time, in order to ensure the reliability of the data, the operation log is added, which is saved to the (persistent) local file system.
To use HDFS for the first time, you must first-format
There are two important paths on the namenode node, which are used to store metadata and operation log respectively. These two paths come from configuration files, and the corresponding attributes are dfs.name.dir and dfs.name.edits.dir. The default path is / tmp/hadoop/dfs/name. When format, clear the files in the directory first, and then create:
(whether the default path in different versions is the same or not depends on the specific version. I don't know which version I am referring to in this excerpt:
Under dfs.name.dir:
{dfs.name.dir} / current/fsimage
{dfs.name.dir} / current/fstime
{dfs.name.dir} / current/VERSION
{dfs.name.dir} / image/fsimage
Under dfs.name.edits.dir:
{dfs.name.edits.dir} / current/edits
{dfs.name.edits.dir} / current/fstime
{dfs.name.edits.dir} / current/VERSION
{dfs.name.edits.dir} / image/fsimage
Fsimage: stores metadata information for namespaces (actually directories and files)
Edits: used to store log information about namespace operations and achieve recovery of NameNode nodes
Fstime: when was the last check point used to store metadata
VERSION: used to store NameNode version information, namespace ID (version number)
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.