Copies a file found on a Hadoop server to the local computer.
MyConnection is hdfsConnection
MyConnection.namenode = "MyServer"
MyConnection.User = "Admin"
// Copy from the server to the local computer
hdfsCopyFrom(MyConnection, "/tmp/test.data", "c:\temp\test.data")
<Result> = hdfsCopyFrom(<Connection> , <Source file> , <Destination file> [, <Progress Bar>])
- True if the copy was performed,
- False if a problem occurs. ErrorInfo is used to identify the error.
<Connection>: hdfsConnection variable
Name of the hdfsConnection variable that corresponds to connection to the Hadoop server.
<Source file>: Character string
Absolute path of file found on the Hadoop server. This path is case sensitive.
<Destination file>: Character string
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.
Business / UI classification: Business Logic