Running the Compactor Using the CLI and REST API
You can trigger the compactor using the CLI and REST API to purge recalled data on the MapR cluster or to purge stale data on the tier. See Data Compaction for more information.
Running the Compactor to Purge Recalled Data on the MapR Cluster
Run the following command to trigger the compactor and purge data whether or
not the expiry time for recalled data has been reached:
maprcli volume compact -name <volName> -forcerecallexpiry true
Send a request of type POST. For example:
curl -k -X POST 'https://<host>:8443/rest/volume/compact?name=<volName>&forcerecallexpiry=true' --user mapr:mapr
volume compact
.Running the Compactor to Purge Stale Data on the Tier
Run the following command to trigger the compactor:
maprcli volume compact -name <volName>
Send a request of type POST.
curl -k -X POST 'https://<host>:8443/rest/volume/compact?name=<volName>' --user mapr:mapr
volume compact
.