Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Offline cassandra installation on Ubuntu

Solved1.87K views7th July 2023Cassandra installation Linux
5
Hugo Lopes [SLC] [DevOps Advocate]540 9th March 2023 1 Comment

I am trying to install cassandra on a server that has no access to Debian, so I used the tar file, doing the following :

“unzip” to folder /etc/cassandra

Run the service cassandra

And it is working fine, but when I checked with operations they confirmed I also need to configure the service file for an auto-start if there is a reboot of the server (below an example)

[Unit] Description=Cassandra Cluster Node Daemon [Service] Type=forking user=cassandra ExecStart=/etc/cassandra/bin/cassandra ExecStopPost=/usr/bin/rm -rf /data/cassandra/saved_caches SuccessExitStatus=143 [Install] WantedBy=default.target

My question is more if there isn´t another way to do this. can the file be created automatically?

I tried the sudo apt but kept getting errors

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 7th July 2023
Miguel Obregon [SLC] [DevOps Catalyst] commented 9th March 2023

Hi Hugo,
Maybe I am missing something something but, is it required to configure a service file? If you want to make sure that the service is restarted after reboot you could use systemctl:
sudo systemctl enable cassandra.service

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
5
Michiel Saelen [SLC] [DevOps Enabler]5.63K Posted 9th March 2023 1 Comment

Hi Hugo,

As you are doing an installation on Ubuntu I would recommend doing the installation from the deb package instead of from the source code.

To install from a deb package you can run:

$ sudo dpkg -i package_file.deb

If you want to download the package you can use a system with the same architecture (you can check this with ‘dpkg –print-architecture’) that has internet access and follow the following steps:

$ echo “deb https://debian.cassandra.apache.org 41x main” | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list

$ curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add –

$ sudo apt-get update

$ sudo apt-get download cassanda

If you have dependencies that are not installed you can download all of the dependencies at once:

$ apt-get download $(apt-rdepends <package>|grep -v “^ “)

It is possible you encounter packages that don’t have an exact name (e.g. ‘E: Can’t select candidate version from package debconf-2.0 as it has no candidate’). In those cases, filter out those exact names (be sure to use ^<NAME>$ so that other related names, that do exist are not skipped). For example:

$ apt-get download $(apt-rdepends cassandra|grep -v “^ ” | grep -v “^debconf-2.0$” | grep -v “^java11-runtime$” | grep -v “^java8-runtime$” | grep -v “^java8-runtime-headless$”)

Copy all these packages to the offline machine and then run (until you no longer have errors):

$ sudo dpkg -i *.deb

Alternatives for offline installations can be through apt-offline which allows you to install packages on an offline machine that can reach an online machine.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 7th July 2023
Michiel Saelen [SLC] [DevOps Enabler] commented 9th March 2023

Note: make sure to also use the same OS version to download the deb packages

3
Wale Oguntoyinbo [SLC] [DevOps Advocate]3.39K Posted 9th March 2023 0 Comments

I believe installing from deb or rpm packages will normally take care of updating the necessary init or systemd files automatically which handles auto-restart.  If the installation is done via tar files you will need to update these files manually.

Wale Oguntoyinbo [SLC] [DevOps Advocate] Edited answer 9th March 2023
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs