admin 管理员组文章数量: 1086019
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
本文标签:
版权声明:本文标题:Docker Spark-Notebook: 'rm: missing operand' error when trying to remove RUNNING_PID on container restart - Stac 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1744038186a2522760.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论