Where HDFS stores files locally by default?

前端 未结 5 1699
一整个雨季
一整个雨季 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:53

    Seems like for the current version(2.7.1) the dir is

    /tmp/hadoop-${user.name}/dfs/data
    

    Based on dfs.datanode.data.dir, hadoop.tmp.dir setting from: http://hadoop.apache.org/docs/r2.7.1/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml http://hadoop.apache.org/docs/r2.7.1/hadoop-project-dist/hadoop-common/core-default.xml

提交回复
热议问题