kettle安装

kettle安装

  • 安装java环境

    mkdir /data/java
    ln -s /data/java/ /opt/
    cd /opt/java
    
    tar zxvf jdk-8u171-linux-x64.tar.gz
    
    #java
    export JAVA_HOME=/opt/java/jdk1.8.0_171
    export JRE_HOME=$JAVA_HOME/jre
    export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
    export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
    
    source /etc/profile
    java -version
    
  • 解压安装kettle

    #下载安装webkitgtk(二选一)
    #外网下载
    wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/matthewdva:/build:/EPEL:/el7/RHEL_7/x86_64/webkitgtk-2.4.9-1.el7.x86_64.rpm
    
    yum -y install webkitgtk-2.4.9-1.el7.x86_64.rpm
    
    cd /opt
    unzip pdi-ce-9.4.0.0-343.zip
    
    mkdir /data/kettle
    mv data-integration/ /data/kettle/
    ln -s /data/kettle/data-integration/ /opt/kettle/
    
    # 生成加密密码
    cd /opt/kettle/data-integration
    ./encr.sh  -carte asd123456
    
    
    # 修改密码配置文件
    vim /opt/kettle/data-integration/pwd
    
    # Please note that the default password (cluster) is obfuscated using the Encr script provided in this release
    # Passwords can also be entered in plain text as before
    # 
    #cluster: OBF:1v8w1uh21z7k1ym71z7i1ugo1v9q 
    cluster: OBF:thhdhdfhafasdfagaghfhgfjfkghggdfgdfe
    
  • 设置开机自启

    cat /usr/lib/systemd/system/kettle.service
    [Unit]
    Description=kettle
    After=network.target syslog.target
    [Service]
    PrivateTmp=true
    Restart=always
    Type=simple
    Environment="JAVA_HOME=/opt/java/jdk1.8.0_171"
    #WorkingDirectory=/data/cyxnsyh/
    ExecStart=/opt/kettle/data-integration/carte.sh 192.168.2.186 8080
    #ExecStop=/usr/bin/kill -15  
    [Install]
    WantedBy=multi-user.target
    
    
    systemctl daemon-reload
    systemctl start kettle
    
  • 防火墙放行

    firewall-cmd --zone=public --permanent --add-port=8080/tcp
    firewall-cmd --reload
    
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值