I have installed a standalone mode Hadoop on windows machine locally, with one datanode and the replication factor set as 1. I have already uploaded some data onto the datanode. Let us call this existing datanode as datanode1.
I would like to add additional one/two datanode(s) to the Hadoop, and change the replication factor to two/three and replicate existing data twice or three times.
For example, I would like to add just one additional datanode2, and replicate all the existing data in datanode1. For any newly uploaded data, it will be saved both in datanode1 and datanode2 respectively, as the replication factor is changed to two.
I have tried to change the hdfs-site.xml file to reflect above the changes (add datanode2 and changing replication factor to two) and start the star-all.cmd, but it seems that the existing data in datanode1 is not replicated and hadoop still has only one datanode.
Any idea on how to set it up?