Systemd Hdfs Service [hadoop] - startup
<p>I have created a service that starts and stops my hdfs that is associated to my spark cluster.
<br>the service : </p>

<pre><code>[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
</code></pre>

<p>The problem is when i start the service, it starts and stops just after been started !! :) 
I think the problem is the type of the service, I don't really know what type to choose ...</p>

<p>Thank you. <br>
Best regards</p>