PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV 24 feature!
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
<hdfsConnection variable>.CopyFrom (Function)
In french: <Variable hdfsConnexion>.CopieDepuis
Copies a file found on a Hadoop server to the local computer.
Example
// Connection
MyConnection is hdfsConnection
MyConnection..namenode = "MyServer"
MyConnection..User = "Admin"
MyConnection.OpenConnection()
// Copy from the server to the local computer
MyConnection.CopyFrom("/tmp/test.data", "c:\temp\test.data")
Syntax
<Result> = <Connection>.opyFrom(<Source file> , <Destination file> [, <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)
Absolute path of file found on the Hadoop server. This path is case sensitive.
<Destination file>: Character string (with quotes)
Path of the local file corresponding to the destination (up to 260 characters). This parameter can correspond to:
  • a file name. This file will be automatically created in the current directory (returned by fCurrentDir).
  • a file name with its full or relative path. A UNC path can be used.
<Progress Bar>: Optional control name
Name of the Progress Bar control used to see the progress of file retrieval.
WEBDEV - Server code This parameter is not available.
Component : wd240big.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment