Offloading a File to a Tier Using the CLI and REST API
Describes how to offload files to a tier using the CLI and the REST API.
About this task
Files, in tiering-enabled volumes, can be offloaded individually using the CLI and
REST API. See Data Offload and Purge for more information. For
information on offloading files using (loopbacknfs or FUSE-based) POSIX or NFS
clients when maprcli
or hadoop
commands are not
available, see Running Tiering Commands when maprcli and hadoop Commands are not Available.
The user offloading the file data must have write permission (mode bit or Access Control Expression (ACE)) on the file to offload data.
You can also offload all data in a tiering-enabled volume to the associated tier. see Offloading a Volume to a Tier for more information.
For more information, seehadoop mfs -offload <file-path>
hadoop mfs
.
For more information, see/opt/mapr/bin/maprcli file offload -name <file>
file offload
.
curl -k -X POST 'https://abc.sj.us:8443/rest/file/offload?name=fileName' --user mapr:mapr
If the manual offload succeeds, the command returns nothing. If the offload fails, the command returns an error code. For more information on the codes, see Retrying Failed Operation.