注册服务

[Unit]
Description=hdfs-zkfc
[Service]
Type=forking
ExecStart=/flink/hadoop-2.10.1/sbin/hadoop-daemon.sh start zkfc
ExecStop=/flink/hadoop-2.10.1/sbin/hadoop-daemon.sh stop zkfc
PrivateTmp=true
User=flink
Group=flink

[Install]
WantedBy=multi-user.target

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注