Where HDFS stores files locally by default?

前端 未结 5 1694
一整个雨季
一整个雨季 2020-12-05 13:09

I am running hadoop with default configuration with one-node cluster, and would like to find where HDFS stores files locally.

Any ideas?

Thanks.

5条回答
  •  既然无缘
    2020-12-05 13:34

    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:

    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.

提交回复
热议问题