zoukankan      html  css  js  c++  java
  • StreamSets 部署 Pipelines 到 SDC Edge

    可以使用如下方法:

    • 下载edge 运行包并包含pipeline定义文件.
    • 直接发布到edge 设备.
      在data colelctor 机器配置并配置了edge server 地址(主要需要网络可访问)
    • 导出edge pipeline 配置,并移动到edge 设备

    直接发布pipeline

    可以通过ui 部署

    发布单个pipeline

    • Open the edge pipeline in the pipeline canvas.
    • On the General tab, set the Data Collector Edge URL property to the URL of the SDC Edge instance that you want to deploy the pipeline to.
    • The default URL is http://localhost:18633.
    • In the top toolbar, click the Publish Pipeline to Data Collector Edge icon:

      Data Collector publishes the pipeline to the <sdcedge_home>/data/pipelines directory on the edge device where SDC Edge is installed.

    发布多个pipeline

    • On the General tab of each pipeline that you want to publish, set the Data Collector Edge URL property to the URL of the SDC Edgeinstance that you want to deploy the pipeline to.
    • The default URL is http://localhost:18633.
    • From the Data Collector Home page, select multiple pipelines from the list, click the More icon, and then click Publish Pipelines to Data Collector Edge.
      Data Collector publishes the pipelines to the <sdcedge_home>/data/pipelines directory on the edge device where SDC Edge is installed.

    导出pipeline

    • Open the edge pipeline in the pipeline canvas.
    • From the Properties panel, click the More icon () to view the pipeline configuration REST response data:
    • The browser displays the pipeline configuration in JSON format.
    • In the browser, copy the complete contents of the pipeline configuration and save it to a text file named pipeline.json.
    • In the address bar of the browser, type ?get=info after the pipeline ID.
      For example:

         https://localhost:18630/rest/v1/pipeline/EdgeSending76d9d551-217d-4b44-8b03-8fbe444962c5?get=info
    • The browser displays the pipeline information in JSON format.

    • In the browser, copy the complete contents of the pipeline information and save it to a text file named info.json.
    • On the edge device where SDC Edge is installed, create a folder named with the pipeline ID in the following directory:

      <SDCEdge_home>/data/pipelines

      For example:

      <SDCEdge_home>/data/pipelines/EdgeSending76d9d551-217d-4b44-8b03-8fbe444962c5 
    • Copy the pipeline.json and info.json files that you created for the pipeline into this folder.
    • Now you can start and manage the pipeline on SDC Edge as described in Sending Commands to SDC Edge.
      If you modify the same pipeline in Data Collector, view the pipeline configuration REST response data and then copy the updated data into the existing pipeline.json in the SDC Edge installation. You do not need to update the info.json file after you originally create it in the pipeline folder.

    参考资料

    https://streamsets.com/documentation/datacollector/latest/help/datacollector/UserGuide/Edge_Mode/EdgePipelines_Deploy.html#concept_ldf_ycf_3db

  • 相关阅读:
    SSM框架——详细整合教程(Spring+SpringMVC+MyBatis)
    简单的使用SLF4J门面和log4j
    详细的Log4j使用教程
    java的Mybatis动态代理方式(二)
    java的一个基础的Mybatis例子(一)
    java的注解学习
    ArrayList输出的几种方法
    自己写的一个java链接数据库的类
    ipv4的TCP的几个状态 (SYN, FIN, ACK, PSH, RST, URG)
    tomcat的CATALINA_HOME环境变量可以不用设置
  • 原文地址:https://www.cnblogs.com/rongfengliang/p/9515939.html
Copyright © 2011-2022 走看看