tidb-lightling 导入数据失败

image

nohup没有报错:

导入日志有一个报错:

[checkpoints.go:1045] [“open checkpoint file failed, going to create a new one”]
这个报错的意思是系统会自动创建吗

tmp目录下没有生成新文件/tmp/tidb_lightning_checkpoint.pb

导入日志的前半部分:


/tmp目录777权限,应该不是权限的问题吧

执行tidb-lightning-ctl --config ligt-csv-t1.toml --checkpoint-error-destroy=all


执行tidb-lightning-ctl --config ligt-csv-t1.toml --checkpoint-error-destroy=all以后,没有报错了,但是还是没有数据。

mysql> use test;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select * from t1;
Empty set (0.00 sec)

还是没有看到checpoint文件,咋回事呢?

tidb_lightning_checkpoint ,这个数据库lighting会自动创建吗,我手工创建了一个,还是一样的报错。

checpoint这么配置的,是不是哪里配的不对

从lightning日志看,lightning运行成功了,checkpoint那个提升没有影响。
你检查下导入目标库的连接信息有没有配置正确,是不是配置到别的库了?
或者data source目录是不是没有文件?

确认过,没错

数据肯定有的

checpoint没有生成文件,是正常的吗?

难道checpoint是临时文件?,执行成功了就自动删除了吗?

看日志的确是自动清除了,那就奇了怪了,看来的确不是checkpoint的问题。

select * from test.t1看看
检查t1的csv文件行数

和checkpoint没关系。
pattern的问题,数据文件被过滤掉了