|
|
|
|
|
- Properties specific to the description of hdfsStatus variables
hdfsStatus (Type of variable) In french: hdfsInformation
The hdfsStatus type is used to find out the status of an element (file, directory, link) in the Hadoop file system. The characteristics of this status are returned by several WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. // Connection MyConnection is hdfsConnection MyConnection.namenode = "MyServer" MyConnection.User = "Admin" hdfsOpenConnection(MyConnection) // Retrieve the directory content Content is array of hdfsStatus = hdfsList(MyConnection, "/") // Display the directory content FOR EACH Elem OF Content Trace(Elem.Path) END
Remarks Properties specific to the description of hdfsStatus variables The following properties can be used to handle an element status in the Hadoop file system: | | | Property name | Type used | Effect |
---|
BlockSize | Integer | Size of blocks for distributing the element on the different servers. This property is read-only. | DateLastAccessed | DateTime | Date and time of the last access to the element. This property is read-only.This constant corresponds to "LastAccessDate" in previous versions. | DateModified | DateTime | Date and time of the last modification made to the element. This property is read-only.This constant corresponds to "ModificationDate" in previous versions. | Group | Character string | Name of the group that owns the element. This property is read-only. | Link | Character string | Target of link, if the element is a link. This property is read-only. | NumberReplicat | Integer | Number of copies stored for the elements. This property is read-only. | Owner | Character string | Owner of the element. This property is read-only. | Path | Character string | Path of the element in the Hadoop file system This property is read-only. | Rights | hdfsRights variable | Access rights to the element. This property is read-only. | Size | Integer | Size of the element in bytes. This property is read-only. | Type | Integer | Type of element:- hdfsFile if the element is a file.
- hdfsDirectory if the element is a directory.
- hdfsLink if the element is a link to a file.
This property is read-only. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|