drill 支持s3数据的查询,同时新版的通过简单配置就可以实现minio 的集成

测试使用docker 运行drill 参考 https://www.cnblogs.com/rongfengliang/p/9846899.html,minio 安装也可以使用docker
minio bucket 创建以及文件上传可以使用UI 或者mc

配置

  • s3 配置说明
{
"type": "file",
"connection": "s3a://app/",
"config": {
"fs.s3a.access.key": "<key>",
"fs.s3a.secret.key": "<secret>",
"fs.s3a.endpoint": "<minio server>",
"fs.s3a.connection.ssl.enabled": "false", // default isn't ssl
"fs.s3a.path.style.access": "true"
},
"workspaces": {
"root": {
"location": "/",
"writable": false,
"defaultInputFormat": null,
"allowAccessOutsideWorkspace": false
},
"tmp": {
"location": "/tmp",
"writable": true,
"defaultInputFormat": null,
"allowAccessOutsideWorkspace": false
}
},
"formats": {
"psv": {
"type": "text",
"extensions": [
"tbl"
],
"delimiter": "|"
},
"csv": {
"type": "text",
"extensions": [
"csv"
],
"delimiter": ","
},
"tsv": {
"type": "text",
"extensions": [
"tsv"
],
"delimiter": "\t"
},
"parquet": {
"type": "parquet"
},
"json": {
"type": "json",
"extensions": [
"json"
]
},
"avro": {
"type": "avro"
},
"sequencefile": {
"type": "sequencefile",
"extensions": [
"seq"
]
},
"csvh": {
"type": "text",
"extensions": [
"csvh"
],
"extractHeader": true,
"delimiter": ","
}
},
"enabled": true
}
  • 查询
select * from s3.`root`.`user.json`
  • minio 添加数据
{"name":"dalong","age":33}
{"name":"dalong","age":33}
{"name":"dalong","age":33}
{"name":"dalong","age":33}
{"name":"dalong","age":33}
{"name":"dalong","age":33}
{"name":"dalong","age":33}
{"name":"dalong","age":33}
{"name":"dalong","age":33}
{"name":"dalong","age":33}

效果


参考资料

https://blog.minio.io/query-minio-datastore-with-apache-drill-dcaf71d0cee5?_branch_match_id=520116032687566918
https://www.cnblogs.com/rongfengliang/p/9846899.html
http://drill.apache.org/docs/s3-storage-plugin/

 
 
 
 

最新文章

  1. 从零开始学 Java - Spring AOP 实现主从读写分离
  2. [Web开发] 在HTML代码里面如何判断IE版本
  3. mysql的约束类型
  4. textarea 在浏览器中固定大小和禁止拖动
  5. [转]oracle中使用set transaction设置事务属性
  6. Leetcode 416. Partition Equal Subset Sum
  7. C++基础知识(1)----文件操作
  8. javaWeb---文件上传(commons-FileUpload组件)
  9. 从头学Qt Quick(2)-- QML语法从一个简单的例子说起
  10. DDD, MVC &amp; Entity Framework
  11. KMP算法_读书笔记
  12. 数据库导出excel表数据
  13. 精华【分布式、微服务、云架构、dubbo+zookeeper+springmvc+mybatis+shiro+redis】分布式大型互联网企业架构!
  14. 【Linux】查看进程号
  15. c语言基础学习01
  16. 笔记:Struts2 拦截器
  17. [Swift]LeetCode110. 平衡二叉树 | Balanced Binary Tree
  18. kafka 暂停消费
  19. MHA-手动Failover流程(传统复制&amp;GTID复制)
  20. window.name跨域实现

热门文章

  1. 20170716xlVba销售明细转销售单据
  2. 基于DOMContentLoaded实现文档加载完成后执行的方法
  3. ssh: connect to host 192.168.11.180 port 22: Connection refused
  4. quartz---(1)
  5. 浅谈musql中using的使用---高性能(三)
  6. PHP:第四章——PHP数组查找,替换,过滤,判断相关函数
  7. linux page table entry struct
  8. Android消息通信 第三方开源项目EventBus 的用法
  9. Flask初级(四)flash在模板中使用静态文件
  10. js取的随机数