Return-Path: X-Original-To: apmail-apex-dev-archive@minotaur.apache.org Delivered-To: apmail-apex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F1A791883E for ; Fri, 8 Jan 2016 02:06:51 +0000 (UTC) Received: (qmail 81781 invoked by uid 500); 8 Jan 2016 02:06:46 -0000 Delivered-To: apmail-apex-dev-archive@apex.apache.org Received: (qmail 81716 invoked by uid 500); 8 Jan 2016 02:06:46 -0000 Mailing-List: contact dev-help@apex.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.incubator.apache.org Delivered-To: mailing list dev@apex.incubator.apache.org Received: (qmail 81704 invoked by uid 99); 8 Jan 2016 02:06:46 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jan 2016 02:06:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2867C1A0150 for ; Fri, 8 Jan 2016 02:06:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.98 X-Spam-Level: ** X-Spam-Status: No, score=2.98 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=datatorrent-com.20150623.gappssmtp.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Lf9ojvtOkDHC for ; Fri, 8 Jan 2016 02:06:40 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 7751C20F5E for ; Fri, 8 Jan 2016 02:06:39 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id m198so19640432lfm.0 for ; Thu, 07 Jan 2016 18:06:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datatorrent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=i5vdsAT7RYfHdlV4iI+OtFLmDWodYxQpoOXdbHnd5dA=; b=QTlbBHoot39Y+l0ay8vvyd3Ox7SoPE4WuacKjiZYMhua5AWYj9lORCC5RM6oh0xMSu BasQ51F3NhvGyhDUmsSHdBo3rmG6P4cfC4HlqZOhDI6zFvssZ/hcoGVbwi+7BDb3wmAt WBrVw2kC1FR6eF+MimUTbp0mIM4mokHUIFAkby0+Vm3L0ZYB3poP40LemqXL+U2IgAhm wPlHBG+xNxVxyBsnneWBCbHWrutayul/WMqnNI88fEm0SimlZe+xtuayarFUHuIRlt8m Co4AeD46mqbmM+gwuyS//9bXK0I2TvB8TRZingbQGD/8m0AQIWFwbJ/miYyRFMIBOD4I W1Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=i5vdsAT7RYfHdlV4iI+OtFLmDWodYxQpoOXdbHnd5dA=; b=bOge/nIHBFTpfzp+TRfBdx0X/xEUrWqeCgDaG78VwDQIz7nrRD6Tw7/zcvkyOqU67r ZwbjLmfR1M2Fo3XVFNWqWYyxFaWYdu3JuN+G3O2Iz+NdXZodXc1qUYTdLNSrIiNNU2tI eQybk4/53SEV/4CN7i50MLlEVtHB6I2vsOqgJ1A/zbm8aqciFQb+fHdq1sJXN1+Ewruw hvA4Ba092Dut9SIPDSORzch3tKWgp0K06b6lQMuNqW8JwwSXxqtSHq0ewVg2afGA6CTd jbdqZAZXEyjfytrOtjmAbZye/KgZos+sLS1wsY1LRTJX1/Lhs/6t7xjGPFHsgAwql0Wq HKdA== X-Gm-Message-State: ALoCoQn+znwlLiz0Rzrld5QQAo0+YQNOsb69DcgaF3V3jMpwN26Pn0sYKDqrxQj4rNijy+KFGQcx2cPtjNKgVFSBSU6gC/cj7saPAUgxL6scXYkZKTNDtCQ= MIME-Version: 1.0 X-Received: by 10.25.1.75 with SMTP id 72mr14005742lfb.12.1452218798839; Thu, 07 Jan 2016 18:06:38 -0800 (PST) Received: by 10.25.21.68 with HTTP; Thu, 7 Jan 2016 18:06:38 -0800 (PST) In-Reply-To: <85A2DA6B5D38564B8D3B26E75950FF1D0537CF@PMPEMPE008.LA.FRD.DIRECTV.com> References: <85A2DA6B5D38564B8D3B26E75950FF1D0537CF@PMPEMPE008.LA.FRD.DIRECTV.com> Date: Thu, 7 Jan 2016 18:06:38 -0800 Message-ID: Subject: Re: Reg job failure when submitted using curl From: David Yan To: dev@apex.incubator.apache.org Content-Type: multipart/alternative; boundary=001a113a419ca434eb0528c909bc --001a113a419ca434eb0528c909bc Content-Type: text/plain; charset=UTF-8 It's an expected behavior. Apex does not allow multiple application instances with the same application name. What you can do is to use a different name, by adding "dt.attr.APPLICATION_NAME": "some-other-name" in your POST payload. For example: curl -XPOST -d '{ "dt.attr.APPLICATION_NAME": "some-other-name" }' http:// /ws/v2/appPackages///0.0.1-SNAPSHOT/ applications//launch David On Thu, Jan 7, 2016 at 6:02 PM, Kottapalli, Venkatesh < VKottapalli@directv.com> wrote: > Hi, > > When I try to submit the same job with the same name using > the curl command, the second job will be accepted but will be killed. When > I submit the job with a different name, it will accept and run the job. > > Can you help me understand this behavior. > > I need to submit same job multiple times, it is okay if it gets submitted > and shows a different name like it does when we submit the job from DT UI. > > Curl -XPOST -d http:// > /ws/v2/appPackages///0.0.1-SNAPSHOT/applications//launch. > > I am using 3.1.1 version of data torrent. > > > Regards, > Venkatesh. > --001a113a419ca434eb0528c909bc--