Skip to content

Instantly share code, notes, and snippets.

@JoeyAndres
Created October 30, 2017 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoeyAndres/15ee01ad87ae6637623e9b0af5bf18eb to your computer and use it in GitHub Desktop.
Save JoeyAndres/15ee01ad87ae6637623e9b0af5bf18eb to your computer and use it in GitHub Desktop.
hdfs-site.xml for cluster with 2 nodes.
<configuration>
<property>
<name>dfs.replication</name>
<value>2</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>/opt/hadoop/namenode</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>/opt/hadoop/datanode</value>
</property>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment