# Save figure on gcloud hail dataproc

**URL:** https://discuss.hail.is/t/save-figure-on-gcloud-hail-dataproc/1791
**Category:** Hail Query & hailctl
**Created:** [November 16, 2020, 3:07pm UTC](https://discuss.hail.is/t/save-figure-on-gcloud-hail-dataproc/1791 "2020-11-16T15:07:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lilliank](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lilliank](https://discuss.hail.is/u/lilliank)
#### Post date: [November 16, 2020, 3:07pm UTC](https://discuss.hail.is/t/save-figure-on-gcloud-hail-dataproc/1791/1 "2020-11-16T15:07:45Z")

</div>

Hello,

I am having trouble saving a pdf on a gcloud hail dataproc. This is the command I am using:

```auto
plt.savefig('/tmp/filename.pdf')
hl.hadoop_copy('file:///tmp/filename.pdf', 'gs://ukb-gt/filename.pdf')

```

The same hl.hadoop\_copy command to save a numpy array using [np.save](http://np.save/).

I am not getting any error, but no pdf is appearing. Thanks!

---

<div class="post-metadata">

### Author: ![johnc1231](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/johnc1231/32/286_2.png) [@johnc1231](https://discuss.hail.is/u/johnc1231)
#### Post date: [November 16, 2020, 3:43pm UTC](https://discuss.hail.is/t/save-figure-on-gcloud-hail-dataproc/1791/2 "2020-11-16T15:43:54Z")

</div>

I wasn’t able to replicate this problem. I just used hadoop copy the same way you did on a matplotlib generated pdf and it seemed to work. Maybe try making an example plot and copying it to your personal bucket, to see if it’s somehow something about the settings of this particular project / bucket that is causing a problem? You can also send us your hail log file and we can see if anything printed in there about failing to copy.

---

<div class="post-metadata">

### Author: ![lilliank](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lilliank](https://discuss.hail.is/u/lilliank)
#### Post date: [November 16, 2020, 4:25pm UTC](https://discuss.hail.is/t/save-figure-on-gcloud-hail-dataproc/1791/3 "2020-11-16T16:25:56Z")

</div>

I restarted the notebook and it started working. Thanks for the help!
