最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论
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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论