我创建了一个服务来启动和停止与我的 Spark 集群关联的 hdfs。
服务 :
[Unit]
Description=Hdfs service
[Service]
Type=simple
WorkingDirectory=/home/hduser
ExecStart=/opt/hadoop-2.6.4/sbin/start-service-hdfs.sh
ExecStop=/opt/hadoop-2.6.4/sbin/stop-service-hdfs.sh
[Install]
WantedBy=multi-user.target
问题是当我启动服务时,它在启动后立即启动和停止!:) 我认为问题是服务的类型,我真的不知道选择什么类型......
谢谢你。
此致