ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / Big Data / HDFS system
  • Properties specific to hdfsRights variables
  • WLanguage functions that use the hdfsRights type
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
hdfsRights (Variable type)
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. You can define and change the characteristics of these rights using different WLanguage properties.
Note: 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
Properties

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.
Remarks

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.
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/18/2024

Send a report | Local help