# I cannot start a Hail cluster when using the optional-components Dataproc flag

**URL:** <https://discuss.hail.is/t/i-cannot-start-a-hail-cluster-when-using-the-optional-components-dataproc-flag/1472>\
**Category:** Hail Query & hailctl\
**Created:** [June 22, 2020, 4:01pm UTC](https://discuss.hail.is/t/i-cannot-start-a-hail-cluster-when-using-the-optional-components-dataproc-flag/1472 "2020-06-22T16:01:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danish436](https://avatars.discourse-cdn.com/v4/letter/d/9d8465/32.png) [@Danish436](https://discuss.hail.is/u/Danish436)\
**Post date:** [June 22, 2020, 4:01pm UTC](https://discuss.hail.is/t/i-cannot-start-a-hail-cluster-when-using-the-optional-components-dataproc-flag/1472/1 "2020-06-22T16:01:00Z")

</div>

I am using the most updated hail version. I put down the following command to initiate the cluster but I am getting the following problem. Kindly help:

hailctl dataproc --beta start hailjupy --vep GRCh37 --optional-components=ANACONDA,JUPYTER --bucket wes\_development --project cncd-244400 --region us-central1 --num-preemptible-workers 50 --requester-pays-allow-buckets hail-bucket,big-data

Error:

failed: Initialization action failed. Failed action ‘gs://hail-common/hailctl/dataproc/0.2.46/init\_notebook.py’, see output in: gs://wes\_development/google-cloud-dataproc-metainfo/3427c8dd-67a7-466f-bbb9-38f22adeff25/hailjupy-m/dataproc-initialization-script-0\_output.

In the output, i see the following last lines

Traceback (most recent call last):  
File “/etc/google-dataproc/startup-scripts/dataproc-initialization-script-0”, line 64, in  
safe\_call(\*command)  
File “/etc/google-dataproc/startup-scripts/dataproc-initialization-script-0”, line 18, in safe\_call  
print(e.output).decode()  
AttributeError: ‘NoneType’ object has no attribute ‘decode’

---

<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:** [June 22, 2020, 4:08pm UTC](https://discuss.hail.is/t/i-cannot-start-a-hail-cluster-when-using-the-optional-components-dataproc-flag/1472/2 "2020-06-22T16:08:38Z")

</div>

> [@Danish436](#):
>
> –optional-components=ANACONDA,JUPYTER

Hail clusters are mostly incompatible with the Dataproc `--optional-components` flag. What do you plan to use Anaconda for? A Hail cluster always has Jupyter installed, so you don’t need to specify that. Try removing that flag.

```python
hailctl dataproc --beta start hailjupy --vep GRCh37 --bucket wes_development --project cncd-244400 --region us-central1 --num-preemptible-workers 50 --requester-pays-allow-buckets hail-bucket,big-data

```

---

<div class="post-metadata">

**Author:** ![Haseeb1](https://avatars.discourse-cdn.com/v4/letter/h/df705f/32.png) [@Haseeb1](https://discuss.hail.is/u/Haseeb1)\
**Post date:** [June 22, 2020, 4:31pm UTC](https://discuss.hail.is/t/i-cannot-start-a-hail-cluster-when-using-the-optional-components-dataproc-flag/1472/3 "2020-06-22T16:31:31Z")

</div>

> [@danking](#):
>
> ```python
> hailctl dataproc --beta start hailjupy --vep GRCh37 --bucket wes_development --project cncd-244400 --region us-central1 --num-preemptible-workers 50 --requester-pays-allow-buckets hail-bucket,big-data
> 
> ```

Trying that

---

<div class="post-metadata">

**Author:** ![kumarveerapen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/kumarveerapen/32/355_2.png) [@kumarveerapen](https://discuss.hail.is/u/kumarveerapen)\
**Post date:** [June 25, 2020, 1:43am UTC](https://discuss.hail.is/t/i-cannot-start-a-hail-cluster-when-using-the-optional-components-dataproc-flag/1472/4 "2020-06-25T01:43:00Z")

</div>

Did this work, @Haseeb1?

---

<div class="post-metadata">

**Author:** ![Haseeb1](https://avatars.discourse-cdn.com/v4/letter/h/df705f/32.png) [@Haseeb1](https://discuss.hail.is/u/Haseeb1)\
**Post date:** [June 25, 2020, 7:10pm UTC](https://discuss.hail.is/t/i-cannot-start-a-hail-cluster-when-using-the-optional-components-dataproc-flag/1472/5 "2020-06-25T19:10:17Z")

</div>

yes it did
