use cm_api first_run as the last step to start cdh cluster

Registered by Ken Chen

Cloudera CM_API library has a function ApiCluster.first_run. This function will help CM to finish steps to prepare and start properly configured services. E.g., for Yarn service, first_run will create Yarn job history directory, then create Yarn NodeManager remote application log directory, and start Yarn service. Currently in CDH plugin those steps is hard-coded in deploy.py step-by-step instead of using first_run. We think it is necessary to change to use first_run, for first_run leaves the work to CM, avoids possible future changes in CM, and protects code consistency in sahara CDH plugin.

Blueprint information

Status:
Complete
Approver:
Sergey Lukjanov
Priority:
Undefined
Drafter:
Ken Chen
Direction:
Needs approval
Assignee:
Ken Chen
Definition:
New
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Ken Chen
Completed by
Ken Chen

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/first-run-api-usage,n,z

Addressed by: https://review.openstack.org/134456
    CDH first_run to start services

Addressed by: https://review.openstack.org/134471
    Use first_run to Start Services

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.