Support Questions

Find answers, ask questions, and share your expertise

CM_API PYTHON. Services Dependencies.

avatar
Explorer

There is any way to specify or skip the services dependencies?

 

  • Name of the ZooKeeper service that this YARN service instance depends on
  • Name of the HDFS service that this YARN service instance depends on

 

 

When I am starting a cluster JUST using API, this is one error that I've found on YARN Service, and I can't format the NameNode just because of this. 

 

Any ideas?

 

Thanks

 

 

1 ACCEPTED SOLUTION

avatar
Master Collaborator

Hi awsbiddata,

 

There are some examples that you might find interesting, they show you how to use the CM API here;

a. to auto configure [0] OR

b. manually assign [1a,b] 

 

Regards,

Michalis

 

[0] 

# we will auto-assign roles; you can manually assign roles using the
# /clusters/{clusterName}/services/{serviceName}/role endpoint or by using
# ApiService.createRole()
cluster.auto_assign_roles()
cluster.auto_configure()

[1a] https://github.com/cloudera/cm_api/blob/master/python/examples/auto-deploy/deploycloudera.py#L267-L2...

[1b] https://github.com/gdgt/cmapi

View solution in original post

2 REPLIES 2

avatar
Master Collaborator

Hi awsbiddata,

 

There are some examples that you might find interesting, they show you how to use the CM API here;

a. to auto configure [0] OR

b. manually assign [1a,b] 

 

Regards,

Michalis

 

[0] 

# we will auto-assign roles; you can manually assign roles using the
# /clusters/{clusterName}/services/{serviceName}/role endpoint or by using
# ApiService.createRole()
cluster.auto_assign_roles()
cluster.auto_configure()

[1a] https://github.com/cloudera/cm_api/blob/master/python/examples/auto-deploy/deploycloudera.py#L267-L2...

[1b] https://github.com/gdgt/cmapi

avatar
Explorer

that worked!

 

thanks!