Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Manage rolling restart with API

avatar
New Contributor

 

I need to perform rolling restart on some services via API, but I'm getting this error

Command:

curl -X POST -u "admin:password" -i https://xxx.xxx.xxxx.xxxxx.com:xxx/api/v33/clusters/bigdataclu/services/s entry/commands/rollingRestart --insecure -H "Content-Type: application/json" --data '{
  "slaveBatchSize" : 1,
  "sleepSeconds" :0 ,
  "slaveFailCountThreshold" : 0,
  "staleConfigsOnly" : false,
  "unUpgradedOnly" : false
}'

Error:
 
error_sentry_api.jpg
can you help me?
1 REPLY 1

avatar
Expert Contributor

@Cristiano 

 

Rolling restart is valid only for below services:

  • Flume
  • HBase
  • HDFS
  • Kafka
  • Key Trustee KMS
  • Key Trustee Server
  • MapReduce
  • Oozie
  • YARN
  • ZooKeeper

Since rolling restart is not available for Sentry, you are getting an error mentioning not a valid command.