为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
- 【TiDB 版本】:v4.0.5
- 【问题描述】:
tidb-lightning导入数据报错
$ cat tidb-lightning.toml
[mydumper]
data-source-dir = “/home/tidb/test-rds-data/”
[tidb]
host = “10.0.59.176”
port = 4000
user = “root”
password = “vPT3r7&xxxxxxxd0xic”
$ ll /home/tidb/test-rds-data/
total 84
-rw-r–r-- 1 tidb tidb 70776 Nov 18 10:59 merchant_0.merchant_account_record_0.0.sql
-rw-r–r-- 1 tidb tidb 1997 Nov 18 10:59 merchant_0.merchant_account_record_0-schema.sql
-rw-r–r-- 1 tidb tidb 101 Nov 18 10:59 merchant_0-schema-create.sql
-rw-r–r-- 1 tidb tidb 514 Nov 18 10:59 metadata
$ ./tidb-lightning -config tidb-lightning.toml
Verbose debug logs will be written to /tmp/lightning.log.2020-11-18T11.21.34+0800
[2020/11/18 11:21:34.034 +08:00] [INFO] [client.go:166] ["[pd] create pd client with endpoints"] [pd-address="[10.0.59.178:2379]"]
[2020/11/18 11:21:34.035 +08:00] [INFO] [base_client.go:236] ["[pd] update member urls"] [old-urls="[http://10.0.59.178:2379]"] [new-urls="[http://10.0.59.174:2379,http://10.0.59.175:2379,http://10.0.59.178:2379]"]
[2020/11/18 11:21:34.035 +08:00] [INFO] [base_client.go:252] ["[pd] switch leader"] [new-leader=http://10.0.59.175:2379] [old-leader=]
[2020/11/18 11:21:34.036 +08:00] [INFO] [base_client.go:102] ["[pd] init cluster id"] [cluster-id=6864420848409801722]
[2020/11/18 11:21:34.036 +08:00] [INFO] [client.go:166] ["[pd] create pd client with endpoints"] [pd-address="[10.0.59.178:2379]"]
[2020/11/18 11:21:34.037 +08:00] [INFO] [base_client.go:236] ["[pd] update member urls"] [old-urls="[http://10.0.59.178:2379]"] [new-urls="[http://10.0.59.174:2379,http://10.0.59.175:2379,http://10.0.59.178:2379]"]
[2020/11/18 11:21:34.037 +08:00] [INFO] [base_client.go:252] ["[pd] switch leader"] [new-leader=http://10.0.59.175:2379] [old-leader=]
[2020/11/18 11:21:34.037 +08:00] [INFO] [base_client.go:102] ["[pd] init cluster id"] [cluster-id=6864420848409801722]
Error: restore table merchant_0
.merchant_account_record_0
failed: rpc error: code = Unavailable desc = connection error: desc = “transport: Error while dialing dial tcp: missing address”
tidb lightning encountered error: restore table merchant_0
.merchant_account_record_0
failed: rpc error: code = Unavailable desc = connection error: desc = “transport: Error while dialing dial tcp: missing address”