vverr
V2EX  ›  问与答

ambari 修改 hdfs 副本数如何自动删除多余副本

  •  
  •   vverr · Aug 16, 2022 · 1907 views
    This topic created in 1542 days ago, the information mentioned may be changed or developed.
    ambari 部署集群,hdfs 副本数从 3 改到 2 ,hdfs 之前的 3 副本如何自动删除多余的 1 副本。
    3 replies  •  2022-08-17 16:30:29 +08:00
    cloudyi
    cloudyi
    Aug 16, 2022❤️1
    1
    配置文件更新后,重启 hdfs 就自动删除了。
    vverr
    vverr
    OP
    Aug 16, 2022
    2
    @cloudyi #1 好的,我试下,感谢。
    vverr
    vverr
    OP
    Aug 17, 2022
    3
    @cloudyi #1 重启了几次,事实证明没有自动删除,需要手动执行 hdfs dfs -setrep -w 副本数 目录
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1549 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 23:36 · PVG 07:36 · LAX 15:36 · JFK 18:36
    ♥ Do have faith in what you're doing.