what is the meaning of namespace and metadata which were used in hdfs(namenode)

前端 未结 3 1245
耶瑟儿~
耶瑟儿~ 2021-01-02 14:31

As a beginner to hadoop I am confused with these words namespace and metadata. Is there any relation between these two ?

3条回答
  •  青春惊慌失措
    2021-01-02 14:59

    to make things easier/clearer and since HDFS is another file system, we can give an example of windows file system :
    suppose that you have a file : test.txt in in this path C:\User\Test\New Folder\Test.txt.
    so in the case of windows this path is the namespace .
    now if go to the properties of this file, you will find some information (creation date, last modification, owner...) those information are the meta data, it called like that because it represent a superior level of abstraction ( the data is the content of the file, and the meta data is the description of the file it self).
    identically we can make use the same example for HDFS, therefore, the namespace is the path to access a block of data, and the meta-data are information about that block it self

提交回复
热议问题