Return-Path: X-Original-To: apmail-ambari-user-archive@www.apache.org Delivered-To: apmail-ambari-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1055E175DD for ; Fri, 17 Apr 2015 14:02:34 +0000 (UTC) Received: (qmail 15799 invoked by uid 500); 17 Apr 2015 14:02:30 -0000 Delivered-To: apmail-ambari-user-archive@ambari.apache.org Received: (qmail 15770 invoked by uid 500); 17 Apr 2015 14:02:30 -0000 Mailing-List: contact user-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ambari.apache.org Delivered-To: mailing list user@ambari.apache.org Received: (qmail 15760 invoked by uid 99); 17 Apr 2015 14:02:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 14:02:30 +0000 X-ASF-Spam-Status: No, hits=2.4 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: message received from 54.164.171.186 which is an MX secondary for user@ambari.apache.org) Received: from [54.164.171.186] (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 14:02:24 +0000 Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 7E16F453FD for ; Fri, 17 Apr 2015 14:02:03 +0000 (UTC) Received: by laat2 with SMTP id t2so81064583laa.1 for ; Fri, 17 Apr 2015 07:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=NDKSP2WF+MXH8ye19a1lKPgDL36JG95w6Hjs37jjmf4=; b=zo9V1MyG6Ylt2oW4YrlJIIB5LXC3EYPznV5as2SJwZ0LlG1vh2SbCAkI1uaOokLF+1 +RZxCJDNKDcUEDzDhkpgqIRoUeflRRMB5nnANp5v04NjGXOP5hVEYJ/etQNcZnT5TMI6 764RTHjOL4iMuEwF6v8/2D435yBzK2YsJ2ls0UCRwd4ajyM6+h2e+aT0P8e6bbb7hNQp HCww6Il6QayjbIKNkeWslfU1V+RtDM+jIuAbESGXWo9hRr7Ta8P9MtvvdtGPYeYDgA2O lz0AlZ6+mo94sbA5OWbiTMgatd+UZ2wbqkpoqAO1pfAl83heBbF35V2QKp3NteGZcdeV 2Osw== MIME-Version: 1.0 X-Received: by 10.152.44.225 with SMTP id h1mr3908701lam.5.1429279322477; Fri, 17 Apr 2015 07:02:02 -0700 (PDT) Sender: dbist13@gmail.com Received: by 10.112.1.201 with HTTP; Fri, 17 Apr 2015 07:02:02 -0700 (PDT) Date: Fri, 17 Apr 2015 10:02:02 -0400 X-Google-Sender-Auth: dwXjY6ISsBHHVvoRLA6V69iAUSQ Message-ID: Subject: delete using API problem From: Artem Ervits To: user@ambari.apache.org Content-Type: multipart/alternative; boundary=089e0160b7be4d18cc0513ec0659 X-Virus-Checked: Checked by ClamAV on apache.org --089e0160b7be4d18cc0513ec0659 Content-Type: text/plain; charset=UTF-8 Hello, I have an issue where I need to delete Storm service but I may have botched the order of steps. Here are my commands: *curl -u admin:password -H "X-Requested-By: ambari" -X PUT -d '{"RequestInfo":{"context":"Stop Service"},"Body":{"ServiceInfo":{"state":"INSTALLED"}}}' http://localhost:8080/api/v1/clusters/c1/services/STORM * *curl -u admin:password -H "X-Requested-By: ambari" -X DELETE http://localhost:8080/api/v1/clusters/c1/services/STORM {* * "status" : 500,* * "message" : "org.apache.ambari.server.controller.spi.SystemException: An internal system exception occurred: Cannot remove STORM. Desired state STARTED is not removable. Service must be stopped or disabled."* What do I do in this case? Thanks Artem Ervits --089e0160b7be4d18cc0513ec0659 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hello,

=C2=A0

I have an issue where I need to delete Storm service= but I may have botched the order of steps.

=C2=A0

Here are my commands:

=C2=A0

curl -u admin:password -H "X-Requested-By: ambari" -X PUT -d '{"RequestInfo":{"context":"Stop Service"},"Body":{"ServiceInfo":{"state"= :"INSTALLED"}}}' http://= localhost:8080/api/v1/clusters/c1/services/STORM

=C2=A0

curl -u admin:password -H "X-Requested-By: ambari" -X DELETE=C2=A0 http://= localhost:8080/api/v1/clusters/c1/services/STORM=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {=

=C2=A0 "status" : 500,

=C2=A0 "message" : "org.apache.ambari.server.controller.spi.SystemException: An internal system exception occurred: Cannot remove STORM. Desired state STARTED is no= t removable.=C2=A0 Service must be stopped or disabled."

=C2=A0

What do I do in this case?

=C2=A0

Thanks


Artem Ervits

--089e0160b7be4d18cc0513ec0659--