Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while executing docker-compose #40

Open
subashkonar13 opened this issue Nov 16, 2022 · 2 comments
Open

Issue while executing docker-compose #40

subashkonar13 opened this issue Nov 16, 2022 · 2 comments

Comments

@subashkonar13
Copy link

Hi All,I am facing issues while executing the docker-compose up -d

Getting below error

: No such file or directorypark.sh: line 1: /opt/spark/bin/load-spark-env.sh
spark-worker-b_1 | /start-spark.sh: line 2: $'\r': command not found
spark-worker-b_1 | /start-spark.sh: line 10: syntax error near unexpected token `elif'
'park-worker-b_1 | /start-spark.sh: line 10: `elif [ "$SPARK_WORKLOAD" == "worker" ];
: No such file or directoryrk.sh: line 1: /opt/spark/bin/load-spark-env.sh
spark-master_1 | /start-spark.sh: line 2: $'\r': command not found
spark-master_1 | /start-spark.sh: line 10: syntax error near unexpected token `elif'
'park-master_1 | /start-spark.sh: line 10: `elif [ "$SPARK_WORKLOAD" == "worker" ];
: No such file or directorypark.sh: line 1: /opt/spark/bin/load-spark-env.sh
spark-worker-a_1 | /start-spark.sh: line 2: $'\r': command not found
spark-worker-a_1 | /start-spark.sh: line 10: syntax error near unexpected token `elif'
'park-worker-a_1 | /start-spark.sh: line 10: `elif [ "$SPARK_WORKLOAD" == "worker" ];
@EmileSonneveld
Copy link

This is because the repo was cloned with Windows line endings. Try cloning again like this:
git clone --config core.autocrlf=false https://github.com/mvillarrealb/docker-spark-cluster.git

@PTAdrian1997
Copy link

I confirm that this is what worked for me. However, I solved the problem from Nodepad++: Edit-> EOL Conversion -> Unix (LF)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants