3

My hdfs-site.xml has ONLY the following:

<configuration>
    <property>
        <name>dfs.replication</name>
            <value>1</value>
    </property>
</configuration>

Question. Where would the NameNode and DataNode be installed? I am using Hadoop 3.0.3 version on MSFT Surface laptop with Windows 10.

tk421
  • 5,775
  • 6
  • 23
  • 34
Gautam De
  • 39
  • 4
  • Possible duplicate of [Where HDFS stores files locally by default?](https://stackoverflow.com/questions/2358402/where-hdfs-stores-files-locally-by-default) – unwelcomed_user Mar 21 '19 at 05:48

1 Answers1

1

In hdfs-default.xml dfs.datanode.data.dir default value is file://${hadoop.tmp.dir}/dfs/data and dfs.namenode.name.dir file://${hadoop.tmp.dir}/dfs/name

And in core-default.xml hadoop.tmp.dir value is /tmp/hadoop-${user.name}

Hence datanode located in /tmp/hadoop-${user.name}/dfs/data and namenode will be at /tmp/hadoop-${user.name}/dfs/name location.

unwelcomed_user
  • 340
  • 3
  • 15