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
    

你可能感兴趣的:(linux,linux)