2

Hi i want to create systemctl service to tun flink local server .

I can run it directly from the /bin/start-local.sh

But when im using this service definition .

[Unit]
Description=Apache Flink
Documentation=http://flink.apache.org/
Requires=network.target remote-fs.target
After=network.target remote-fs.target

[Service]
Type=simple
User=beam1
Environment=JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
ExecStart=/opt/flink-1.3.2/bin/start-local.sh
ExecStop=-/opt/flink-1.3.2/bin/stop-local.sh
Restart=always
[Install]
WantedBy=multi-user.target

Im getting an error , what`s wrong in my service defenition ?

Oct 17 04:41:57 beam1 stop-local.sh[3997]: No jobmanager daemon (pid: 3995) is running anymore on beam1.
Oct 17 04:41:57 beam1 systemd[1]: flink.service: Service hold-off time over, scheduling restart.
Oct 17 04:41:57 beam1 systemd[1]: Stopped Apache Flink.
Oct 17 04:41:57 beam1 systemd[1]: Started Apache Flink.
Oct 17 04:41:57 beam1 start-local.sh[4411]: Starting jobmanager daemon on host beam1.
Oct 17 04:41:57 beam1 stop-local.sh[4817]: No jobmanager daemon (pid: 4814) is running anymore on beam1.
Oct 17 04:41:58 beam1 systemd[1]: flink.service: Service hold-off time over, scheduling restart.
Oct 17 04:41:58 beam1 systemd[1]: Stopped Apache Flink.
Oct 17 04:41:58 beam1 systemd[1]: flink.service: Start request repeated too quickly.
Oct 17 04:41:58 beam1 systemd[1]: Failed to start Apache Flink.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.