Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to change the replication factor of data which is already stored in HDFS?

Answer Posted / Balram Singh

To change the replication factor for data that is already stored in HDFS, you can use the `dfs.replication` property in the Hadoop configuration. However, it's important to note that changing the replication factor for existing files will not take effect until a new namespace edit is created and applied. Here's an example of how to set the replication factor using the command line:

```bash
hadoop dfs -setfqpn /path/to/directory <replication-factor>
```
Replace `<replication-factor>` with the desired number of replicas, and `/path/to/directory` with the path to the directory or file for which you want to change the replication factor.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category