Supported by libMapRCient for hadoop-2.x
Renames the specified file. For information about the format to use for paths, see Specifying Paths to Files and Directories.
int hdfsRename(hdfsFS fs, const char* oldPath, const char* newPath)
| Parameter | Description |
|---|---|
| fs | The handle of the filesystem where the file is
located. Obtain this handle with one of the
hdfsConnect() APIs. |
| oldPath | The path of the source file. |
| newPath | The path of the destination file. |
Returns 0 on success, -1 on error.
Check errno for error codes and meanings.