Hadoop has two sets of APIs: - FileSystem.java - this is the older API and more widely used. This defines both the application API and the API that the concrete file systems must implement (such as DistributedFileSystem, LocalFileSystem, ChecksumFileSystem etc.) - FileContext.java and AbstractFileSystem.java - these are new APIs. The goal was to divide the Hadoop API into two - application API in FileContext.java and file system implementation interface AbstractFileSystem.java. More details - https://issues.apache.org/jira/browse/HADOOP-4952.
Hdfs.java is the newer implementation of AbstractFileSystem.java. DistributedFileSystem.java implements the older API FileSystem.java. On Mon, Jan 13, 2014 at 3:31 AM, 梁李印 <[email protected]> wrote: > What is the difference between Hdfs.java and DistributedFileSystem.java in > Hadoop2? > > > > Best Regards, > > Liyin Liang > > > > Tel: 78233 > > Email: [email protected] > > > -- http://hortonworks.com/download/ -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.
