I know both these properties are related to namenode. But what is the actual difference between them?
Include fs.defaultFS/fs.default.name in core-site.xml to allow dfs commands without providing full site name in the command. Running hdfs dfs -ls / instead of hdfs dfs -ls hdfs://hdfs/ This is used to specify the default file system and defaults to your local file system that's why it needs be set to a HDFS address.
The fs. defaultFS makes HDFS a file abstraction over a cluster, so that its root is not the same as the local system's. You need to change the value in order to create the distributed file system.
In hadoop, the fs.default.name property is used to specify the namenode machines hostname and port number. This property needs to be set in hadoop-site. xml file.
The property in Hadoop that specifies the default file system is called fs.
Property fs.default.name
has been deprecated and replaced by
fs.defaultFS
.
Both are same only. fs.default.name is deprecated property of fs.defaultFS.
You can find more deprecated properties and new property here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With