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 C9270200C3F for ; Wed, 8 Mar 2017 00:21:43 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C63A7160B74; Tue, 7 Mar 2017 23:21:43 +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 1C8E9160B68 for ; Wed, 8 Mar 2017 00:21:42 +0100 (CET) Received: (qmail 28616 invoked by uid 500); 7 Mar 2017 23:21:42 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 28605 invoked by uid 99); 7 Mar 2017 23:21:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Mar 2017 23:21:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B9CF2183991 for ; Tue, 7 Mar 2017 23:21:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.451 X-Spam-Level: * X-Spam-Status: No, score=1.451 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id T1lZXjp6A8Lu for ; Tue, 7 Mar 2017 23:21:40 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 9AFD45F1F4 for ; Tue, 7 Mar 2017 23:21:40 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 526CBE05AE for ; Tue, 7 Mar 2017 23:21:39 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3A4DF24180 for ; Tue, 7 Mar 2017 23:21:38 +0000 (UTC) Date: Tue, 7 Mar 2017 23:21:38 +0000 (UTC) From: "Xuan Gong (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5948) Implement MutableConfigurationManager for handling storage into configuration store MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 07 Mar 2017 23:21:44 -0000 [ https://issues.apache.org/jira/browse/YARN-5948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15900373#comment-15900373 ] Xuan Gong commented on YARN-5948: --------------------------------- Thanks for the patch. [~jonathan_huang] Overall looks good. One nit: instead of using: {code} public static final String SCHEDULER_CONFIGURATION_STORE = YARN_PREFIX + "scheduler.configuration.store"; public static final String MEMORY_CONFIGURATION_STORE = "memory"; {code} Could you using the configuration, such as SCHEDULER_CONFIGURATION_STORE_CLASS ? And create a SCHEDULER_CONFIGURATION_STORE factory to load it. This is the example on how we load the RMStateStore class. {code} public static RMStateStore getStore(Configuration conf) { Class storeClass = conf.getClass(YarnConfiguration.RM_STORE, MemoryRMStateStore.class, RMStateStore.class); LOG.info("Using RMStateStore implementation - " + storeClass); return ReflectionUtils.newInstance(storeClass, conf); } {code} > Implement MutableConfigurationManager for handling storage into configuration store > ----------------------------------------------------------------------------------- > > Key: YARN-5948 > URL: https://issues.apache.org/jira/browse/YARN-5948 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Jonathan Hung > Assignee: Jonathan Hung > Attachments: YARN-5948.001.patch, YARN-5948-YARN-5734.002.patch, YARN-5948-YARN-5734.003.patch, YARN-5948-YARN-5734.004.patch, YARN-5948-YARN-5734.005.patch > > > The MutableConfigurationManager will take REST calls with desired client configuration changes and call YarnConfigurationStore methods to store these changes in the backing store. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org