druid - Druid - 防止在每次 CSV 摄取时创建新分区
问题描述
我有摄取规范
"rollup": false,
"segmentGranularity" : "day",
"queryGranularity" : {
"type": "duration",
"duration": 60000
}
}
},
"ioConfig" : {
"type" : "index",
"inputSource" : {
"type" : "local"
},
"inputFormat": {
"type": "csv"
},
"appendToExisting": true
}
解决方案
分段是不可变的,因此您无法在摄取时避免这种情况。(德鲁伊不会写入现有段。)。不过,您可以稍后压缩这些片段,例如参见https://druid.apache.org/docs/latest/tutorials/tutorial-compaction.html。在较新的版本中,您还可以启用自动压缩。例如,请参阅https://docs.imply.io/3.0/on-prem/manage-data/compaction。
推荐阅读
- java - 如何在 GCP 上从 Java 代码执行 shell 命令
- python - 访问数据库时出现错误
- react-native - 如何处理反应导航自定义标题返回按钮
- python - 从具有匹配条件的集合中移除项目
- node.js - 通过 Codepipeline 在 Docker 上部署 Beanstalk 未完成
- php - 找不到方法商店和帖子 [LARAVEL]
- r - 使用 ggplot 在 R 中创建漂亮的叠加直方图
- javascript - 监听输入时按下的特定键 - ReactJS
- laravel - 如何在显示 laravel 视图中使用 Yajra 创建数据表?
- html - 无法启动 bigbluebutton html5。我尝试使用“meteor npm install”安装“npm start”,但它不起作用