Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

scano_183208 avatar image
scano_183208 asked ·

How to start a service on node startup automatically?

Hello,

I have been working on standing up a livy server on our DSE cluster. Everything is working correctly. As a background Livy works in conjunction with DSE Spark. We are using livy because we want to leverage scala code in order to get at spark to gather information from different tables.

As of right now i have to manually start the livy server before we can use it and its a little bit of a nuisance.

I wanted to set up livy as a service kind of like dse is to automatically startup when the node starts. Is there any steps of any suggestions that could help me accomplish this?

Thank you in advance.
PS this is not exclusive to livy, i would like to understand for future reference how to really setup anything as a service to startup on node startup.

-Simon

operating system
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

Configuring a service depends on the Linux distribution and version.

You will need to do an internet search for instructions appropriate for your operating system.

Note that you need to write a startup script that confirms DSE is operational before starting Livy. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.