Created
July 3, 2018 06:32
-
-
Save shahmimajid/8d9a3e0b64e2b33e9e8bb59e9fabf980 to your computer and use it in GitHub Desktop.
Systemd Spark Init ( Start & Stop ) for spark master ( Create the file inside /lib/systemd/system )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Spark Init service | |
After=network.target | |
After=systemd-user-sessions.service | |
After=network-online.target | |
[Service] | |
Type=forking | |
User=root | |
ExecStart=/var/lib/spark/spark-2.1.1-bin-hadoop2.7/sbin/start-all.sh | |
ExecStop=/var/lib/spark/spark-2.1.1-bin-hadoop2.7/sbin/stop-all.sh | |
TimeoutSec=30 | |
Restart=always | |
RestartSec= 30 | |
StartLimitInterval=350 | |
StartLimitBurst=10 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment