<?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 rest api install service in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/rest-api-install-service/m-p/226964#M72747</link>
    <description>&lt;PRE&gt;in attempt to use the rest api to install the service rather than blueprints creating service yields 400 error with a cryptic "No repositories were found for service installation"&lt;/PRE&gt;&lt;PRE&gt;curl -vX POST -u admin:admin --header "X-Requested-By: ambari" -d '{"ServiceInfo":{"service_name":"ZOOKEEPER"}}' &lt;A href="http://myhost:8080/api/v1/clusters/testCluster/services" target="_blank"&gt;http://myhost:8080/api/v1/clusters/testCluster/services&lt;/A&gt;&lt;/PRE&gt;&lt;PRE&gt;"status" : 400,
"message" : "No repositories were found for service installation"
&lt;/PRE&gt;&lt;P&gt;if i check my repository_version as so &lt;/P&gt;&lt;PRE&gt;&lt;A href="http://myhost:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/" target="_blank"&gt;http://myhost:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/&lt;/A&gt;
{
  "href" : "http://myhost:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/",
  "items" : [
    {
      "href" : "http://myhost:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/1",
      "RepositoryVersions" : {
        "id" : 1,
        "stack_name" : "HDP",
        "stack_version" : "2.6"
      }
    }
  ]
}
&lt;/PRE&gt;&lt;P&gt;It seems that there was a recent &lt;A href="https://github.com/apache/ambari/pull/40/commits/9e91639ba3579e3f0d9e74b8c9c42990ef59b553?diff=split"&gt;commit&lt;/A&gt; which added this but there are no new examples which specify where and how this repository id is to be supplied ?&lt;/P&gt;&lt;P&gt;What is the correct way to add a service to a cluster ?&lt;/P&gt;&lt;P&gt;Also where are all the payload definition references ?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2017 15:00:28 GMT</pubDate>
    <dc:creator>anshuman</dc:creator>
    <dc:date>2017-12-19T15:00:28Z</dc:date>
    <item>
      <title>rest api install service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/rest-api-install-service/m-p/226964#M72747</link>
      <description>&lt;PRE&gt;in attempt to use the rest api to install the service rather than blueprints creating service yields 400 error with a cryptic "No repositories were found for service installation"&lt;/PRE&gt;&lt;PRE&gt;curl -vX POST -u admin:admin --header "X-Requested-By: ambari" -d '{"ServiceInfo":{"service_name":"ZOOKEEPER"}}' &lt;A href="http://myhost:8080/api/v1/clusters/testCluster/services" target="_blank"&gt;http://myhost:8080/api/v1/clusters/testCluster/services&lt;/A&gt;&lt;/PRE&gt;&lt;PRE&gt;"status" : 400,
"message" : "No repositories were found for service installation"
&lt;/PRE&gt;&lt;P&gt;if i check my repository_version as so &lt;/P&gt;&lt;PRE&gt;&lt;A href="http://myhost:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/" target="_blank"&gt;http://myhost:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/&lt;/A&gt;
{
  "href" : "http://myhost:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/",
  "items" : [
    {
      "href" : "http://myhost:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/1",
      "RepositoryVersions" : {
        "id" : 1,
        "stack_name" : "HDP",
        "stack_version" : "2.6"
      }
    }
  ]
}
&lt;/PRE&gt;&lt;P&gt;It seems that there was a recent &lt;A href="https://github.com/apache/ambari/pull/40/commits/9e91639ba3579e3f0d9e74b8c9c42990ef59b553?diff=split"&gt;commit&lt;/A&gt; which added this but there are no new examples which specify where and how this repository id is to be supplied ?&lt;/P&gt;&lt;P&gt;What is the correct way to add a service to a cluster ?&lt;/P&gt;&lt;P&gt;Also where are all the payload definition references ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 15:00:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/rest-api-install-service/m-p/226964#M72747</guid>
      <dc:creator>anshuman</dc:creator>
      <dc:date>2017-12-19T15:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: rest api install service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/rest-api-install-service/m-p/226965#M72748</link>
      <description>&lt;P&gt;so this works; probably the &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Adding+a+New+Service+to+an+Existing+Cluster"&gt;documentation&lt;/A&gt; needs to be updated&lt;/P&gt;&lt;PRE&gt;curl -vX POST -u admin:admin --header "X-Requested-By: ambari"-d '{"ServiceInfo":{"service_name":"ZOOKEEPER", "desired_repository_version_id":1}}' &lt;A href="http://myhost:8080/api/v1/clusters/testCluster/services" target="_blank"&gt;http://myhost:8080/api/v1/clusters/testCluster/services&lt;/A&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Dec 2017 15:36:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/rest-api-install-service/m-p/226965#M72748</guid>
      <dc:creator>anshuman</dc:creator>
      <dc:date>2017-12-19T15:36:50Z</dc:date>
    </item>
  </channel>
</rss>

