AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Administrar bases de datos / Big Data / Sistema HDFS
  • Properties specific to hdfsRights variables
  • WLanguage functions that use the hdfsRights type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
hdfsRights (Type of variable)
In french: hdfsDroit
The hdfsRights type is used to define the advanced characteristics regarding the access rights to an element (file, link, directory) of the Hadoop file system. The characteristics of these rights can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// 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 rights
FOR EACH elem OF Content
Trace("------------------------------")
Trace(elem.Rights.UserWriting)
Trace(elem.Rights.GroupWriting)
Trace(elem.Rights.OtherWriting)
END
Remarks

Properties specific to hdfsRights variables

The following properties can be used to handle the rights:
Property nameType usedEffect
GroupExecutionBoolean
  • True if the members of the owner group have the rights to run a file or the files found in a directory.
  • False otherwise.
GroupReadingBoolean
  • True if the members of the owner group have the rights to read.
  • False otherwise.
GroupWritingBoolean
  • True if the members of the owner group have the rights to write.
  • False otherwise.
OtherExecutionBoolean
  • True if a user (other than the owner and the members of his group) has the rights to run a file or the files found in a directory.
  • False otherwise.
OtherReadingBoolean
  • True if a user (other than the owner and the members of his group) has the rights to read.
  • False otherwise.
OtherWritingBoolean
  • True if a user (other than the owner and the members of his group) has the rights to write.
  • False otherwise.
UserExecutionBoolean
  • True if the owner has the rights to run a file or the files found in a directory.
  • False otherwise.
UserReadingBoolean
  • True if the owner has the rights to read.
  • False otherwise.
UserWritingBoolean
  • True if the owner has the rights to write.
  • False otherwise.

WLanguage functions that use the hdfsRights type

hdfsCopyToCopies a file located on the local machine to a Hadoop server.
hdfsCreateDirectoryCreates a directory on a Hadoop server.
Versión mínima requerida
  • Versión 21
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/01/2023

Señalar un error o enviar una sugerencia | Ayuda local