Hive Metastore Administration
Table of Contents |
---|
Introduction
...
Variable Name | Description | Default Value | ||||
---|---|---|---|---|---|---|
hive.metastore.metadb.dir |
|
| ||||
hive.metastore.usefilestore |
|
| rawstore.impl | (Hive 0.8.1 and later.)hive.metastore.rawstore.impl |
|
|
org.jpox.autoCreateSchema | Creates necessary schema on startup if one doesn't exist. (e.g. tables, columns...) Set to false after creating it once. |
| ||||
org.jpox.fixedDatastore | Whether the datastore schema is fixed. |
| ||||
datanucleus.autoStartMechanism | Whether to initialize on startup. |
| ||||
hive.metastore.checkForDefaultDb |
|
| hive.metastore.ds.connection.url.hook | Name of the hook to use for retriving the JDO connection URL. If empty, the value in javax.jdo.option.ConnectionURL is used as the connection URL. (Hive 0.6 and later.) |
| |
hive.metastore.ds.retry.attempts | The number of times to retry a call to the backing datastore if there were a connection error. (Hive 0.6 and later; deprecated in Hive 0.13.0 – use hive.hmshandler.retry.attempts instead.) | 1 | ||||
hive.metastore.ds.retry.interval | The number of miliseconds between datastore retry attempts. (Hive 0.6 and later; deprecated in Hive 0.13.0 – use hive.hmshandler.retry.interval instead.) | 1000 | ||||
hive.metastore.server.min.threads | Minimum number of worker threads in the Thrift server's pool. (Hive 0.6 and later.) | 200 | ||||
hive.metastore.server.max.threads | Maximum number of worker threads in the Thrift server's pool. (Hive 0.6 and later.) | 100000 since Hive 0.8.110000 |
Warning | ||
---|---|---|
| ||
Configuring auto start for data nucleus is highly recommended. See HIVE-4762 for more details.
|
...
Config Param | Config Value | Comment |
---|---|---|
javax.jdo.option.ConnectionURL |
| Derby database located at hive/trunk/build... |
javax.jdo.option.ConnectionDriverName |
| Derby embeded JDBC driver class |
hive.metastore.uris | not needed since this is a local metastore |
|
hive.metastore.local |
| embeded is local |
hive.metastore.warehouse.dir |
| unit test data goes in here on your local filesystem |
...
In local metastore setup, each Hive Client will open a connection to the datastore and make SQL queries against it. The following config configuration will set up a metastore in a MySQL server. Make sure that the server is accessible from the machines where Hive queries are executed since this is a local store. Also make sure the jdbc JDBC client library is in the classpath of Hive Client.
...
No Format |
---|
hive --service metastore -p <port_num> |
Supported
...
Backend Databases for
...
Metastore
Database | Minimum Supported Version | Name for Parameter Values |
---|---|---|
MySQL | 5.6.17 | mysql |
Postgres | 9.1.13 | postgres |
Oracle | 11g | oracle |
MS SQL Server | 2008 R2 |
...
mssql |
Metastore Schema Consistency and Upgrades
...