In [1]: import hail as hl
...: hl.read_table("gs://hail-datasets-us/datasets/1/gnomad_v2.1.1_lof_metrics_by_gene.ht").describe()
...
version: 0.2.46-b89fba7bf0db
Error summary: GoogleJsonResponseException: 400 Bad Request
{
"code" : 400,
"errors" : [ {
"domain" : "global",
"message" : "Bucket is requester pays bucket but no user project provided.",
"reason" : "required"
} ],
"message" : "Bucket is requester pays bucket but no user project provided."
}
Try this:
YOUR_GCP_PROJECT_NAME = # set this
hl.init(spark_conf={
'spark.hadoop.fs.gs.requester.pays.mode': 'AUTO',
'spark.hadoop.fs.gs.requester.pays.project.id': YOUR_GCP_PROJECT_NAME})
import hail as hl
hl.read_table("gs://hail-datasets-us/datasets/1/gnomad_v2.1.1_lof_metrics_by_gene.ht").describe()