hadoop/hadoop-hdfs.service.template

38 lines
859 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=hadoop
PIDFile=/var/run/hadoop-hdfs/hadoop-hdfs-DAEMON.pid
LimitNOFILE=32768
LimitNPROC=65536
#######################################
# 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
[Install]
WantedBy=multi-user.target