Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between fs.defaultFS and fs.default.name

I know both these properties are related to namenode. But what is the actual difference between them?

like image 539
pramesh Avatar asked May 27 '15 11:05

pramesh


People also ask

What is the meaning of following property fs default name?

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.

What is fs defaultFS in Hadoop?

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 which configuration file do we set the parameter fs default name?

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.

What is the property used to set the default file system for Hadoop in core site xml is?

The property in Hadoop that specifies the default file system is called fs.


2 Answers

Property fs.default.name has been deprecated and replaced by fs.defaultFS.

like image 114
marbu Avatar answered Sep 27 '22 21:09

marbu


Both are same only. fs.default.name is deprecated property of fs.defaultFS.

You can find more deprecated properties and new property here

like image 40
Kumar Avatar answered Sep 27 '22 21:09

Kumar