HDFS默认在本地存储文件的位置? [英] Where HDFS stores files locally by default?
问题描述
我正在运行带有单节点集群的默认配置的hadoop,并希望找到HDFS在本地存储文件的位置。
I am running hadoop with default configuration with one-node cluster, and would like to find where HDFS stores files locally.
任何想法?
谢谢。
推荐答案
您需要查看 hdfs-default。用于 dfs.data.dir 设置的
You need to look in your hdfs-default.xml configuration file for the dfs.data.dir setting. The default setting is: ${hadoop.tmp.dir}/dfs/data and note that the ${hadoop.tmp.dir} is actually in core-default.xml described here.
配置选项在此处描述。此设置的描述是:
The configuration options are described here. The description for this setting is:
确定本地
文件系统上的哪个DFS数据节点应该
存储它的位置块。如果这是
逗号分隔的目录列表
,则数据将存储在所有命名的
目录中,通常位于不同的
设备上。不存在
的目录将被忽略。
Determines where on the local filesystem an DFS data node should store its blocks. If this is a comma-delimited list of directories, then data will be stored in all named directories, typically on different devices. Directories that do not exist are ignored.
这篇关于HDFS默认在本地存储文件的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!