Docker Spark-Notebook: 'rm: missing operand' error when trying to remove RUNNING_PID on container restart - Stac

spark-notebook:image: bde2020spark-notebook:2.1.0-hadoop2.8-hivecontainer_name: spark-notebookrestart:

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744038184a4547817.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信