Supported by libMapRClient for hadoop-2.x
Changes permissions on a file or directory in the manner of the chmod
command.
int hdfsChmod(hdfsFS fs, const char* path, short mode)
| Parameter | Description |
|---|---|
| fs | The handle to the filesystem. Obtain this handle
with one of the hdfsConnect() APIs. |
| path | The path to the file or directory. |
| mode | The bitmask for the new permissions. |
Returns 0 on success, -1 on error.
Check errno for error codes and meanings.
errno is set to EINVAL if the input arguments are invalid.
errno is set to EPERM if the process does not have enough privileges to perform the operation.