www.cnblogs.com/ruiyqinrui

开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞

python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

[注意],当前的测试环境仅仅是一台服务器.

部署测试的tungten版本是2.1.2-xxxx;

Requirements:

mysql配置

To change the Tungsten user to use the new password format complete the following steps

mysql>set session old_passwords=0;

设置二进制日志格式=row;

主mysql端服务器执行命令:

./tools/tungsten-installer --master-slave -a \
  --datasource-type=mysql \
  --master-host=127.0.0.1  \
  --datasource-user=tungsten  \
  --datasource-password=321  \
  --datasource-log-directory=/var/lib/mysql \
  --service-name=byRuiy \
  --home-directory=/root/deploy/mysql \
  --cluster-hosts=127.0.0.1 \
  --thl-port=12500 \
  --rmi-port=11500 \
  --mysql-use-bytes-for-string=false \
  --svc-extractor-filters=colnames,pkey \
  --svc-parallelization-type=none \
  --start-and-report

从mongodb服务器端执行语句:
tools/tungsten-installer --master-slave -a \
  --datasource-type=mongodb \
  --master-host=127.0.0.1  \
  --service-name=byRuiy \
  --home-directory=/root/deploy/mongodb \
  --cluster-hosts=127.0.0.1 \
  --master-thl-port=12500 \
  --thl-port=12600 \
  --rmi-port=11600 \
  --skip-validation-check=InstallerMasterSlaveCheck \
  --svc-parallelization-type=none \
  --start-and-report

 

部署完成后查看效果:

mongo提示符端

mysql命令行提示符端

 

 将tungstenReplicator 安装为系统服务(tungsten服务进程维护控制)详细见 另一篇post

http://www.cnblogs.com/ruiy/p/tungstenProcessControl.html

 

posted on 2014-06-18 09:47  秦瑞It行程实录  阅读(1772)  评论(1编辑  收藏  举报
www.cnblogs.com/ruiyqinrui