HDFS Plugin is used to convert HDFS protocol-based access requests to NFS protocol-based access requests.
shows the position of HDFS Plugin in the Hadoop software architecture after HDFS Plugin is interconnected with OceanStor 9000.
As shown in below picture , by inheriting the FileSystem-class codes and the AbstractFileSystem-class codes provided by the open-source HDFS, HDFS Plugin provides file access interfaces, as shown in below table .
For details on the the FileSystem-class codes and the AbstractFileSystem-class codes provided by the open-source HDFS, visit http://hadoop.apache.org/.
Class | Function Name | Description |
|---|---|---|
FileSystem | initialize | Initializes HDFS Plugin. |
getFileBlockLocations | Obtains file offset information. | |
append | Appends data to a file. | |
create | Creates a file. | |
delete | Deletes a file or folder. | |
getFileStatus | Obtains file information. | |
listStatus | Lists file information. | |
open | Open a file. | |
rename | Renames a file or folder. | |
mkdirs | Creates a folder. | |
setOwner | Sets an owner or owning group for a file or folder. | |
setPermission | Sets permission for a file or folder. | |
AbstractFileSystem | createSymlink | Creates a soft link. |
getFileLinkStatus | Obtains the file information to which a specific soft link corresponds. |

