【已解决】恢复问题[NOT_FOUND]failed to open file for md5sum /apache-doris-2.1.0-bin-arm64/be/storage/snapshot.....dat

Viewed 27

试了好多遍都不行,下面是最后一遍,里面的名字都是重新起的,在新库中表结构生成了,但是里面没有数据

mysql> CREATE REPOSITORY hdfs1000_repo
-> WITH HDFS
-> ON LOCATION "hdfs://10.0.15.242:8020/dorisbak1000/"
-> PROPERTIES
-> (
-> "fs.defaultFS"="hdfs://10.0.15.242:8020",
-> "hadoop.username" = "root"
-> );
Query OK, 0 rows affected (5.69 sec)

mysql> BACKUP SNAPSHOT demo.d1000
-> TO hdfs1000_repo
-> ON (csvtest)
-> PROPERTIES ("type" = "full");
Query OK, 0 rows affected (0.12 sec)

mysql> SHOW SNAPSHOT ON hdfs1000_repo WHERE SNAPSHOT = "d1000";
+----------+---------------------+--------+
| Snapshot | Timestamp | Status |
+----------+---------------------+--------+
| d1000 | 2024-06-21-16-56-49 | OK |
+----------+---------------------+--------+
1 row in set (0.22 sec)

mysql> RESTORE SNAPSHOT hndzfp.d1000
-> FROM hdfs1000_repo
-> ON ( csvtest )
-> PROPERTIES
-> (
-> "backup_timestamp"="2024-06-21-16-56-49",
-> "replication_num" = "1"
-> );
Query OK, 0 rows affected (0.26 sec)

mysql> SHOW RESTORE\G;
*************************** 1. row ***************************
JobId: 101122
Label: d1000
Timestamp: 2024-06-21-16-56-49
DbName: hndzfp
State: DOWNLOADING
AllowLoad: false
ReplicationNum: 1
ReplicaAllocation: tag.location.default: 1
ReserveReplica: false
ReserveDynamicPartitionEnable: false
RestoreObjs: {
"name": "d1000",
"database": "demo",
"backup_time": 1718960209466,
"content": "ALL",
"olap_table_list": [
{
"name": "csvtest",
"partition_names": [
"csvtest"
]
}
],
"view_list": [],
"odbc_table_list": [],
"odbc_resource_list": []
}
CreateTime: 2024-06-21 16:59:58
MetaPreparedTime: 2024-06-21 17:00:01
SnapshotFinishedTime: 2024-06-21 17:00:04
DownloadFinishedTime: NULL
FinishedTime: NULL
UnfinishedTasks: 101129=11272
Progress: [101129: 0/0]
TaskErrMsg: [101129: (10.0.15.211)[NOT_FOUND]failed to open file for md5sum /opt/soft/doris/apache-doris-2.1.0-bin-arm64/be/storage/snapshot/20240621170001.1.86400/101126/1578684793/020000000000008b3a4406e4a5ed084a2e03e0b47bace393_0.dat]
Status: [OK]
Timeout: 86400
1 row in set (0.00 sec)

1 Answers

版本升级到2.1.3就好了,之前我也这样