metadata时通过JPOX ORM来维护的
metadata database
local derby
javax.jdo.option.ConnectionURL
javax.jdo.option.ConnectionDriverName
RDBMS
javax.jdo.option.ConnectionURL jdbc:mysql://host/db?createDatabaseIfNotExist=true
javax.jdo.option.ConnectionDriverName com.mysql.jdbc.Driver
javax.jdo.option.ConnectionUserName
javax.jdo.option.ConnectionPassword
metadata server
如果使用的时独立的metadata服务
服务器
javax.jdo.option.ConnectionURL
javax.jdo.option.ConnectionDriverName
javax.jdo.option.ConnectionUserName
javax.jdo.option.ConnectionPassword
hive.metastore.warehouse.dir
hive --service metastore -p <port_num>
客户端
hive.metastore.uris thrift://host_name:port
hive.metastore.local false
hive.metastore.warehouse.dir hdfs_path
通用配置
hive.metastore.port 9083
hive.metastore.server.min.threads 200
hive.metastore.server.max.threads 100000