2020-04-06 03:09:00 -04:00
|
|
|
|
<!-- toc -->
|
2021-01-12 22:51:04 -05:00
|
|
|
|
|
|
|
|
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
|
|
|
<ins class="adsbygoogle"
|
|
|
|
|
style="display:block; text-align:center;"
|
|
|
|
|
data-ad-layout="in-article"
|
|
|
|
|
data-ad-format="fluid"
|
|
|
|
|
data-ad-client="ca-pub-8828078415045620"
|
|
|
|
|
data-ad-slot="7586680510"></ins>
|
|
|
|
|
<script>
|
|
|
|
|
(adsbygoogle = window.adsbygoogle || []).push({});
|
|
|
|
|
</script>
|
|
|
|
|
|
2020-04-06 03:09:00 -04:00
|
|
|
|
## Peons
|
|
|
|
|
### 配置
|
2020-04-08 02:20:07 -04:00
|
|
|
|
对于Apache Druid Peon配置,可以参见 [Peon查询配置](../Configuration/configuration.md) 和 [额外的Peon配置](../Configuration/configuration.md)
|
2020-04-06 03:09:00 -04:00
|
|
|
|
|
|
|
|
|
### HTTP
|
2020-04-08 02:20:07 -04:00
|
|
|
|
对于Peon的API接口,详见 [Peon API](../Operations/api.md#Peon)
|
2020-04-06 03:09:00 -04:00
|
|
|
|
|
|
|
|
|
Peon在单个JVM中运行单个任务。MiddleManager负责创建运行任务的Peon。Peon应该很少(如果为了测试目的)自己运行。
|
|
|
|
|
|
|
|
|
|
### 运行
|
|
|
|
|
Peon应该很少独立于MiddleManager,除非出于开发目的。
|
|
|
|
|
|
2020-05-16 03:57:49 -04:00
|
|
|
|
```json
|
2020-04-06 03:09:00 -04:00
|
|
|
|
org.apache.druid.cli.Main internal peon <task_file> <status_file>
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
任务文件包含任务JSON对象。状态文件指示将输出任务状态的位置。
|