[ https://issues.apache.org/jira/browse/HIVE-7342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thejas M Nair updated HIVE-7342: -------------------------------- Release Note: Adds support for server specific config files. HiveMetastore server reads hive-site.xml as well as hivemetastore-site.xml configuration files that are available in the $HIVE_CONF_DIR or in the classpath. If metastore is being used in embedded mode (ie hive.metastore.uris is not set or empty) in hive commandline or hiveserver2, the hivemetastore-site.xml gets loaded by the parent process as well. The value of hive.metastore.uris is examined to determine this, and the value should be set appropriately in hive-site.xml . HiveServer2 reads hive-site.xml as well as hiveserver2-site.xml that are available in the $HIVE_CONF_DIR or in the classpath. If hiveserver2 is using metastore in embedded mode, hivemetastore-site.xml also is loaded. The order of precedence of the config files is as follows (later one has higher precedence) - hive-site.xml -> hivemetastore-site.xml -> hiveserver2-site.xml -> '-hiveconf' commandline parameters > support hiveserver2,metastore specific config files > --------------------------------------------------- > > Key: HIVE-7342 > URL: https://issues.apache.org/jira/browse/HIVE-7342 > Project: Hive > Issue Type: Bug > Components: Configuration, HiveServer2, Metastore > Reporter: Thejas M Nair > Assignee: Thejas M Nair > Attachments: HIVE-7342.1.patch, HIVE-7342.2.patch > > > There is currently a single configuration file for all components in hive. > ie, components such as hive cli, hiveserver2 and metastore all read from the > same hive-site.xml. > It will be useful to have a server specific hive-site.xml, so that you can > have some different configuration value set for a server. For example, you > might want to enabled authorization checks for hiveserver2, while disabling > the checks for hive cli. The workaround today is to add any component > specific configuration as a commandline (-hiveconf) argument. > Using server specific config files (eg hiveserver2-site.xml, > hivemetastore-site.xml) that override the entries in hive-site.xml will make > the configuration much more easy to manage. -- This message was sent by Atlassian JIRA (v6.2#6252)