Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
第一次配置我的hadoop namenode时,我知道我需要运行
bin/hadoop namenode -format
但是在将数据加载到 HDFS 后再次运行此程序,将清除所有内容并重新格式化。有没有一种简单的方法来判断一个名称节点是否已经被格式化?
那么你可以检查这个文件 store1/name/current/VERSION
如果它存在,那么它已经被格式化。
PS:你在生产系统中只格式化一次。最好在安装过程中执行或在紧急恢复时手动执行。