2015-05-14 61 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