Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

CM_API PYTHON. Services Dependencies.

Solved Go to solution
Highlighted

CM_API PYTHON. Services Dependencies.

Contributor

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

Accepted Solutions
Highlighted

Re: CM_API PYTHON. Services Dependencies.

Super 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
Highlighted

Re: CM_API PYTHON. Services Dependencies.

Super 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

Highlighted

Re: CM_API PYTHON. Services Dependencies.

Contributor

that worked!

 

thanks!

Don't have an account?
Coming from Hortonworks? Activate your account here