Recalling a File to file system Using the CLI and REST API
About this task
You can recall individual files from a storage tier. When you recall a file, the MAST Gateway fetches a copy of the data to the cluster. Based on the expiration time setting on the volume, recalled data is automatically:
- Offloaded again based on the storage policy (rules) if there are changes to the recalled data.
- Purged when the compactor runs if there are no changes to the recalled data.
See Data Reads, Writes, and Recalls for more information.
NOTE
You can recall all data from the tier to the volume. See Recalling a Volume to file system
for more information.Recalling a File Manually Using the CLI
Procedure
Run one of the following commands to recall a file:
-
For more information, seehadoop mfs -recall <pathToFile>
hadoop mfs
. -
For more information, seemaprcli file recall -name <pathToFile>
file recall
.
NOTE
For information on recalling 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.Recalling a File Using the REST API
Procedure
Send a request of type POST to the URL. For example, send a
request similar to the following:
curl -k -X POST 'https://abc.sj.us/rest/file/recall?name=fileName' --user mapr:mapr