2

I am getting the below error when I am trying to create a Dataproc cluster in GCP. I am using a windows machine to make changes to GCS bucket which will be used to initialize the dataproc cluster.

/tmp/dataproc-agent1435981490491006254/initialize-env.sh: /etc/google-dataproc/startup-scripts/dataproc-initialization-script-0: /bin/bash^M: bad interpreter: No such file or directory

1 Answers1

3

I could understand that when I use Windows machine to push changes to GCS bucket the EOL conversion was not done. Windows and Linux use different characters for declaring new lines or the end of file. So to fix this I used Notepad ++ and from edit menu I used Unix EOL conversion. This was the cause of the error which i was getting while creating a Dataproc cluster.

Reference : How to fix EOL conversion issue