用于将Windows预取快速导入Elasticsearch的库。
prefetch2es的Python项目详细描述
预取2ES
将Windows预取(.pf)导入Elasticsearch
预取2es使用Rust库pyprefetch-rs。在
Note: Nov 11, 2019
Moved main development location to gitlab
使用
^{pr2}$或者
fromprefetch2es.prefetch2esimportprefetch2esif__name__=='__main__':filepath='/path/to/your/file.pf'prefetch2es(filepath)
选项
--host:
ElasticSearch host address
(default: localhost)
--port:
ElasticSearch port number
(default: 9200)
--index:
Index name
(default: prefetch2es)
--type:
Document-type name
(default: prefetch2es)
示例
$ prefetch2es /path/to/your/file.pf --host=localhost --port=9200 --index=foo --type=bar
if__name__=='__main__':prefetch2es('/path/to/your/file.pf',host=localhost,port=9200,index='foo',type='bar')
安装
通过pip
$ pip install prefetch2es
prefetch2es的源代码托管在GitHub上,您可以从这个存储库(https://github.com/sumeshi/prefetch2es)下载、派生和查看它。在
请报告问题和功能请求。:寿司::寿司::寿司:
许可证
prefetch2es是在MIT许可证下发布的。在
由pyprefetch-rs驱动。在
- 项目
标签: