I want to share with you a quick demo of replication. Let’s open the DFS health page first.
So the content will be replicated 3 times. This can be overridden in /opt/hadoop/etc/hadoop/hdfs-site.xml as given below.
Let’s make it as 1, using CLI.
hadoop@gandhari:~$ hadoop dfs -setrep -w 1 /data DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command for it. Replication 1 set: /data Waiting for /data ... done