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 CE633200BBD for ; Tue, 25 Oct 2016 01:29:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CD1B9160B03; Mon, 24 Oct 2016 23:29:00 +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 29975160AEB for ; Tue, 25 Oct 2016 01:29:00 +0200 (CEST) Received: (qmail 14097 invoked by uid 500); 24 Oct 2016 23:28:59 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 14057 invoked by uid 99); 24 Oct 2016 23:28:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2016 23:28:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 463932C001E for ; Mon, 24 Oct 2016 23:28:59 +0000 (UTC) Date: Mon, 24 Oct 2016 23:28:59 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-15047) metastore setconf API can set too many confs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 24 Oct 2016 23:29:01 -0000 [ https://issues.apache.org/jira/browse/HIVE-15047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Shelukhin updated HIVE-15047: ------------------------------------ Description: {noformat} public void setMetaConf(String key, String value) throws MetaException { ConfVars confVar = HiveConf.getMetaConf(key); {noformat} that gets stuff from "metaConfs", which contains all the metastore configs, including the warehouse location, port (setting that unfortunately would not work; imagine the possibilities!), etc. There's another small list near metaConfs - metaConfVars, billed as "User configurable Metastore vars". That is probably the list that was intended for the above API; as it is, it's not used for any checks. When making the change SetProcessor etc. should be adjusted to fail with some user-friendly message when trying to set unsettable metastore configs. was: {noformat} public void setMetaConf(String key, String value) throws MetaException { ConfVars confVar = HiveConf.getMetaConf(key); {noformat} that gets stuff from "metaConfs", which contains all the metastore configs, including the warehouse location, port (setting that unfortunately would not work; imagine the possibilities!), etc. There's another small list near metaConfs - metaConfVars, billed as "User configurable Metastore vars". That is probably the list that should be used; as it is, it's not used for any checks. When making the change SetProcessor etc. should be adjusted to fail with some user-friendly message when trying to set unsettable metastore APIs. {noformat} > metastore setconf API can set too many confs > -------------------------------------------- > > Key: HIVE-15047 > URL: https://issues.apache.org/jira/browse/HIVE-15047 > Project: Hive > Issue Type: Bug > Reporter: Sergey Shelukhin > > {noformat} > public void setMetaConf(String key, String value) throws MetaException { > ConfVars confVar = HiveConf.getMetaConf(key); > {noformat} > that gets stuff from "metaConfs", which contains all the metastore configs, including the warehouse location, port (setting that unfortunately would not work; imagine the possibilities!), etc. > There's another small list near metaConfs - metaConfVars, billed as "User configurable Metastore vars". That is probably the list that was intended for the above API; as it is, it's not used for any checks. > When making the change SetProcessor etc. should be adjusted to fail with some user-friendly message when trying to set unsettable metastore configs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)