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
Copies a file located on the local machine to a Hadoop server.
Example
// Connection
MyConnection is hdfsConnection
MyConnection..namenode = "MyServer"
MyConnection..User = "Admin"
hdfsOpenConnection(MyConnection)
// Copy from the local computer to the server
hdfsCopyTo(MyConnection, "c:\temp\test.data", "/tmp/test.data")
Syntax
<Result> = hdfsCopyTo(<Connection> , <Source File> , <Destination File> [, <Options> [, <Permission> [, <Progress Bar>]]])
<Result>: Boolean
  • True if the copy 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.
<Source File>: Character string (with quotes)
Path of local file to copy (up to 260 characters). This parameter can correspond to:
  • a file name. This file will be automatically sought in the current directory (returned by fCurrentDir).
  • a file name with its full or relative path. A UNC path can be used.
<Destination File>: Character string (with quotes)
Absolute path of the file copied onto the Hadoop server. This path is case sensitive.
<Options>: Optional constant
Options for copying:
hdfsDefault
(Default value)
If the destination file already exists on the server, it is not averwritten.
hdfsOverwriteIf the destination file already exists on the server, it is replaced by the file copied from the local computer.
<Permission>: Optional hdfsRights variable
Name of the hdfsRights variable defining the rights of the destination file on the server.
By default, all the rights are granted to all the users.
<Progress Bar>: Optional character string (with or without quotes)
Name of the Progress Bar control used to see the progress of file copy.
WEBDEV - Server code This parameter is not available.
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