首页 > 数据库技术 > 详细

streamsets mongodb destinations 使用

时间:2018-08-21 13:05:16      阅读:664      评论:0      收藏:0      [点我收藏+]

测试集成了directory(excel) 以及redis && field splitter 组件

pipeline flow

技术分享图片

docker-compose 配置

redis 服务&& streamsets

version: "3"
services:
   sets:
     image: streamsets/datacollector 
     volumes:
     - "./ms/data:/data"
     - "./ms/logs:/logs"
     - "./ms/tmp:/tmp"
     ports:
     - "8000:8000"
     - "18630:18630"
   redis:
     image: redis
     ports:
     - "6379:6379"
   mongodb:
     image: mongo
     ports:
     - "27017:27017"

directory 配置

参考https://www.cnblogs.com/rongfengliang/p/9509467.html 使用了excel 格式
excel 格式
技术分享图片

field splitter

技术分享图片

添加expression Evaluator 配置

添加crud header
技术分享图片

mongodb 配置

技术分享图片

运行&&效果

  • 运行
    技术分享图片
  • mongodb
    技术分享图片

参考资料

https://streamsets.com/documentation/datacollector/latest/help/datacollector/UserGuide/Destinations/Redis.html#concept_ktc_gw2_gw
https://github.com/rongfengliang/streamsets-demos

streamsets mongodb destinations 使用

原文:https://www.cnblogs.com/rongfengliang/p/9510710.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!