# Importing hail table from remote location

**URL:** <https://discuss.hail.is/t/importing-hail-table-from-remote-location/1365>\
**Category:** Hail Query & hailctl\
**Created:** [April 6, 2020, 6:43pm UTC](https://discuss.hail.is/t/importing-hail-table-from-remote-location/1365 "2020-04-06T18:43:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@scott](https://discuss.hail.is/u/scott)\
**Post date:** [April 6, 2020, 6:43pm UTC](https://discuss.hail.is/t/importing-hail-table-from-remote-location/1365/1 "2020-04-06T18:43:09Z")

</div>

Hi!

I’m wondering if it is possible to import and work with a ht that is hosted remotely with a local installation of Hail. Is this possible, or does it require working entirely on the cloud or downloading the ht?

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:** [April 6, 2020, 6:51pm UTC](https://discuss.hail.is/t/importing-hail-table-from-remote-location/1365/2 "2020-04-06T18:51:05Z")

</div>

Where is the hail table hosted? If it’s in Google Cloud, I think installing the Google Cloud Hadoop Connector should be enough to work with remote data locally.

[https://cloud.google.com/dataproc/docs/concepts/connectors/cloud-storage](https://cloud.google.com/dataproc/docs/concepts/connectors/cloud-storage)

---

<div class="post-metadata">

**Author:** ![scott](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@scott](https://discuss.hail.is/u/scott)\
**Post date:** [April 6, 2020, 7:01pm UTC](https://discuss.hail.is/t/importing-hail-table-from-remote-location/1365/3 "2020-04-06T19:01:48Z")

</div>

Hi John,

Thanks for the suggestion. It is on Google Cloud. I’m looking at the overview in the link, but I’m not confident how this would interface with Hail’s read\_table function. Will read\_table then recognize the gs:// prefix where it would normally find a local path, and look there? (Sorry I’m totally new to Hail).

---

<div class="post-metadata">

**Author:** ![danking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/danking/32/43_2.png) [@danking](https://discuss.hail.is/u/danking)\
**Post date:** [April 6, 2020, 7:43pm UTC](https://discuss.hail.is/t/importing-hail-table-from-remote-location/1365/4 "2020-04-06T19:43:36Z")

</div>

It’s definitely not obvious, but the cloud storage connector installs some libraries that Hail knows how to find. However, this is insufficient, you also need to set up some google account keys.

Ben Weisburd graciously contributed a python script to both install the Google Hadoop connector and configure google account keys for you: [http://broad.io/install-gcs-connector](http://broad.io/install-gcs-connector)

You can either download that python file yourself and run it with `python` or you can just run:

```nohighlight
curl -sSL https://broad.io/install-gcs-connector | python

```

---

<div class="post-metadata">

**Author:** ![scott](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@scott](https://discuss.hail.is/u/scott)\
**Post date:** [April 6, 2020, 11:02pm UTC](https://discuss.hail.is/t/importing-hail-table-from-remote-location/1365/5 "2020-04-06T23:02:44Z")

</div>

Awesome. Thanks so much for this!
