2013-08-20 20:06:04 +00:00
|
|
|
[Unit]
|
|
|
|
Description=The Hadoop DAEMON daemon
|
|
|
|
After=network.target
|
|
|
|
After=NetworkManager.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
EnvironmentFile=-/etc/sysconfig/hadoop-mapreduce
|
|
|
|
EnvironmentFile=-/etc/sysconfig/hadoop-DAEMON
|
|
|
|
ExecStart=/usr/sbin/mr-jobhistory-daemon.sh start DAEMON
|
|
|
|
ExecStop=/usr/sbin/mr-jobhistory-daemon.sh stop DAEMON
|
|
|
|
User=mapred
|
2014-02-17 19:53:38 +00:00
|
|
|
Group=hadoop
|
2013-08-20 20:06:04 +00:00
|
|
|
PIDFile=/var/run/hadoop-mapreduce/mapred-mapred-DAEMON.pid
|
2014-01-24 21:02:12 +00:00
|
|
|
LimitNOFILE=32768
|
|
|
|
LimitNPROC=65536
|
2014-02-17 19:53:38 +00:00
|
|
|
|
|
|
|
#######################################
|
|
|
|
# Note: Below are cgroup options
|
|
|
|
#######################################
|
|
|
|
#Slice=
|
|
|
|
#CPUAccounting=true
|
|
|
|
#CPUShares=1024
|
|
|
|
|
|
|
|
#MemoryAccounting=true
|
|
|
|
#TBD: MemoryLimit=bytes, MemorySoftLimit=bytes
|
|
|
|
|
|
|
|
#BlockIOAccounting=true
|
|
|
|
#BlockIOWeight=??
|
|
|
|
#BlockIODeviceWeight=??
|
|
|
|
#TBD: BlockIOReadBandwidth=bytes, BlockIOWriteBandwidth=bytes
|
|
|
|
|
|
|
|
#DeviceAllow=
|
|
|
|
#DevicePolicy=auto|closed|strict
|
2013-08-20 20:06:04 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|