Support Questions

Find answers, ask questions, and share your expertise

Import of cloudera tempalte failed

avatar
Explorer

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) ?? 

1 ACCEPTED SOLUTION

avatar
Master Collaborator

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

 

  1. Set up the hosts for the new cluster by installing Cloudera Manager agents and the JDK on all hosts. For secure clusters, also configure a Kerberos key distribution center (KDC) in Cloudera Manager.

https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/configuring-clusters/topics/cdpdc-creating-ru...

 

View solution in original post

2 REPLIES 2

avatar
Master Collaborator

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

 

  1. Set up the hosts for the new cluster by installing Cloudera Manager agents and the JDK on all hosts. For secure clusters, also configure a Kerberos key distribution center (KDC) in Cloudera Manager.

https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/configuring-clusters/topics/cdpdc-creating-ru...

 

avatar
Explorer

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 ?