小编Art*_*sia的帖子

无法通过 API 创建 Druid 摄取任务

当我将 JSON 摄取规范发送到 Druid 霸主 API 时,我得到以下响应:

HTTP/1.1 400 Bad Request
Content-Type: application/json
Date: Wed, 25 Sep 2019 11:44:18 GMT
Server: Jetty(9.4.10.v20180503)
Transfer-Encoding: chunked

{
    "error": "Instantiation of [simple type, class org.apache.druid.indexing.common.task.IndexTask] value failed: null"
}
Run Code Online (Sandbox Code Playgroud)

如果我将index任务类型更改为index_parallel,那么我会得到:

{
    "error": "Instantiation of [simple type, class org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexSupervisorTask] value failed: null"
}
Run Code Online (Sandbox Code Playgroud)

通过 Druid 的 Web UI 使用相同的摄取规范可以正常工作。

这是我使用的摄取规范(稍微修改以隐藏敏感数据):

{
    "type": "index_parallel",
    "dataSchema": {
      "dataSource": "daily_xport_test",
      "granularitySpec": {
        "type": "uniform",
        "segmentGranularity": "MONTH",
        "queryGranularity": "NONE",
        "rollup": false
      },
      "parser": { …
Run Code Online (Sandbox Code Playgroud)

druid

3
推荐指数
1
解决办法
1437
查看次数

标签 统计

druid ×1