forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
3.3 KiB
3.3 KiB
Can I Delete or Modify the Data Storage Directory in DataNode?
Question
- In DataNode, the storage directory of data blocks is specified by dfs.datanode.data.dir. Can I modify dfs.datanode.data.dir to modify the data storage directory?
- Can I modify files under the data storage directory?
Answer
During the system installation, you need to configure the dfs.datanode.data.dir parameter to specify one or more root directories.
- During the system installation, you need to configure the dfs.datanode.data.dir parameter to specify one or more root directories.
- Exercise caution when modifying dfs.datanode.data.dir. You can configure this parameter to add a new data root directory.
- Do not modify or delete data blocks in the storage directory. Otherwise, the data blocks will lose.
Parent topic: FAQ