My 1st question, I'll try not to screw up too bad :)
I am installing Hadoop 2.9.0 on a 4 nodes cluster, for learning purpose. I have started with namenode installation/configuration following the official Apache Hadoop 2.9.0 documentation and some google pages.
I edited my hdfs-site.xml located under $HADOOP_HOME/etc/hadoop directory like so :
<property>
<name>dfs.namenode.name.dir</name>
<value>file:///apps/hdfs/namenode/data</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>file:///apps/hdfs/datanode/data</value>
</property>
<property>
<name>dfs.namenode.checkpoint.dir</name>
<value>file:///apps/hdfs/namesecondary/data</value>
</property>
When I run the "hadoop namenode -format" it format the default $hadoop.tmp.dir under /tmp/hadoop-hadoop/...
Found some pages that said to set the HADOOP_CONF_DIR to where the XML configurations files are (ie : $HADOOP_HOME/etc/hadoop) but also some that said the opposite, to not set it.
In my case, it did fix my problem but not sure if it's the right modification?
If anyone could help me out to understand this, it would be great :)
Thank alot!