3
votes

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.

1

1 Answers

1
votes

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.