docker-compose yaml.scanner.ScannerError

  apache-spark, docker

cannot run the following docker-compose with the below docker-compose code, and it seem all the code work fine, and i pull the image to my server already, but it still not work !

master:
    image: sequenceiq/spark:1.4.0
    hostname: master
    ports:
    - "4040:4040"
    - "8042:8042"
    - "7077:7077"
    - "8088:8088"
    - "8080:8080"
    restart: always
        deploy:
        resources:
            limits:
            cpus: '0.50'
            memory: 1024M
            reservations:
            cpus: '0.25'
            memory: 256M
    command: bash /usr/local/spark/sbin/start-master.sh && ping localhost > /dev/null

worker:
    image: sequenceiq/spark:1.4.0
    links:
        - master:master
    expose:
        - "8081"
    restart: always
    command: bash /usr/local/spark/sbin/start-slave.sh spark://master:7077 && ping localhost >/dev/null 

Error Messages:

RROR: yaml.scanner.ScannerError: while scanning for the 
next token found character 't' that cannot start any token in "./docker-compose.yml", line 2, column 1

Source: Docker Questions

LEAVE A COMMENT