table region pack
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>
mapr
user is not treated as a superuser.
MapR-DB does not allow the mapr
user to run this command unless that user
is given the relevant permission or permissions with access-control expressions.Parameters
Parameter | Description |
---|---|
path |
Specifies the path to the table.
|
fid | Specifies 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. |
nthreads | Specifies the number of threads allocated to process the packing of table regions. Default:16 |
Example
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