blob: cd22602bb5778b983d8604c5163ab38b976e5c5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
[Unit]
Description=Haoop data node and node manager server
[Service]
Type=forking
User=hadoop
Group=hadoop
EnvironmentFile=/etc/conf.d/hadoop
ExecStart=/usr/bin/hdfs --daemon start datanode
ExecStartPost=/usr/bin/yarn --daemon start nodemanager
ExecStop=/usr/bin/yarn --daemon stop nodemanager
ExecStopPost=/usr/bin/hdfs --daemon stop datanode
Restart=on-abnormal
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
|