Hdfs-site.xml configuration file in hadoop


4 Answer(s)


1.dfs.data.dir : Contains a list of directories where DataNodes stores the blocks.The Hadoop Data is stored only in these directories.

2.fs.checkpoint.dir : Contains a list of directories where Secondary Name Nodes stores the checkpoints.

 

 


Hi Ram,

Thanks for your answer.

@Sonu, if you still have doubts, please let me know.

 

 


Hi Ram/Abhijit,

So if we have to store data in any HDFS location, then do we also need to mention these location in "dfs.data.dir" property ?

Thanks

 


Hi Sonu,

The dfs.data.dir property determines where on the local filesystem an DFS data node should store its blocks. If this is a comma-delimited list of directories, then data will be stored in all named directories, typically on different devices. Directories that do not exist are ignored.

Hope this helps.

Thanks