增量刷新cube

完整脚本

#!/bin/bash

cubeName=daily_monthly_alive

today=`date +%Y-%m-%d`

tdTs=`date -d "$today 08:00:00" +%s`

endTime=$(($tdTs*1000))

curl --user ADMIN:KYLIN -X PUT -H 'Content-Type: application/json' -d '{"endTime":'$endTime', "buildType":"BUILD"}' http://master:7070/kylin/api/cubes/$cubeName/rebuild


官网给出的批量更新是

http://kylin.apache.org/docs21/howto/howto_use_restapi.html


你可能感兴趣的:(增量刷新cube)