zxs / tungsten-replicator

Automatically exported from code.google.com/p/tungsten-replicator
0 stars 0 forks source link

Errors replicating to MongoDB (single server installation) #1106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Trying to configure MySQL extractor to MongoDB on on the same server (single 
server installation).
MySQL works, the error is on Mongo side and I'm not sure what to do.

Followed these instructions: 
https://code.google.com/p/tungsten-replicator/wiki/TRCHeterogeneousReplication#M
ySQL_to_MongoDB_Replication

Exact config:

###Install a MySQL Master

./tools/tpm configure defaults --reset

./tools/tpm configure extractor \
--install-directory=/opt/extractor \
 --datasource-type=mysql \
 --datasource-port=3306 \
 --datasource-mysql-conf=/etc/mysql/my.cnf \
 --datasource-log-directory=/var/lib/mysql \
--java-file-encoding=UTF8 \
--master=quotadeckdev \
--members=quotadeckdev \
--mysql-enable-enumtostring=true \
--mysql-enable-settostring=true \
--mysql-use-bytes-for-string=false \
--replication-user=tungsten \
--replication-password=xxxxxx \
"--property=replicator.filter.replicate.do=quotadeck_dev.user_contact_match" \
--svc-extractor-filters=colnames,pkey \
--start=true

./tools/tpm install
/opt/extractor/tungsten/tungsten-replicator/bin/trepctl services
(all is good) 

###Install a MongoDB Slave

./tools/tpm configure defaults --reset

./tools/tpm configure applier \
--install-directory=/opt/applier \
--datasource-type=mongodb \
--java-file-encoding=UTF8 \
--master=quotadeckdev \
--members=quotadeckdev \
--skip-validation-check=InstallerMasterSlaveCheck \
--svc-parallelization-type=none \
--topology=master-slave \
--rmi-port=10002 \
--master-thl-port=2112 \
--master-thl-host=quotadeckdev \
--thl-port=2113 \
--start=true

./tools/tpm install

#####################################################################
# There are errors with the values provided in the configuration file
#####################################################################
--------------------------------------------------------------------------------
-----------------------------------------------------
ERROR >> Replication service quotadeckdev - applier: Replication service 
allowed pipelines
ERROR >> > Message: Unable to extract from tungsten@quotadeckdev:27017 (NO 
PASSWORD)
ERROR >> > Prompt Class: ReplicationServicePipelines

What version of the product are you using?
MySQL: 5.6
MongoDB: 2.6.8
Tungsten: tungsten-replicator-3.0.0-524

On what operating system?
Ubuntu: 14.04.2 LTS

Original issue reported on code.google.com by st...@quotadeck.com on 12 Mar 2015 at 3:00

GoogleCodeExporter commented 9 years ago
The error indicates that the replicator cannot connect to MongoDB. 
This does not seem to be a replicator bug. Please refer to 
http://docs.continuent.com for the correct way of installing and use the 
discussion group when needing help
http://groups.google.com/group/tungsten-replicator-discuss

Original comment by g.maxia on 12 Mar 2015 at 7:07