默认情况下,HDFS 将文件存储在本地何处? [英] Where HDFS stores files locally by default?

查看:68
本文介绍了默认情况下,HDFS 将文件存储在本地何处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行具有单节点集群的默认配置的 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.xml 配置文件中的 dfs.data.dir> 设置.默认设置为:${hadoop.tmp.dir}/dfs/data 并注意 ${hadoop.tmp.dir} 实际上是在 core-default.xml 中描述的 这里.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆