Reply
Highlighted
Explorer
Posts: 37
Registered: ‎05-03-2017
Accepted Solution

CM_API PYTHON. Services Dependencies.

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

 

 

Cloudera Employee
Posts: 212
Registered: ‎07-08-2013

Re: CM_API PYTHON. Services Dependencies.

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

Explorer
Posts: 37
Registered: ‎05-03-2017

Re: CM_API PYTHON. Services Dependencies.

that worked!

 

thanks!

Announcements