Created 01-04-2019 11:51 AM
In which location NameNode stores its metadata and why?
Created 01-04-2019 11:57 AM
Following Article explains about NameNode metadata and about its directories in detail:
https://hortonworks.com/blog/hdfs-metadata-directories-explained/
Created 01-04-2019 12:09 PM
NameNode service stores its metadata on the configured "dfs.namenode.name.dir" tag available on hdfs-site.xml.
This folder is used for storing the metadata in the form of FSI IMAGE and also used for checkpointing. For more details go through the above link posted by Jay.
Created 01-05-2019 07:23 AM
RAM.Because metadata information will be needing in every 3 seconds after each Heartbeat. So fast processing will require to process the metadata information. To fasten this kinetic momentum of metadata, Name Node used to stores it into RAM.
How we can change Replication factor when Data is already stored in HDFS
hdfs-site.xml is used to configure HDFS . Changing the dfs.replication property in hdfs-site.xml will change the default replication for all files placed in HDFS.
or using hadoop fs shell "hadoop fs –setrep –w 3