HMS 压力分流设置
HMS 压力分流设置
hive-site.xml 配置:
hive.metastore.uris=thrift://Node01:9083,thrift://Node02:9083,thrift://Node03:9083
应用连接单独配置:
thrift://IT-CDH-Node04:9083,thrift://IT-CDH-Node05:9083,thrift://IT-CDH-Node06:9083
高级配置优化参数
maxConnectionsPerPartition 建议设置成 30 处理连接数
javax.jdo.option.ConnectionPoolMaxSize 最大连接数 50
javax.jdo.option.ConnectionPoolMinSize 最小空闲连接 10
hive.metastore.cache.enabled 设置 true
hive.metastore.cache.expiry.seconds 缓存过期时间 3600
hive.stats.autocollect false 关闭cbo
datanucleus.connectionPool.maxPoolSize=10 默认值为10,改成50