Dm部署报错

dm 使用 DM-Ansible安装之后,可以从源端的mysql拉取数据到dm的work目录下。 但是不能从work到目标端的tidb中。 使用dm-ctl查看状态的时候,报错 [tidb@localhost dm-ansible]$ dmctl -master-addr 10.8.181.146 parse cmd flags err: specify master addr 10.8.181.146: address 10.8.181.146: missing port in address [tidb@localhost dm-ansible]$

查看dm-master状态 [tidb@localhost dm-ansible]$ ps -ef|grep dm-master tidb 25496 1 0 10:51 ? 00:00:00 bin/dm-master --master-addr=:8261 -L=info --config=conf/dm-master.toml --log-file=/data/dm/log/dm-master.log

日志/data/dm/log/dm-master.log中报错

[2019/08/29 10:54:47.541 +08:00] [ERROR] [server.go:1298] [“create FetchDDLInfo stream”] [worker=10.8.181.147:8263] [error="[code=38008:class=dm-master:scope=internal:level=high] grpc request error: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp 10.8.181.147:8263: connect: connection refused”"] [2019/08/29 10:54:47.541 +08:00] [ERROR] [server.go:1298] [“create FetchDDLInfo stream”] [worker=10.8.181.148:8262] [error="[code=38008:class=dm-master:scope=internal:level=high] grpc request error: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp 10.8.181.148:8262: connect: connection refused”"]

看报错的话,这边加上端口登陆dm master即可。