2015-05-14 55 views
0

我想在单个主机上安装钨复制器。我的源数据源是MYSQL和目标是红移。 我正在关注http://docs.continuent.com/tungsten-replicator-4.0/deployment-redshift-installation.html以设置复制器。 步骤钨复制器不工作的红移

1)默认配置。

./tools/tpm configure defaults --reset 
./tools/tpm configure alpha \ 
--install-directory=/opt/continuent \ 
--enable-heterogenous-service=true \ 
--members=localhost,localhost \ 
--master=localhost \ 
--java-user-timezone=GMT \ 
--java-file-encoding=UTF8 

2)主站配置(MYSQL)

./tools/tpm configure alpha --hosts=localhost \ 
--replication-user=<> \ 
--replication-password=<> \ 
--property=replicator.filter.pkey.addColumnsToDeletes=true \ 
--property=replicator.filter.pkey.addPkeyToInserts=true 

3)从配置(红移)

./tools/tpm configure alpha --hosts=localhost \ 
--replication-host=redshift.us-east-1.redshift.amazonaws.com \ 
--replication-user=awsRedshiftUser \ 
--replication-password=awsRedshiftPass \ 
--datasource-type=redshift \ 
--batch-enabled=true \ 
--batch-load-template=redshift \ 
--redshift-dbname=dev \ 
--svc-applier-filters=dropstatementdata \ 
--svc-applier-block-commit-interval=10m \ 
--svc-applier-block-commit-size=5 

然后运行TPM安装阿尔法当它给我的错误。

ERROR >> Replication service localhost - alpha: Replication service allowed pipelines 
ERROR >> > Message: Unable to extract from [email protected]:5439 (WITH PASSWORD) 
ERROR >> > Prompt Class: ReplicationServicePipelines 
DEBUG >> Call ConfigureDeploymentHandler:cleanup for config 0 on localhost 
DEBUG >> [INSIDE THREAD] Call ConfigureDeploymentHandler:cleanup for config 0 on localhost 

回答

2

F你尝试,你还必须指定正确的THL端口和复制的作用在同一主机上同时安装复制器。见Docu

尝试添加以下内容到施放:

--master-thl-host=localhost 
--master-thl-port=2112 
--master=localhost 
--members=localhost 
--rmi-port=10002 
--role=slave 
--thl-port=2113 
--skip-validation-check=HostsFileCheck