Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EA9C8200C1C for ; Wed, 15 Feb 2017 15:57:35 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E8480160B5E; Wed, 15 Feb 2017 14:57:35 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3C0C3160B46 for ; Wed, 15 Feb 2017 15:57:35 +0100 (CET) Received: (qmail 17859 invoked by uid 500); 15 Feb 2017 14:57:34 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 17847 invoked by uid 99); 15 Feb 2017 14:57:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2017 14:57:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A9D92C144F for ; Wed, 15 Feb 2017 14:57:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Cc6eK28PMhEk for ; Wed, 15 Feb 2017 14:57:32 +0000 (UTC) Received: from mail-vk0-f42.google.com (mail-vk0-f42.google.com [209.85.213.42]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 8E5F55F370 for ; Wed, 15 Feb 2017 14:57:31 +0000 (UTC) Received: by mail-vk0-f42.google.com with SMTP id x75so100201447vke.2 for ; Wed, 15 Feb 2017 06:57:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=y+J11ihg1q7bz7jf/cub50akqIw9vewg0uxN4ZD8QyU=; b=e4EkRitg60mPdldhS0REo4ULo3f8mJsRL3mwxrdsrxvXDj9BuZvvSXthhTxDsxXXHn OBiuDSRO/acjgSTamh+H8/kcG3Yg8sO+IYWbszybX+HIYzhQQNASL/QS8Afifh2x+W8B 2zLD/cxwpmdytj5zgs51j+ox5jXK59+eXw26tBzrtEAczHzEHQ3B3KknfG7w18kxjWDv sOLedbgJrvPPnyaA1eQeI6v0jySnC2Ry9fVZylxaSji+QeF57SJMJo8ZKyx9CAjazuzB 6EUgAsMfpbzPNDrh+xGdmszoFFBycy5AzF7JS9g+kTOhKUF1X4JFLWVQXpHDQCaCM0B8 r46w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=y+J11ihg1q7bz7jf/cub50akqIw9vewg0uxN4ZD8QyU=; b=fHWwRUHmt9G5resiUPjTZ1t0iHzlC6/+zRdz9KQlE90uspwv8AG33xw7tUTwQkrTKZ l93oJooPbPNa5EIfnXAvwCqAVkVd60B2WRLcCT1kuvG2pwiqsZHfIpV8xdd0WOgHyNIK Gg8WEC47PThEyITqDhUQudATISvwvyd5YS5VxH5+ZBqh+HhCuaMGVBfzzpc/Idhquekp LzqD23YnjfFwDuR4JOh1TLQASpX54XpxZJ8DBSh3nUMPKmOT52VB2a6OLjyX8tqP+g/S TH9ogiS10kWe+kX1E4CljqvQeRbth/jYR9gfN4FhL6ZtIYXlbzYgQRj2oInZtyHgnpKm ZCFw== X-Gm-Message-State: AMke39kKvJQ2J4Jwpzn5e2g7p2yc8sfAmCbyx2Jd3m4cFHAohWlXqT2z6/OgUY5ncpvPR3La54xvGyzl2qtw6Q== X-Received: by 10.31.8.147 with SMTP id 141mr17556662vki.111.1487170650302; Wed, 15 Feb 2017 06:57:30 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sandeep G Date: Wed, 15 Feb 2017 14:57:19 +0000 Message-ID: Subject: Re: New service user for custom service To: dev@ambari.apache.org Content-Type: multipart/alternative; boundary=001a1144f13054efe5054892e6ff archived-at: Wed, 15 Feb 2017 14:57:36 -0000 --001a1144f13054efe5054892e6ff Content-Type: text/plain; charset=UTF-8 Thanks for the reply Janne I have tried out even that route of adding one xml file in the configuration folder and the USER property that you mentioned in the file. But the framework is throwing an exception when it is setting empty configs as there are no other configs apart from the USER property in the xml file. So trying to figure out if there is any other place where we can configure this USER property On Wed, 15 Feb 2017 at 20:01, Janne Valkealahti wrote: Afaik you need to add that configuration you mentioned. That's something I'm doing[1] in Spring Cloud Dataflow plugin for ambari. Then if you're executing a process you need to reference[2] that user. I think I also ripped this out from how zk service was done. I think a way it works is if property-type is USER then that instructs ambari to actually create that user. [1] https://github.com/spring-cloud/spring-cloud-dataflow-ambari-rpm/blob/master/src/main/resources/services/SCDF/configuration/scdf-server-env.xml#L25 [2] https://github.com/spring-cloud/spring-cloud-dataflow-ambari-rpm/blob/master/src/main/resources/services/SCDF/package/scripts/scdf_service.py#L47 On Wed, Feb 15, 2017 at 12:34 PM, Sandeep G wrote: > Hi > We are adding a new custom service in our Ambari stack and would like to > run the service as a new service user. I have seen that for services like > Zookeeper, the zookeeper user is configured in zookeeper-env.xml which > would show up in the configuration recommendations page in UI and Ambari > would create the user if not already present. > > However for the new service that we are adding, there is no configuration > folder as there are no configs for this service. Can you please guide me on > where to configure this new user so that it shows up in configuration > recommendation page ? > > Thanks > --Sandeep > --001a1144f13054efe5054892e6ff--