Running the Compactor Using the CLI and REST API

About this task

You can trigger the compactor using the CLI and REST API to purge recalled data on the Data Fabric cluster or to purge stale data on the tier. See Data Compaction for more information about data compaction.

Running the Compactor to Purge Recalled Data on the Data Fabric Cluster

About this task

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 -X POST --user <username> 'https://<host>:8443/rest/volume/compact?name=<volName>&forcerecallexpiry=true' 
For more information, see volume compact.

Running the Compactor to Purge Stale Data on the Tier

About this task

Run the following command to trigger the compactor:
maprcli volume compact -name <volName>
Send a request of type POST.
curl -X POST --user <username> 'https://<host>:8443/rest/volume/compact?name=<volName>'  
When you trigger the compactor, the compactor purges stale data from the tier and also recalled data on the Data Fabric cluster if the expiry time for recalled data has been reached. For more information, see volume compact.