Description:
Upload a local file to a specific position.
Syntax:
hdfs_upload(
hd, local, remote)
Note:
The external library function (See External Library Guide) uploads a local file or folder local to a remote file/folder remote.
Parameter:
hd |
An hd connection |
local |
A local file or folder |
remote |
A remote file or folder |
Option:
@d |
Upload all files in the specified folder to the specified path, and require both the source and directories are folders |
Return value:
Boolean
Example:
|
|
|
|
|
Connect to HDFS file system. |
|
|
Upload local file emp.txt to the path /user. |
|
|
Upload local file stu.txt to the path /user, and rename it stu1.txt. |
|
|
Upload local file /h1 to path /s1. |
|
|
Upload all files in the local folder /h1 to path /s1. |
|
|
|