Reply
Contributor
Posts: 34
Registered: ‎03-07-2017

Maintenance Mode notifications

Is there any method of receiving notification when Maintenance Mode is Enter/Exit. The API provides methods to enable/disable but not get current state.

Posts: 1,047
Topics: 1
Kudos: 263
Solutions: 131
Registered: ‎04-22-2014

Re: Maintenance Mode notifications

@RobertM,

 

No such feature at this time.

Are you suggesting that the entry/exit would issue an alert via the Alert Publisher?

I'm happy to log a Jira to request a feature, but would like to make sure I capture what you envision.

 

Ben

Contributor
Posts: 34
Registered: ‎03-07-2017

Re: Maintenance Mode notifications

[ Edited ]

Yes, that would be great. Possibly configure blackout period in hours, days to allow for maintenance and then automatically reenable itself. It should also capture user and display history of maint intervals.

Posts: 1,047
Topics: 1
Kudos: 263
Solutions: 131
Registered: ‎04-22-2014

Re: Maintenance Mode notifications

@RobertM,

 

I added you to an existing Jira requesting a timer to have maintenance mode expire.

The Jira also requests a history for maintenance mode.

 

For now, you can use the Cloudera Manager Audits tab to view mainatenance mode enter/exit.

Unfortunately, you cannot filter to only see maintenance mode sinc "operationtext" is not a filterable column.

You can download a CSV on that Audits page, though, and then sort/search on the operationtext column.

 

Thanks for your input!

Explorer
Posts: 20
Registered: ‎10-04-2017

Re: Maintenance Mode notifications

Hi,

i could see using API we can keep cluster to MaintenanceMode using below API's

 

curl -u 'admin:admin' -X post 'http://xxx.xxx.xxx.com:7180/api/v14/clusters/CDH_DEV/commands/enterMaintenanceMode'
curl -u 'admin:admin' -X post 'http://xxx.xxx.xxx.com:7180/api/v14/clusters/CDH_DEV/commands/exitMaintenanceMode'

 

Can we keep Cloudera Management Service to  MaintenanceMode using APi's? 

 

please advice , Thanks!

Explorer
Posts: 20
Registered: ‎10-04-2017

Re: Maintenance Mode notifications

Thanks for the update .

Explorer
Posts: 20
Registered: ‎10-04-2017

Re: Maintenance Mode notifications

Hi, is there a way to hide or use encrypted passwords using curl command, basically i dont want to expose passwords in curl command to use api..


curl -u 'admin:admin' http://cm_host:7180/api/v1/clusters/dev01/services/hdfs2
Highlighted
Posts: 1,047
Topics: 1
Kudos: 263
Solutions: 131
Registered: ‎04-22-2014

Re: Maintenance Mode notifications

@Venkki,

 

This is more of a curl/command line question.

 

You might do something like this:

 

# echo -n "password" > ~/cm_password

# curl -u admin:`cat ~/cm_password` -X GET http://cm_host:7180/api/version

 

There are other options like making it an environment variable possibly.

The password needs to be plain text when passed to Cloudera Manager.  How you manage it before then is up to you.

 

Ben

Announcements

Our community is getting a little larger. And a lot better.


Learn More about the Cloudera and Hortonworks community merger planned for late July and early August.