hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Hsu <a...@linkedin.com>
Subject Review Request 43073: HIVE-12978: Hive Metastore should have a config for starting background thread services
Date Mon, 01 Feb 2016 23:28:48 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43073/
-----------------------------------------------------------

Review request for hive, Carl Steinbach and Ratandeep Ratti.


Bugs: HIVE-12978
    https://issues.apache.org/jira/browse/HIVE-12978


Repository: hive-git


Description
-------

Added a new property `hive.metastore.thread.services` for configuring background metastore
threads.


Diffs
-----

  common/src/java/org/apache/hadoop/hive/conf/HiveConf.java 6678de6c488e838b82caf62186ff6518295b7e98

  metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java dde253a9c7a19527620f9d516265971529fa838d


Diff: https://reviews.apache.org/r/43073/diff/


Testing
-------

Tested manually.

Wrote an [ExampleMetaStoreThreadService.java](https://github.com/erwa/test/blob/master/metastore-thread-service-example-hive-2.x/src/main/java/ExampleMetaStoreThreadService.java).
Configured the following in my hive-site.xml:
```
    <property>
      <name>hive.metastore.thread.services</name>
      <value>ExampleMetaStoreThreadService</value>
    </property>
```

When starting the Hive Metastore, I saw the following log output:
```
16/02/01 15:09:54 [Thread-3]: INFO metastore.HiveMetaStore: Starting background metastore
service ExampleMetaStoreThreadService
16/02/01 15:09:54 [Thread-3]: INFO metastore.HiveMetaStore: Starting metastore thread of type
ExampleMetaStoreThreadService
16/02/01 15:09:54 [Thread-3]: INFO ExampleMetaStoreThreadService: Setting HiveConf in ExampleMetaStoreThreadService
16/02/01 15:09:54 [Thread-3]: INFO ExampleMetaStoreThreadService: Setting thread id in ExampleMetaStoreThreadService
16/02/01 15:09:54 [Thread-3]: INFO ExampleMetaStoreThreadService: Initing ExampleMetaStoreThreadService
16/02/01 15:09:54 [Thread-3]: INFO ExampleMetaStoreThreadService: Starting ExampleMetaStoreThreadService
```


Thanks,

Anthony Hsu


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message