hadoop/hadoop-hdfs.service.template
2013-08-20 16:06:04 -04:00

19 lines
456 B
Plaintext

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