PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Renames a file or a directory found on a Hadoop server.
Example
// Connection
MyConnection is hdfsConnection
MyConnection..namenode = "MyServer"
MyConnection..User = "Admin"
hdfsOpenConnection(MyConnection)
// Renames the file on the server
hdfsRename(MyConnection, "/tmp/former.txt", "/tmp/new.txt")
Syntax
<Result> = hdfsRename(<Connection> , <Former Name> , <New Name> [, <Options>])
<Result>: Boolean
  • True if the rename operation was performed,
  • False if a problem occurred. ErrorInfo is used to identify the error.
<Connection>: hdfsConnection variable
Name of hdfsConnection variable corresponding to the connection to the Hadoop server.
<Former Name>: Character string (with quotes)
Absolute path of the file or directory to rename on the Hadoop server. This path is case sensitive.
<New Name>: Character string (with quotes)
New absolute path of the file or directory on the Hadoop server. This path is case sensitive.
<Options>: Optional Integer constant
Options for renaming:
hdfsDefault
(Default value)
If the destination file already exists, the renaming is not performed.
hdfsOverwriteIf the destination file already exists, it is replaced by the renamed file.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230big.dll
Linux wd230big.so
Minimum required version
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment