我正在尝试在单个主机上安装钨复制器。我的源数据源是MYSQL,目标是redshift。 我正在关注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)从属配置(Redshift)
./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 install alpha时,它会给我错误。
ERROR >> Replication service localhost - alpha: Replication service allowed pipelines
ERROR >> > Message: Unable to extract from redshift@redshift.us-east-1.redshift.amazonaws.com: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
答案 0 :(得分:2)
如果您尝试在同一主机上安装两个复制器,则还必须指定正确的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