hdfs 复制因子 修改_如何更改正在运行的HDFS群集的复制因子?

hdfs 复制因子 修改

Now, I have a running HDFS cluster storing lost files. I want to change its default replication factor.

现在,我有一个正在运行的HDFS 群集,用于存储丢失的文件 。 我想更改其默认复制因子。

How to change it? What will happen after it is changed?

怎么改变呢? 更改后会发生什么?

For example, I change from 2 to 3. Will HDFS automatically re-replicate the data chunks?

例如,我从2更改为3。HDFS是否会自动重新复制数据块?

First, the replication factor is client decided.

首先,复制因素是客户决定的。

Second, the replication factor is per-file configuration.

其次,复制因素是每个文件的配置。

Hence, the configuration only changes the client and takes effect for new files.

因此,该配置仅更改客户端,并对新文件生效。

For existing files, you need to manually re-set the replication factor:

对于现有文件,您需要手动重新设置复制因子:

https://www.systutorials.com/qa/1225/how-to-change-number-of-replications-of-certain-files-in-hdfs

https://www.systutorials.com/qa/1225/how-to-change-number-of-replications-of-certain-files-in-hdfs

Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。

翻译自: https://www.systutorials.com/how-to-change-an-running-hdfs-clusters-replication-factor/

hdfs 复制因子 修改

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值