Manually triggers the packing of regions. MapR-DB automatically packs regions; however, you can use this command to reclaim space that is consumed by expired rows or to avoid read amplification. 

Syntax

CLI

maprcli table region pack
-path table path
-fid fid|all
[ -nthreads nthreads. default: 16 ]

REST
http[s]://<host>:<port>/rest/table/region/pack?path=<path>&fid=<fid>

Parameters

ParameterDescription
path

Specifies the path to the table.

  • For a path on the local cluster, start the path at the volume mount point. For example, if you want to pack a table named test under volume1 which has a mount point at /volume1, specify the following path: /volume1/test
  • For a path on another cluster, you must also specify the cluster name in the path. For example, if you want to pack a table named customer under volume1 in the sanfrancisco cluster, specify the following path: /mapr/sanfrancisco/volume1/customer
fidSpecifies that you want to pack all table regions or a single table region that you identify with a FID. The output of maprcli table region list lists the FIDs for the table.
nthreadsSpecifies the number of threads allocated to process the packing of table regions. Default:16

Examples

Packs the specified region:

CLI

maprcli table region pack -path /user/test5 -fid 2086.32.131296

REST
https://myhost:8443/rest/table/region/pack?path=%2Fuser%2Ftest5&fid=2086.32.131296