HDFS默认在本地存储文件的位置? [英] Where HDFS stores files locally by default?

查看:1126
本文介绍了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。用于 dfs.data.dir 设置的配置文件。默认设置是: $ {hadoop.tmp.dir} / dfs / data ,并注意$ {hadoop.tmp.dir}实际上是在core-default.xml中描述的 here

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天全站免登陆