执行命令为:
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中新建子服务器
作业 job ,share一下,如果job上没有,保存,再打开看看,实在不行,job上也新建子服务器
执行作业到远程机器上
如果中文出现乱码,那么在数据库连接上指定编码为 characterEncoding utf8
<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>
Kettle 内存设置
如果在运行过程中,报OOM错误,可以在Spoon.bat / Spoon.sh 文件里面,修改下面的值,调整允许Kettle使用的jvm内存的大小
PENTAHO_DI_JAVA_OPTIONS=”-Xms1024m -Xmx2048m -XX:MaxPermSize=256m”
还可以在里面添加其它JVM参数。