# Ld\_prune error writing to /tmp/

**URL:** <https://discuss.hail.is/t/ld-prune-error-writing-to-tmp/766>\
**Category:** Hail Query & hailctl\
**Created:** [November 13, 2018, 12:28pm UTC](https://discuss.hail.is/t/ld-prune-error-writing-to-tmp/766 "2018-11-13T12:28:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathias\_Hansen](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@Mathias\_Hansen](https://discuss.hail.is/u/Mathias_Hansen)\
**Post date:** [November 13, 2018, 12:28pm UTC](https://discuss.hail.is/t/ld-prune-error-writing-to-tmp/766/1 "2018-11-13T12:28:27Z")

</div>

ld\_prune returns following error:

 ![20](https://canada1.discourse-cdn.com/flex036/uploads/hail/original/1X/096609753029ec85c44355f6e911747fef84b847.png)  
 ![54](https://canada1.discourse-cdn.com/flex036/uploads/hail/original/1X/1ef5f0771cefb8917f344b2864d694ab3adf12b6.png)  
Is it supposed to write to a file in /tmp/?  
KR M

---

<div class="post-metadata">

**Author:** ![tpoterba](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/tpoterba/32/61_2.png) [@tpoterba](https://discuss.hail.is/u/tpoterba)\
**Post date:** [November 13, 2018, 1:45pm UTC](https://discuss.hail.is/t/ld-prune-error-writing-to-tmp/766/2 "2018-11-13T13:45:53Z")

</div>

Side note: can you paste the messages as text instead of images in the future? That will make them searchable for others in the future who have these problems.

The problem here has to do with the hail temporary directory: [https://hail.is/docs/0.2/api.html#hail.init](https://hail.is/docs/0.2/api.html#hail.init)

Running on a cluster with HDFS, the default file scheme is HDFS, so `/tmp` is really `hdfs:///tmp`. This means that `/tmp` is safe on both HDFS-enabled Spark clusters and in local mode, so that’s why we choose it as a default.

In your case, though, you may need to set the temp dir to something else. In particular, it needs to be a network-visible file system.
