lightning 报错

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

  • 【TiDB 版本】:4.0.7
  • 【问题描述】:
    Error: restore table epay.ep_pos failed: rpc error: code = Unavailable desc = connection error: desc = “transport: Error while dialing dial tcp: missing address”
    tidb lightning encountered error: restore table epay.ep_pos failed: rpc error: code = Unavailable desc = connection error: desc = “transport: Error while dialing dial tcp: missing address”

[root@tidb-129-224 bin]# cat tidb-lightning.toml
[lightning]
level = “info”
file = “/tmp/lightning.log”
max-size = 100
max-days = 10
max-backups = 10
index-concurrency = 2
table-concurrency = 6
io-concurrency = 5

[checkpoint]
enable = false

[mydumper]
strict-format = true
no-schema = false
data-source-dir = “/u01/bak/2020112002/”

[tidb]
host = “10.96.129.223”
port = 4000
user = “root”
password = “xiebin1204”
pd-addr = “10.96.129.221:2379”
status-port = 10080

表结构导入了但是数据没有导入

这个 rpc error 是没有设置 tikv-importer.addr 的原因。

如果不设置 tikv-importer.backend 的话,默认是使用 importer , 所以需要启动 tikv-importer 并在 lightning 中指定 importer 的地址。

如果想使用 local backend 或者 tidb backend 的话,麻烦在 config.toml 里面添加一下 backend 那个字段