19 lines
450 B
Plaintext
19 lines
450 B
Plaintext
[Unit]
|
|
Description=The Hadoop DAEMON daemon
|
|
After=network.target
|
|
After=NetworkManager.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
EnvironmentFile=-/etc/sysconfig/hadoop-yarn
|
|
EnvironmentFile=-/etc/sysconfig/hadoop-DAEMON
|
|
ExecStart=/usr/sbin/yarn-daemon.sh start DAEMON
|
|
ExecStop=/usr/sbin/yarn-daemon.sh stop DAEMON
|
|
User=yarn
|
|
Group=yarn
|
|
PIDFile=/var/run/hadoop-yarn/yarn-yarn-DAEMON.pid
|
|
ControlGroup=cpu:/hadoop memory:/hadoop
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|