<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Deploy Cloudera Manager with Rest Api template failed in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Deploy-Cloudera-Manager-with-Rest-Api-template-failed/m-p/412145#M253272</link>
    <description>&lt;P&gt;Hi Abdulpasithali,&lt;/P&gt;&lt;P&gt;thank you for looking at my post.&lt;/P&gt;&lt;P&gt;The template you point me is totally different to the template we are using.&lt;BR /&gt;I try to deploy the template and got empty brackets returned.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X POST -H "Content-Type: application/json" -d @/tmp/cloudera_base_new.json http://admin:admin@9.152.187.116:7180/api/v54/cm/importClusterTemplate?addRepositories=true
{ }&lt;/LI-CODE&gt;&lt;P&gt;You can find the template we using is to deploy a cloudera node here&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.9/configuring-clusters/topics/cdpdc-creating-runtime-cluster-cm-template.html" target="_self"&gt;Creating a Runtime Cluster Using a Cloudera Manager Template&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We export the configuration from an existing Cloudera Cluster, changed some values at the json file and try to deploy it on a new cluster.&lt;BR /&gt;But this import failed.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X POST -H "Content-Type: application/json" -d @/tmp/cloudera_base.json http://admin:admin@my_cloudera_ip:7180/api/v54/cm/importClusterTemplate?addReposiies=true
{
"message" : "The following host(s) are not available: hdfs-44.vmlocal,hdfs-42.vmlocal,hdfs-43.vmlocal,hdfs-41.vmlocal."
}&lt;/LI-CODE&gt;&lt;P&gt;Looking at the logfile at the cloudera node I see two java exceptions&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2025-08-21 10:20:19,003 INFO scm-web-81:com.cloudera.server.web.cmf.AuthenticationSuccessEventListener: Authentication success for user: 'admin' from 9.152.187.253
2025-08-21 10:20:19,008 INFO scm-web-81:com.cloudera.enterprise.JavaMelodyFacade: Entering HTTP Operation: Method:POST, Path:/v54/cm/importClusterTemplate
2025-08-21 10:20:19,054 INFO scm-web-81:com.cloudera.enterprise.AbstractWrappedEntityManager: Rolling back transaction that wasn't marked for rollback-only.
java.lang.Exception: Non-thrown exception for stack trace.
at com.cloudera.enterprise.AbstractWrappedEntityManager.close(AbstractWrappedEntityManager.java:163)
at com.cloudera.cmf.persist.CmfEntityManager.close(CmfEntityManager.java:408)
at com.cloudera.server.web.cmf.AuthFilterEntityManager.close(AuthFilterEntityManager.java:202)
at com.cloudera.api.dao.impl.ManagerDaoBase.runInNewTransaction(ManagerDaoBase.java:270)
at com.cloudera.api.dao.impl.ManagerDaoBase.access$100(ManagerDaoBase.java:95)


2025-08-21 10:20:19,064 INFO scm-web-81:com.cloudera.api.ApiExceptionMapper: Exception caught in API invocation. Msg:The following host(s) are not available: hdfs-44.vmlocal,hdfs-42.vmlocal,hdfs-43.vmlocal,hdfs-41.vmlocal.
java.lang.IllegalArgumentException: The following host(s) are not available: hdfs-44.vmlocal,hdfs-42.vmlocal,hdfs-43.vmlocal,hdfs-41.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)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The template we try to deploy looks like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
"cdhVersion":"7.1.9",
"displayName":"storageScale",
"cmVersion":"7.11.3",
"repositories":[
"http://ip_address/repos/jenkins/BDA_CSTL/CDP7.1.9-CHF6/cdh-7.1.9.9/redhat8/"
],
"products":[
{
"product":"7.1.9-1.cdh7.1.9.p9.52289703-el8.parcel",
"version":"CDH"
}
],
"services":[
{
"refName":"spectrumscale",
"serviceType":"SPECTRUMSCALE",
"serviceConfigs":[
{
"name":"default_fs_name",
"value":"hdfs://cesnet-cluster-4.vmlocal:8020"
},
{
"name":"webhdfs_url",
"value":"http://cesnet-cluster-4.vmlocal:50070/webhdfs/v1"
}
],
"roleConfigGroups":[
{
"refName":"spectrumscale-TRANSPARENCY_DATANODE-BASE",
"roleType":"TRANSPARENCY_DATANODE",
"base":true
},
{
"refName":"spectrumscale-TRANSPARENCY_NAMENODE-BASE",
"roleType":"TRANSPARENCY_NAMENODE",
"base":true
},
{
"refName":"spectrumscale-GATEWAY-BASE",
"roleType":"GATEWAY",
"base":true
}
]
},
{
"refName":"core_settings",
"serviceType":"CORE_SETTINGS",
"roleConfigGroups":[
{
"refName":"core_settings-GATEWAY-BASE",
"roleType":"GATEWAY",
"base":true
}
]
}
],
"hostTemplates":[
{
"refName":"HostTemplate-0-from-hdfs-[43-44].vmlocal",
"cardinality":"2",
"roleConfigGroupsRefNames":[
"spectrumscale-GATEWAY-BASE",
"spectrumscale-TRANSPARENCY_DATANODE-BASE"
]
},
{
"refName":"HostTemplate-1-from-hdfs-42.vmlocal",
"cardinality":1,
"roleConfigGroupsRefNames":[
"spectrumscale-GATEWAY-BASE",
"spectrumscale-TRANSPARENCY_NAMENODE-BASE"
]
},
{
"refName":"HostTemplate-2-from-hdfs-41.vmlocal",
"cardinality":1,
"roleConfigGroupsRefNames":[
"core_settings-GATEWAY-BASE",
"spectrumscale-GATEWAY-BASE",
"spectrumscale-TRANSPARENCY_NAMENODE-BASE"
]
}
],
"tags":[
{
"name":"_cldr_cluster.core_settings.service_name",
"value":"core_settings"
}
],
"instantiator":{
"clusterName":"storageScale",
"hosts":[
{
"hostName":"hdfs-41.vmlocal",
"hostTemplateRefName":"HostTemplate-2-from-hdfs-41.vmlocal"
},
{
"hostName":"hdfs-42.vmlocal",
"hostTemplateRefName":"HostTemplate-1-from-hdfs-42.vmlocal"
},
{
"hostNameRange":"hdfs-[43-44].vmlocal",
"hostTemplateRefName":"HostTemplate-0-from-hdfs-[43-44].vmlocal"
}
],
"lenient":false
}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Aug 2025 10:07:09 GMT</pubDate>
    <dc:creator>biker</dc:creator>
    <dc:date>2025-08-21T10:07:09Z</dc:date>
    <item>
      <title>Deploy Cloudera Manager with Rest Api template failed</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Deploy-Cloudera-Manager-with-Rest-Api-template-failed/m-p/412140#M253269</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we using the cdh_version: 7.1.9 and cm_version: 7.11.3&lt;/P&gt;&lt;P&gt;We want to deploy the cloudera manager with the json template file for our test automation. We want to use the rest API call "/cm/importClusterTemplate?addRepositories=true".&lt;BR /&gt;But we get the following error when we deploy the template json file.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"message": "The following host(s) are not available: hdfs-11.vmlocal,hdfs-14.vmlocal,hdfs-12.vmlocal,hdfs-13.vmlocal."&lt;/LI-CODE&gt;&lt;P&gt;The hdfs nodes are available and can be ping or ssh from the cloudera host.&lt;BR /&gt;The following packages are installed on each hdfs node:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cloudera-manager-daemons-7.11.3.7-52024171.el8.x86_64
cloudera-manager-agent-7.11.3.7-52024171.el8.x86_64
openjdk8-1.8.0_372_cloudera-1.x86_64&lt;/LI-CODE&gt;&lt;P&gt;The&amp;nbsp; cloudera-scm-agent running and the server_host entry in /etc/cloudera-scm-agent/config.ini points to the cloudera manager host (server_host=10.0.100.101)&lt;/P&gt;&lt;P&gt;We have read the cloudera documentation multiple times.&lt;/P&gt;&lt;P&gt;Does anyone has an idea why this error appears or how we can verify that the cloudera manager knows this hosts.&lt;BR /&gt;If we switch to the cloudera gui the hdfs nodes are find and it works.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 13:49:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Deploy-Cloudera-Manager-with-Rest-Api-template-failed/m-p/412140#M253269</guid>
      <dc:creator>biker</dc:creator>
      <dc:date>2025-08-20T13:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Cloudera Manager with Rest Api template failed</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Deploy-Cloudera-Manager-with-Rest-Api-template-failed/m-p/412141#M253270</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/128751"&gt;@biker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reaching out Cloudera Community.&lt;/P&gt;&lt;P&gt;We recommend you to check your cluster template parameters.&amp;nbsp; For more details you shall refer the following documentations.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/data-hub/cloud/cluster-templates/topics/mc-creating-dynamic-templates.html" target="_self"&gt;Dynamic cluster template parameters&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/data-hub/cloud/cluster-templates/topics/dh-parameters-template.html" target="_self"&gt;Example Cluster Template&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If everything is okay and the issue remains the same, kindly help us with more details such as complete error trace, screenshots etc.,&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 16:47:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Deploy-Cloudera-Manager-with-Rest-Api-template-failed/m-p/412141#M253270</guid>
      <dc:creator>abdulpasithali</dc:creator>
      <dc:date>2025-08-20T16:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Cloudera Manager with Rest Api template failed</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Deploy-Cloudera-Manager-with-Rest-Api-template-failed/m-p/412145#M253272</link>
      <description>&lt;P&gt;Hi Abdulpasithali,&lt;/P&gt;&lt;P&gt;thank you for looking at my post.&lt;/P&gt;&lt;P&gt;The template you point me is totally different to the template we are using.&lt;BR /&gt;I try to deploy the template and got empty brackets returned.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X POST -H "Content-Type: application/json" -d @/tmp/cloudera_base_new.json http://admin:admin@9.152.187.116:7180/api/v54/cm/importClusterTemplate?addRepositories=true
{ }&lt;/LI-CODE&gt;&lt;P&gt;You can find the template we using is to deploy a cloudera node here&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.9/configuring-clusters/topics/cdpdc-creating-runtime-cluster-cm-template.html" target="_self"&gt;Creating a Runtime Cluster Using a Cloudera Manager Template&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We export the configuration from an existing Cloudera Cluster, changed some values at the json file and try to deploy it on a new cluster.&lt;BR /&gt;But this import failed.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X POST -H "Content-Type: application/json" -d @/tmp/cloudera_base.json http://admin:admin@my_cloudera_ip:7180/api/v54/cm/importClusterTemplate?addReposiies=true
{
"message" : "The following host(s) are not available: hdfs-44.vmlocal,hdfs-42.vmlocal,hdfs-43.vmlocal,hdfs-41.vmlocal."
}&lt;/LI-CODE&gt;&lt;P&gt;Looking at the logfile at the cloudera node I see two java exceptions&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2025-08-21 10:20:19,003 INFO scm-web-81:com.cloudera.server.web.cmf.AuthenticationSuccessEventListener: Authentication success for user: 'admin' from 9.152.187.253
2025-08-21 10:20:19,008 INFO scm-web-81:com.cloudera.enterprise.JavaMelodyFacade: Entering HTTP Operation: Method:POST, Path:/v54/cm/importClusterTemplate
2025-08-21 10:20:19,054 INFO scm-web-81:com.cloudera.enterprise.AbstractWrappedEntityManager: Rolling back transaction that wasn't marked for rollback-only.
java.lang.Exception: Non-thrown exception for stack trace.
at com.cloudera.enterprise.AbstractWrappedEntityManager.close(AbstractWrappedEntityManager.java:163)
at com.cloudera.cmf.persist.CmfEntityManager.close(CmfEntityManager.java:408)
at com.cloudera.server.web.cmf.AuthFilterEntityManager.close(AuthFilterEntityManager.java:202)
at com.cloudera.api.dao.impl.ManagerDaoBase.runInNewTransaction(ManagerDaoBase.java:270)
at com.cloudera.api.dao.impl.ManagerDaoBase.access$100(ManagerDaoBase.java:95)


2025-08-21 10:20:19,064 INFO scm-web-81:com.cloudera.api.ApiExceptionMapper: Exception caught in API invocation. Msg:The following host(s) are not available: hdfs-44.vmlocal,hdfs-42.vmlocal,hdfs-43.vmlocal,hdfs-41.vmlocal.
java.lang.IllegalArgumentException: The following host(s) are not available: hdfs-44.vmlocal,hdfs-42.vmlocal,hdfs-43.vmlocal,hdfs-41.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)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The template we try to deploy looks like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
"cdhVersion":"7.1.9",
"displayName":"storageScale",
"cmVersion":"7.11.3",
"repositories":[
"http://ip_address/repos/jenkins/BDA_CSTL/CDP7.1.9-CHF6/cdh-7.1.9.9/redhat8/"
],
"products":[
{
"product":"7.1.9-1.cdh7.1.9.p9.52289703-el8.parcel",
"version":"CDH"
}
],
"services":[
{
"refName":"spectrumscale",
"serviceType":"SPECTRUMSCALE",
"serviceConfigs":[
{
"name":"default_fs_name",
"value":"hdfs://cesnet-cluster-4.vmlocal:8020"
},
{
"name":"webhdfs_url",
"value":"http://cesnet-cluster-4.vmlocal:50070/webhdfs/v1"
}
],
"roleConfigGroups":[
{
"refName":"spectrumscale-TRANSPARENCY_DATANODE-BASE",
"roleType":"TRANSPARENCY_DATANODE",
"base":true
},
{
"refName":"spectrumscale-TRANSPARENCY_NAMENODE-BASE",
"roleType":"TRANSPARENCY_NAMENODE",
"base":true
},
{
"refName":"spectrumscale-GATEWAY-BASE",
"roleType":"GATEWAY",
"base":true
}
]
},
{
"refName":"core_settings",
"serviceType":"CORE_SETTINGS",
"roleConfigGroups":[
{
"refName":"core_settings-GATEWAY-BASE",
"roleType":"GATEWAY",
"base":true
}
]
}
],
"hostTemplates":[
{
"refName":"HostTemplate-0-from-hdfs-[43-44].vmlocal",
"cardinality":"2",
"roleConfigGroupsRefNames":[
"spectrumscale-GATEWAY-BASE",
"spectrumscale-TRANSPARENCY_DATANODE-BASE"
]
},
{
"refName":"HostTemplate-1-from-hdfs-42.vmlocal",
"cardinality":1,
"roleConfigGroupsRefNames":[
"spectrumscale-GATEWAY-BASE",
"spectrumscale-TRANSPARENCY_NAMENODE-BASE"
]
},
{
"refName":"HostTemplate-2-from-hdfs-41.vmlocal",
"cardinality":1,
"roleConfigGroupsRefNames":[
"core_settings-GATEWAY-BASE",
"spectrumscale-GATEWAY-BASE",
"spectrumscale-TRANSPARENCY_NAMENODE-BASE"
]
}
],
"tags":[
{
"name":"_cldr_cluster.core_settings.service_name",
"value":"core_settings"
}
],
"instantiator":{
"clusterName":"storageScale",
"hosts":[
{
"hostName":"hdfs-41.vmlocal",
"hostTemplateRefName":"HostTemplate-2-from-hdfs-41.vmlocal"
},
{
"hostName":"hdfs-42.vmlocal",
"hostTemplateRefName":"HostTemplate-1-from-hdfs-42.vmlocal"
},
{
"hostNameRange":"hdfs-[43-44].vmlocal",
"hostTemplateRefName":"HostTemplate-0-from-hdfs-[43-44].vmlocal"
}
],
"lenient":false
}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 10:07:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Deploy-Cloudera-Manager-with-Rest-Api-template-failed/m-p/412145#M253272</guid>
      <dc:creator>biker</dc:creator>
      <dc:date>2025-08-21T10:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Cloudera Manager with Rest Api template failed</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Deploy-Cloudera-Manager-with-Rest-Api-template-failed/m-p/412153#M253279</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/79328"&gt;@abdulpasithali&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You may got notified on my last post. Because I forgot the&amp;nbsp;@ on your name.&amp;nbsp;&lt;BR /&gt;You may can read the post below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 07:07:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Deploy-Cloudera-Manager-with-Rest-Api-template-failed/m-p/412153#M253279</guid>
      <dc:creator>biker</dc:creator>
      <dc:date>2025-08-22T07:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Cloudera Manager with Rest Api template failed</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Deploy-Cloudera-Manager-with-Rest-Api-template-failed/m-p/412461#M253464</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Friendly reminder for you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The recommendation is to use the hostname instead of the IP address for the&amp;nbsp;&lt;/SPAN&gt;server_host&lt;SPAN&gt;&amp;nbsp;entry in the&amp;nbsp;&lt;/SPAN&gt;/etc/cloudera-scm-agent/config.ini&lt;SPAN&gt;&amp;nbsp;file. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This allows more flexibility with DNS resolution and potential IP address changes.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 02:41:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Deploy-Cloudera-Manager-with-Rest-Api-template-failed/m-p/412461#M253464</guid>
      <dc:creator>jleandro-cr</dc:creator>
      <dc:date>2025-09-25T02:41:26Z</dc:date>
    </item>
  </channel>
</rss>

