本文共 721 字,大约阅读时间需要 2 分钟。
hdfs 复制因子 修改
Now, I have a running HDFS storing lost . I want to change its 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:
对于现有文件,您需要手动重新设置复制因子:
翻译自:
hdfs 复制因子 修改
转载地址:http://vplwd.baihongyu.com/