• 全文完 使用kettle建立一个警报 邮件 企业微信推送平台


             

    安装jdk

    版本是 jdk-8u202-windows-x64.exe 一路next 没有啥设置

             

    下载 拷贝 kettle

    从稳定的角度使用的kettle 7这个版本 pdi-ce-7.1.0.0-1.zip

             

    部署拷贝到 服务器

    C:okpdi-ce-7.1.0.0-1

             

    拷贝sqlserver,oracle ,mysql驱动到 kettle目录

    jtds-1.3.1.jar

    ojdbc8.jar

    复制路径

    C:UsershuangliangmouAppDataRoamingJetBrainsDataGrip2021.1jdbc-driversOracle21.1.0.0ojdbc8.jar

             

    mysql-connector-java-5.1.45-bin.jar

             

    资源库连接

             

    资源库建立

             

    下面开始正式使用了

             

    建立一个 转换

    快递取件超时提醒

    Sql如下:

    select sjrname +':你好!你的快递'+barcode +'已经送到缙云山蒲生活门卫'+

    cast(DATEDIFF (DAY,receivetime,getdate()) as varchar)

    +'天了;收件时间:'+

    CONVERT(varchar(100), receivetime, 20)

    +'; 请及时领取,库位:'+kuwei as sendcontent, sjrno senduser

    from kd_list x where sendtime is null and DATEDIFF ("d",receivetime,getdate())>3

    order by receivetime

     提取的数据如下

           

    创建一个job 用于定时执行,

    中间的 转换 为上步骤的成果

             

     下面生成定时执行 监控平台

    Carte 配置文件

    D:pdi-ce-7.1.0.0-1data-integrationpwdcarte-config-master-8080.xml

    <slave_config>

    <slaveserver>

    <name>master1</name>

    <hostname>localhost</hostname>

    <port>8080</port>

    <username>cluster</username>

    <password>cluster</password>

    <master>Y</master>

    </slaveserver>

    </slave_config>

           

    运行 Carte

    cd D:pdi-ce-7.1.0.0-1data-integration

    Carte.bat pwd/carte-config-master-8080.xml

           

    查看监控平台

    http://127.0.0.1:8080/kettle/status/

    用户名/密码 cluster

    http://10.8.1.14:8080/kettle/status/

    给job配置 远程carte 服务

           

           

    (全文完)

  • 相关阅读:
    python flask学习笔记
    语音识别2 -- Listen,Attend,and Spell (LAS)
    语音识别 1--概述
    keras中seq2seq实现
    ResNet模型
    Bytes类型
    Python操作文件
    Pyhon基本数据类型
    ping
    find
  • 原文地址:https://www.cnblogs.com/hlm750908/p/15108337.html
Copyright © 2020-2023  润新知