Created 02-07-2019 05:51 AM
Created 02-07-2019 08:05 AM
The below command sets your replication factor to 1 for all new files you will create, with a potential data loss unless you are running HDP 3.x which has a new HDFS algorithm EC erasure coding
$ hdfs dfs -setrep -w 1 -R /
As responded above the changes only affect new files you will create. After changing the replication factor you won't see any hdfs size changes until the trash time interval which was set on 360 minutes configured by the hdfs trash interval has been reached
fs.trash.interval
Once the NameNode metadata has been updated, it is the DataNodes which would actually do the operation. There could be some delay, but space is definitely reclaimed.
HTH
Created 02-07-2019 06:36 AM
@ram sriram
Changing replication will only apply to new files you need to run this Command to change replication factor for files that already exist
hdfs dfs -setrep -w 1 -R /
Created 02-07-2019 07:32 AM
Created 02-07-2019 07:42 AM
Check your snapshot details
hdfs dfs -ls $DIR/.snapshot/
hdfs dfs -setrep -w 2 -R / then restart hdfs services
Created 02-07-2019 08:05 AM
The below command sets your replication factor to 1 for all new files you will create, with a potential data loss unless you are running HDP 3.x which has a new HDFS algorithm EC erasure coding
$ hdfs dfs -setrep -w 1 -R /
As responded above the changes only affect new files you will create. After changing the replication factor you won't see any hdfs size changes until the trash time interval which was set on 360 minutes configured by the hdfs trash interval has been reached
fs.trash.interval
Once the NameNode metadata has been updated, it is the DataNodes which would actually do the operation. There could be some delay, but space is definitely reclaimed.
HTH
Created 02-08-2019 05:35 AM
Hi @Geoffrey Shelton Okot Thank you for your valuable reply.
Can you please send me a document for Ambari installation on ubuntu.
Created 02-08-2019 08:45 AM
If you found this answer addressed your question, please take a moment to log in and click the "accept" link on the answer.
Can you tag me for "Can you please send me a document for Ambari installation on ubuntu thread" so I see the information you already received.