You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2017/10/17 18:05:00 UTC
[jira] [Commented] (AMBARI-22244) Update service component API call
to work for second service instance
[ https://issues.apache.org/jira/browse/AMBARI-22244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16208047#comment-16208047 ]
Hadoop QA commented on AMBARI-22244:
------------------------------------
{color:red}-1 overall{color}. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12892408/AMBARI-22244.patch
against trunk revision .
{color:red}-1 patch{color}. The patch command could not apply the patch.
Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/12532//console
This message is automatically generated.
> Update service component API call to work for second service instance
> ---------------------------------------------------------------------
>
> Key: AMBARI-22244
> URL: https://issues.apache.org/jira/browse/AMBARI-22244
> Project: Ambari
> Issue Type: Task
> Components: ambari-server
> Affects Versions: 3.0.0
> Reporter: Doroszlai, Attila
> Assignee: Doroszlai, Attila
> Fix For: 3.0.0
>
> Attachments: AMBARI-22244.patch
>
>
> *Background:*
> AMBARI-21824 & AMBARI-22164 moved service API to {{/api/v1/clusters/<cluster-name>/servicegroups/<service-group-name>/services}}. The service API was also updated to be able to create a second service instance.
> {code}
> POST /api/v1/clusters/cl1/servicegroups/core/services
> {
> "ServiceInfo" : {
> "service_name": "ZK2",
> "service_type": "ZOOKEEPER"
> }
> }
> {code}
> In the example above {{service_name = ZK2}} is the user-defined service name and {{service_type = ZOOKEEPER}} is the actual service name as defined in the stack definition.
> *Issue:*
> # There are issues with creating a service component for the second instance (i.e. {{POST /api/v1/clusters/cl1/servicegroups/core/services/ZK2/components/ZOOKEEPER_SERVER}} etc can cause failures).
> # This is primarily because there are code blocks where we use {{service_name}} instead of {{service_type}} to make calls to {{ambariMetaInfo.getService(stackName, stackVersion, stackServiceName)}}.
> # So we end up making a call {{ambariMetaInfo.getService("HDP", "3.0.0", "ZK1")}}. We need to fix issues like these to be able to make our APIs multi-instance ready.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)