GithubHelp home page GithubHelp logo

solairen / cassandra Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 476 KB

Install Cassandra 3.11.x on Debian 9/10, and Ubuntu 18.04/20.04 using Ansible.

License: MIT License

Jinja 100.00%
ansible cassandra centos7 centos8 debian10 debian9 ubuntu1804 ubuntu2004

cassandra's People

Contributors

solairen avatar

cassandra's Issues

CentOS 7/8 support

Describe the solution you'd like

Remove support to CentOS 7 and 8.
Those system are no longer support by Red Hat.

Cassandra service is in state failed after installation on Centos 7

Describe the bug
After installation of Cassandra, service is in state failed on Centos 7.

Reproduction rate
100%

How to reproduce
Steps to reproduce the behavior:

1. Run ansible script to install Cassandra
2. Ssh on VM where Cassandra was deployed
3. Run command: 'sudo systemctl status cassandra'

Actual behavior
Cassandra service is in state failed.

Expected behavior
Cassandra service is in state active.

Screenshots and logs

● cassandra.service - LSB: distributed storage system for structured data
   Loaded: loaded (/etc/rc.d/init.d/cassandra; bad; vendor preset: disabled)
   Active: failed (Result: signal) since Thu 2020-07-30 19:54:22 UTC; 1min 24s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3242 ExecStart=/etc/rc.d/init.d/cassandra start (code=exited, status=0/SUCCESS)
 Main PID: 3325 (code=killed, signal=KILL)
   CGroup: /system.slice/cassandra.service
           └─3425 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64/jre/bin/java -Xloggc:/var/log/cassandra/gc.log -ea -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -XX:+Heap...

Jul 30 19:54:12 li2157-239 systemd[1]: Starting LSB: distributed storage system for structured data...
Jul 30 19:54:12 li2157-239 cassandra[3242]: Starting Cassandra: /etc/rc.d/init.d/cassandra: line 72: s/^/#/: No such file or directory
Jul 30 19:54:12 li2157-239 runuser[3253]: pam_unix(runuser:session): session opened for user cassandra by (uid=0)
Jul 30 19:54:13 li2157-239 runuser[3329]: pam_unix(runuser:session): session opened for user cassandra by (uid=0)
Jul 30 19:54:17 li2157-239 runuser[3329]: pam_unix(runuser:session): session closed for user cassandra
Jul 30 19:54:17 li2157-239 cassandra[3242]: OK
Jul 30 19:54:18 li2157-239 systemd[1]: Started LSB: distributed storage system for structured data.
Jul 30 19:54:22 li2157-239 systemd[1]: cassandra.service: main process exited, code=killed, status=9/KILL
Jul 30 19:54:22 li2157-239 systemd[1]: Unit cassandra.service entered failed state.
Jul 30 19:54:22 li2157-239 systemd[1]: cassandra.service failed.

Change shell module to lineinfile module

Describe the solution you'd like
Right now, the shell module is used for editing files during the installation process.
Ansible contains lineinfile module that can be used to edit lines in files.

Playbook: roles/configuration/configure_centos.yml

(...)
- name: update cassandra
  shell: |
  sed -i '72i s/^/#/' /etc/rc.d/init.d/cassandra
  sed -i '73i   runuser -u $CASSANDRA_OWNR -- $CASSANDRA_PROG -p $pid_file > $log_file 2>&1' /etc/rc.d/init.d/cassandra
  sed -i '74i   chown root.root $pid_file' /etc/rc.d/init.d/cassandra
(...)

Cassandra cannot be installed on Ubuntu and Debian

Describe the bug
During installation of Cassandra on Debian 9, Ubuntu 18.04 and Ubuntu 20.04 information appears that No package matching 'cassandra' is available

Reproduction rate
100%

How to reproduce
Steps to reproduce the behavior:

1. Run ansible script

Actual behavior
No package matching 'cassandra' is available appears during installation

Expected behavior
Cassandra on Debian 9, Ubuntu 18.04 and Ubuntu 20.04 installs without any problem

Screenshots and logs

No package matching 'cassandra' is available

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.