spark-notebook:
image: bde2020/spark-notebook:2.1.0-hadoop2.8-hive
container_name: spark-notebook
restart: on-failure:5
command: sh -c "rm -f /opt/spark-notebook/RUNNING_PID && /opt/spark-notebook/bin/spark-notebook"
env_file:
- ./hadoop-hive.env
ports:
- 9001:9001
when i try to run the container for the first time without the command sh -c "rm -f /opt/spark-notebook/RUNNING_PID && /opt/spark-notebook/bin/spark-notebook"
, it work but for the second time it give me "This application is already running (Or delete /opt/spark-notebook/RUNNING_PID file)"
, for that i tried this command but it gived me rm: missing operand
The "rm: missing operand" error is not triggered when running the command manually