How to add acceleration settings at dataset level

@nehal,

My apologies for the delayed response.

This looks like a bug, because you can set this in the UI on a particular physical dataset, but not via the v3 API we publish. Furthermore, you can set it on the overall source with v3 API.

This is confusing for users. We will have to fix it.

Meanwhile, you can use the older v2 API endpoint to make the change. Here’s how I would update a dataset called hdfs.hr.employees to never refresh and never expire (using cur)l:

curl --request PUT \
  --url http://{your dremio host}:9047/apiv2/dataset/hdfs.hr.employees/acceleration/settings \
  --header 'authorization: _dremio{token goes here}' \
  --header 'content-type: application/json' \
  --data '{
  "method": "FULL",
  "accelerationRefreshPeriod": 3600000,
  "accelerationGracePeriod": 10800000,
  "accelerationNeverExpire": true,
  "accelerationNeverRefresh": true
}'
1 Like