# Hdfs file missing (snapshot)

**URL:** <https://discuss.elastic.co/t/hdfs-file-missing-snapshot/311983>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [August 12, 2022, 7:35am UTC](https://discuss.elastic.co/t/hdfs-file-missing-snapshot/311983 "2022-08-12T07:35:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yousanghz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yousanghz/32/98666_2.png) [@yousanghz](https://discuss.elastic.co/u/yousanghz)\
**Post date:** [August 12, 2022, 7:35am UTC](https://discuss.elastic.co/t/hdfs-file-missing-snapshot/311983/1 "2022-08-12T07:35:19Z")

</div>

my snapshot:

```auto
{
  "hdfs_repository_ccres": {
    "type": "hdfs",
    "settings": {
      "path": "/user/elasticsearch/snapshots",
      "uri": "hdfs://master1:8020/"
    }
  }
}

```

when i use

```auto
GET _snapshot/hdfs_repository_ccres/_all

```

get

```auto

{
  "error": {
    "root_cause": [
      {
        "type": "snapshot_missing_exception",
        "reason": "[hdfs_repository_ccres:short-video-production-2019-v2-snapshot1559067304953/uZyUEl-YT7eUBotTzsgM7g] is missing"
      }
    ],
    "type": "snapshot_exception",
    "reason": "[hdfs_repository_ccres:short-video-production-2019-v2-snapshot1559067304953/uZyUEl-YT7eUBotTzsgM7g] Snapshot could not be read",
    "caused_by": {
      "type": "snapshot_missing_exception",
      "reason": "[hdfs_repository_ccres:short-video-production-2019-v2-snapshot1559067304953/uZyUEl-YT7eUBotTzsgM7g] is missing",
      "caused_by": {
        "type": "no_such_file_exception",
        "reason": "Blob [snap-uZyUEl-YT7eUBotTzsgM7g.dat] does not exist"
      }
    }
  },
  "status": 500
}

```

---

<div class="post-metadata">

**Author:** ![yousanghz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yousanghz/32/98666_2.png) [@yousanghz](https://discuss.elastic.co/u/yousanghz)\
**Post date:** [August 12, 2022, 7:38am UTC](https://discuss.elastic.co/t/hdfs-file-missing-snapshot/311983/2 "2022-08-12T07:38:40Z")

</div>

> [@yousanghz](#):
>
> ```auto
> GET _snapshot/hdfs_repository_ccres/_all
> 
> ```

es version: 5.5.0

---

<div class="post-metadata">

**Author:** ![yousanghz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yousanghz/32/98666_2.png) [@yousanghz](https://discuss.elastic.co/u/yousanghz)\
**Post date:** [August 30, 2022, 8:26am UTC](https://discuss.elastic.co/t/hdfs-file-missing-snapshot/311983/3 "2022-08-30T08:26:07Z")

</div>

Any response is valuable

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [August 30, 2022, 1:37pm UTC](https://discuss.elastic.co/t/hdfs-file-missing-snapshot/311983/4 "2022-08-30T13:37:21Z")

</div>

It looks like `snap-uZyUEl-YT7eUBotTzsgM7g.dat` is missing in HDFS. It's hard to say why without more information though. Is there anything interesting in your log files (on any Elasticsearch nodes or the Hadoop namenode or data nodes)? Is it possible that someone manually deleted it from HDFS? Here is where that error comes from in the code: [elasticsearch/HdfsBlobContainer.java at v5.5.0 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/blob/v5.5.0/plugins/repository-hdfs/src/main/java/org/elasticsearch/repositories/hdfs/HdfsBlobContainer.java#L98). But that is a _very_ old version and that code looks different now. I would upgrade if at all possible.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 27, 2022, 1:37pm UTC](https://discuss.elastic.co/t/hdfs-file-missing-snapshot/311983/5 "2022-09-27T13:37:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
