file offload

Initiates offload of a file using a MAST Gateway.

Permissions Required

The user running the command must have (mode bit or ACE) permissions to write to the file.

Syntax

CLI
maprcli file offload 
       -name <file_name>
REST
Request Type POST
Request URL
http[s]://<host:port>/rest/file/offload?<parameters>

Parameters

Parameter Description
name The name (including the path) of the file to offload.

Example

Offload file named test1 in volume named vol1:

CLI
/opt/mapr/bin/maprcli file offload -name /vol1/test1
{
    "timestamp":1520277246831,
    "timeofday":"2018-03-05 07:14:06.831 GMT+0000",
    "status":"OK",
    "total":1,
    "data":[
        {
            "status":12,
            "message":"File transfer request queued.",
            "gateway":"10.10.88.200:8660",
            "jobid":"0x37d7c7738cd0991f.0xe35d5f0e5b24cda.0x4"
        }
    ]
}
REST
curl -k -X POST 'https://abc.sj.us:8443/rest/file/offload?name=/vol1/test1' --user mapr:mapr
{"timestamp":1520277246831,"timeofday":"2018-03-05 07:14:06.831 GMT+0000","status":"OK","total":1,"data":[{"status":12,"message":"File transfer request queued.","gateway":"10.10.88.200:8660","jobid":"0x37d7c7738cd0991f.0xe35d5f0e5b24cda.0x4"}]}