summarylogtreecommitdiffstats
path: root/hadoop-historyserver.service
diff options
context:
space:
mode:
Diffstat (limited to 'hadoop-historyserver.service')
-rw-r--r--hadoop-historyserver.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/hadoop-historyserver.service b/hadoop-historyserver.service
new file mode 100644
index 000000000000..68908fa8c884
--- /dev/null
+++ b/hadoop-historyserver.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Haoop job history server
+
+[Service]
+User=hadoop
+Group=hadoop
+EnvironmentFile=/etc/conf.d/hadoop
+ExecStart=/usr/bin/mapred historyserver
+Restart=on-abnormal
+SuccessExitStatus=143
+
+[Install]
+WantedBy=multi-user.target