druid的yml配置 给个示例
时间: 2023-02-08 22:27:22 浏览: 169
Druid的YAML配置文件示例如下:
```
# Druid common config
druid:
# Zookeeper host
zookeeper:
host: localhost
port: 2181
# Druid metadata storage
metadata:
storage:
type: mysql
connector:
host: localhost
port: 3306
user: druid
password: druid
database: druid
# Druid coordinator node
coordinator:
# Number of replicants
replicant: 1
# Druid historical node
historical:
# Number of replicants
replicant: 1
# Druid overlord node
overlord:
# Number of replicants
replicant: 1
# Druid indexing service
indexing:
service:
name: druid-indexer
tasks:
# Number of replicants
replicant: 1
# Druid broker node
broker:
# Number of replicants
replicant: 1
# Druid middle manager node
middleManager:
# Number of replicants
replicant: 1
# Druid JVM config
jvm:
-Xmx1g
-Duser.timezone=UTC
-Dfile.encoding=UTF-8
-Djava.io.tmpdir=var/tmp
```
请注意,这只是一个简单的示例,您可能需要根据您的实际情况进行修改。
阅读全文