solairen / cassandra Goto Github PK
View Code? Open in Web Editor NEWInstall Cassandra 3.11.x on Debian 9/10, and Ubuntu 18.04/20.04 using Ansible.
License: MIT License
Install Cassandra 3.11.x on Debian 9/10, and Ubuntu 18.04/20.04 using Ansible.
License: MIT License
Describe the solution you'd like
Remove support to CentOS 7 and 8.
Those system are no longer support by Red Hat.
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.
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
(...)
Describe the solution you'd like
Improve the role
section as it is described in Roles.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.