Description:
Download a local file to a specific position.
Syntax:
hdfs_download(
hd, local,remote)
Note:
The external library function (See External Library Guide) downloads a remote file or folder remote to a local file/folder local.
Parameter:
hd |
An hd connection. |
local |
A local file or folder. |
remote |
A remote file or folder. |
localPath |
A local file name. |
Option:
@d |
Download all files in the specified folder to the local machine, and require both the source and directories are folders. |
Return value:
Boolean
Example:
|
|
|
|
|
Connect to HDFS file system. |
|
|
Download emp.txt in /emp folder to the local folder /test. |
|
|
Download emp.txt in /emp folder to the local folder /test, and rename the file emp1.txt. |
|
|
Download all files under folder /h1 to the local folder /s1. |
|
|
|