kettle启动 carte

执行命令为:

nohup ./carte.sh pwd/carte-config-master-8080.xml &
 

 

配置文件中写入IP(如果是阿里云的服务器这里输入内网IP即可)

  <slaveserver>
    <name>master1</name>
    <hostname>192.168.31.81</hostname>
    <port>8080</port>
    <master>Y</master>
  </slaveserver>


</slave_config>

在Spoon中新建子服务器  

kettle启动 carte

作业 job ,share一下,如果job上没有,保存,再打开看看,实在不行,job上也新建子服务器

 

执行作业到远程机器上

kettle启动 carte

 

如果中文出现乱码,那么在数据库连接上指定编码为 characterEncoding    utf8

kettle启动 carte

 

 

<slave_config>
  <!-- 
     Document description...
     
     - masters: You can list the slave servers to which this slave has to report back to.
                If this is a master, we will contact the other masters to get a list of all the slaves in the cluster.

     - report_to_masters : send a message to the defined masters to let them know we exist (Y/N)

     - slaveserver : specify the slave server details of this carte instance.
                     IMPORTANT : the username and password specified here are used by the master instances to connect to this slave.

  --> 

  <slaveserver>
    <name>master1</name>
    <hostname>ip</hostname>
    <port>8080</port>
    <username>username</username>
    <password>password</password>
    <master>Y</master>
  </slaveserver>

  <max_log_lines>500</max_log_lines>
  <max_log_timeout_minutes>1440</max_log_timeout_minutes>
  <object_timeout_minutes>1440</object_timeout_minutes>
</slave_config>