You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Sergey Shelukhin (JIRA)" <ji...@apache.org> on 2016/10/24 23:26:59 UTC

[jira] [Created] (HIVE-15047) metastore setconf API can set too many confs

Sergey Shelukhin created HIVE-15047:
---------------------------------------

             Summary: 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 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}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)