Created 07-10-2025 07:52 AM
We would like to automate the installation / configuration of the Cloudera Manager instead of using the GUI.
We are using ansible for the automation steps.
We have uploaded the license file with the REST API call in ansible. This works fine.
Now we try to import a cluster template that we took from another setup. We did some modification at that template and start to do the import via ansible.
The import failed with an error that the cluster host can't are not available.
The cluster hosts are available, they can be ping from the cloudera manager host.
The cloudera-scm-agent are installed at cluster host and up and running.
The /var/log/cloudera-scm-server log shows two java exceptions and the following message The following host(s) are not available: test-22.vmlocal,test-23.vmlocal,test-21.vmlocal,test-24.vmlocal.
2025-07-10 15:50:44,353 INFO scm-web-75:com.cloudera.api.ApiExceptionMapper: Exception caught in API invocation. Msg:The following host(s) are not available: test-22.vmlocal,test-23.vmlocal,test-21.vmlocal,test-24.vmlocal.
java.lang.IllegalArgumentException: The following host(s) are not available: test-22.vmlocal,test-23.vmlocal,test-21.vmlocal,test-24.vmlocal.
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:143)
at com.cloudera.api.dao.impl.ClouderaMasterServerDaoImpl.validateAndPrepareContext(ClouderaMasterServerDaoImpl.java:309)
at com.cloudera.api.dao.impl.ClouderaMasterServerDaoImpl.importClusterTemplate(ClouderaMasterServerDaoImpl.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
My question now is
- Do we need to add those cluster host to the cloudera manager first (via the rest api call), before we import the template ?
- how does the cloudera manager check are the hosts available (via the cloudera-scm-agent) ??
Created 07-12-2025 12:47 AM
Hello @biker
Thank you for reaching out to the Cloudera community.
Yes you are right the host should be present already
Refer the following document for the same
Created 07-12-2025 12:47 AM
Hello @biker
Thank you for reaching out to the Cloudera community.
Yes you are right the host should be present already
Refer the following document for the same
Created 07-16-2025 01:36 AM
Hi @upadhyayk04,
thanks for you answer and the link to the documentation you pointed us. But we have read the documentation multiple time but it doesn't help us
We need to understand why we get this error. So we still get the error.
By mistake I pressed the resolve button, even the problem is not solved.
Is there any way to reopen this post ?