<?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 Service Names are Random in Director provisioned Cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Service-Names-are-Random-in-Director-provisioned-Cluster/m-p/51397#M55320</link>
    <description>&lt;P&gt;After provisioned the cluster via Cloudera Director, all the service names appear to be random:&lt;/P&gt;&lt;P&gt;e.g. "CD-ZOOKEEPER-ftOlmEAM":&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;..../api/v13/clusters/[cluster_name]/services/&lt;/P&gt;&lt;PRE&gt;... &lt;BR /&gt;{
    "name" : "&lt;FONT color="#FF0000"&gt;CD-ZOOKEEPER-ftOlmEAM&lt;/FONT&gt;",
    "type" : "ZOOKEEPER",
    "clusterRef" : {
      "clusterName" : "platform-pod1-dev-cdh"
    },
    "serviceUrl" : "http://ip-10-0-1-121.us-west-2.compute.internal:7180/cmf/serviceRedirect/CD-ZOOKEEPER-ftOlmEAM",
    "roleInstancesUrl" : "http://ip-10-0-1-121.us-west-2.compute.internal:7180/cmf/serviceRedirect/CD-ZOOKEEPER-ftOlmEAM/instances",
    "serviceState" : "STARTED",
    "healthSummary" : "GOOD",
    "healthChecks" : [ {
      "name" : "ZOOKEEPER_CANARY_HEALTH",
      "summary" : "GOOD",
      "suppressed" : false
    }, {
      "name" : "ZOOKEEPER_SERVERS_HEALTHY",
      "summary" : "GOOD",
      "suppressed" : false
    } ],
    "configStalenessStatus" : "FRESH",
    "clientConfigStalenessStatus" : "FRESH",
    "maintenanceMode" : false,
    "maintenanceOwners" : [ ],
    "displayName" : "ZOOKEEPER-1",
    "entityStatus" : "GOOD_HEALTH"
}&lt;BR /&gt;...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;v.s.&amp;nbsp;cluster provisioned via Cloudera Manager wizzard, the service name is very predictable...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "items" : [ {
    "name" : "&lt;FONT color="#FF0000"&gt;zookeeper&lt;/FONT&gt;",
    "type" : "ZOOKEEPER",
    "clusterRef" : {
      "clusterName" : "cluster"
    },
    "serviceUrl" : "http://ip-10-110-1-204.ec2.internal:7180/cmf/serviceRedirect/zookeeper",
    "serviceState" : "STARTED",
    "healthSummary" : "GOOD",
    "healthChecks" : [ {
      "name" : "ZOOKEEPER_CANARY_HEALTH",
      "summary" : "GOOD"
    }, {
      "name" : "ZOOKEEPER_SERVERS_HEALTHY",
      "summary" : "GOOD"
    } ],
    "configStale" : false,
    "maintenanceMode" : false,
    "maintenanceOwners" : [ ],
    "displayName" : "ZooKeeper"
  }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This makes it very difficult&amp;nbsp;to build automation around Manager REST&amp;nbsp;APIs.&amp;nbsp;For example, download client-conif:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cloudera.github.io/cm_api/apidocs/v13/path__clusters_-clusterName-_services_-serviceName-_clientConfig.html" target="_blank"&gt;http://cloudera.github.io/cm_api/apidocs/v13/path__clusters_-clusterName-_services_-serviceName-_clientConfig.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to config this in Director's cluster config or rename&amp;nbsp;the service after provisioning?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 15:43:25 GMT</pubDate>
    <dc:creator>WZ</dc:creator>
    <dc:date>2022-09-16T15:43:25Z</dc:date>
    <item>
      <title>Service Names are Random in Director provisioned Cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Service-Names-are-Random-in-Director-provisioned-Cluster/m-p/51397#M55320</link>
      <description>&lt;P&gt;After provisioned the cluster via Cloudera Director, all the service names appear to be random:&lt;/P&gt;&lt;P&gt;e.g. "CD-ZOOKEEPER-ftOlmEAM":&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;..../api/v13/clusters/[cluster_name]/services/&lt;/P&gt;&lt;PRE&gt;... &lt;BR /&gt;{
    "name" : "&lt;FONT color="#FF0000"&gt;CD-ZOOKEEPER-ftOlmEAM&lt;/FONT&gt;",
    "type" : "ZOOKEEPER",
    "clusterRef" : {
      "clusterName" : "platform-pod1-dev-cdh"
    },
    "serviceUrl" : "http://ip-10-0-1-121.us-west-2.compute.internal:7180/cmf/serviceRedirect/CD-ZOOKEEPER-ftOlmEAM",
    "roleInstancesUrl" : "http://ip-10-0-1-121.us-west-2.compute.internal:7180/cmf/serviceRedirect/CD-ZOOKEEPER-ftOlmEAM/instances",
    "serviceState" : "STARTED",
    "healthSummary" : "GOOD",
    "healthChecks" : [ {
      "name" : "ZOOKEEPER_CANARY_HEALTH",
      "summary" : "GOOD",
      "suppressed" : false
    }, {
      "name" : "ZOOKEEPER_SERVERS_HEALTHY",
      "summary" : "GOOD",
      "suppressed" : false
    } ],
    "configStalenessStatus" : "FRESH",
    "clientConfigStalenessStatus" : "FRESH",
    "maintenanceMode" : false,
    "maintenanceOwners" : [ ],
    "displayName" : "ZOOKEEPER-1",
    "entityStatus" : "GOOD_HEALTH"
}&lt;BR /&gt;...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;v.s.&amp;nbsp;cluster provisioned via Cloudera Manager wizzard, the service name is very predictable...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "items" : [ {
    "name" : "&lt;FONT color="#FF0000"&gt;zookeeper&lt;/FONT&gt;",
    "type" : "ZOOKEEPER",
    "clusterRef" : {
      "clusterName" : "cluster"
    },
    "serviceUrl" : "http://ip-10-110-1-204.ec2.internal:7180/cmf/serviceRedirect/zookeeper",
    "serviceState" : "STARTED",
    "healthSummary" : "GOOD",
    "healthChecks" : [ {
      "name" : "ZOOKEEPER_CANARY_HEALTH",
      "summary" : "GOOD"
    }, {
      "name" : "ZOOKEEPER_SERVERS_HEALTHY",
      "summary" : "GOOD"
    } ],
    "configStale" : false,
    "maintenanceMode" : false,
    "maintenanceOwners" : [ ],
    "displayName" : "ZooKeeper"
  }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This makes it very difficult&amp;nbsp;to build automation around Manager REST&amp;nbsp;APIs.&amp;nbsp;For example, download client-conif:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cloudera.github.io/cm_api/apidocs/v13/path__clusters_-clusterName-_services_-serviceName-_clientConfig.html" target="_blank"&gt;http://cloudera.github.io/cm_api/apidocs/v13/path__clusters_-clusterName-_services_-serviceName-_clientConfig.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to config this in Director's cluster config or rename&amp;nbsp;the service after provisioning?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 15:43:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Service-Names-are-Random-in-Director-provisioned-Cluster/m-p/51397#M55320</guid>
      <dc:creator>WZ</dc:creator>
      <dc:date>2022-09-16T15:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Service Names are Random in Director provisioned Cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Service-Names-are-Random-in-Director-provisioned-Cluster/m-p/51431#M55321</link>
      <description>&lt;P&gt;WZ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Service names must be globally unique in Cloudera Manager. Director appends random characters to ensure that this uniqueness when creating services in case there are multiple clusters created under the same Cloudera Manager. There is no way to turn off this randomization in Director at the moment and there is no way to rename a service in Cloudera Manager (you can rename the display name only).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since Director supports only a single instance of each service type, you can retrieve the list of services from Cloudera Manager and create a mapping from service type to service name for your cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In bash, you can use jq to process the service list to retrieve the service names.&lt;/P&gt;&lt;PRE&gt;$ curl -u cmusername:cmpassword http://&amp;lt;cmhost&amp;gt;:7180/api/v15/clusters/&amp;lt;clustername&amp;gt;/services | jq -r '.items[] | "export \(.type)=\(.name)"' &amp;gt; export_service_names.sh
$ cat export_service_names.sh 
export ZOOKEEPER=CD-ZOOKEEPER-asdna2f&lt;/PRE&gt;&lt;P&gt;you can then&amp;nbsp;script against well known servicename variables by sourcing this export_service_names.sh script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can similarly retrieve the service names using the java client or python client.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 16:32:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Service-Names-are-Random-in-Director-provisioned-Cluster/m-p/51431#M55321</guid>
      <dc:creator>dhan</dc:creator>
      <dc:date>2017-02-24T16:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Service Names are Random in Director provisioned Cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Service-Names-are-Random-in-Director-provisioned-Cluster/m-p/51441#M55322</link>
      <description>makes sense. thanks a lot!</description>
      <pubDate>Fri, 24 Feb 2017 19:32:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Service-Names-are-Random-in-Director-provisioned-Cluster/m-p/51441#M55322</guid>
      <dc:creator>WZ</dc:creator>
      <dc:date>2017-02-24T19:32:52Z</dc:date>
    </item>
  </channel>
</rss>

