if you want to install cassandra with yay use this command:
yay -S aur/cassandra
![]() |
VOOZH | about |
| Git Clone URL: | https://aur.archlinux.org/cassandra.git (read-only, click to copy) |
|---|---|
| Package Base: | cassandra |
| Description: | Apache Cassandra NoSQL database |
| Upstream URL: | http://cassandra.apache.org/ |
| Keywords: | cassandra database nosql |
| Licenses: | Apache |
| Provides: | apache-cassandra |
| Submitter: | None |
| Maintainer: | sunng |
| Last Packager: | sunng |
| Votes: | 57 |
| Popularity: | 0.000054 |
| First Submitted: | 2010-09-11 10:45 (UTC) |
| Last Updated: | 2025-02-26 18:42 (UTC) |
if you want to install cassandra with yay use this command:
yay -S aur/cassandra
@sunng When I run it using normal user I get this error:
Could not rename log file '/usr/share/cassandra/logs/gc.log' to '/usr/share/cassandra/logs/gc.log.8' (Permission denied).
[0.001s][error][logging] Error opening log file '/usr/share/cassandra/logs/gc.log': Permission denied
[0.001s][error][logging] Initialization of output 'file=/usr/share/cassandra/logs/gc.log' using options 'filecount=10,filesize=10485760' failed.
Invalid -Xlog option '-Xlog:gc=info,heap*=trace,age*=debug,safepoint=info,promotion*=trace:file=/usr/share/cassandra/logs/gc.log:time,uptime,pid,tid,level:filecount=10,filesize=10485760', see error log for details.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
@sunng it's worked for me but i think you need to add the log or lib directory to the cassandra-user.conf because I can't open Cassandra using normal user (need to make sure python-ccm work).
I think it should be u cassandra - "Apache Cassandra" - /var/log/cassandra.
This will make sure than when you add normal user to cassandra group you can use it without sudo command.
@medaminezghal I have updated PKGBUILD to require java 17. And you need to use archlinux-java to specify the default java version to 17
@sunng Yes the symbol link exist. What should I edit to make it work with Java 17. If it works only with Java 17, could you edit the PKGBUILD and cassandra.service files to make it use only Java 17?
@medaminezghal checked by myself it works for me out of box on if I switch to java 17. Could you check if /usr/share/cassandra/logs is a symbol link to /var/logs/cassandra ?
@sunng does it work for you? Because when I try so start it using cassandra it give me error and when I try to start the service I got this:
cassandra[1553387]: at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
cassandra[1553387]: at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:262)
cassandra[1553387]: at java.base/java.nio.file.Files.newByteChannel(Files.java:380)
cassandra[1553387]: at java.base/java.nio.file.Files.createFile(Files.java:658)
cassandra[1553387]: at org.apache.cassandra.io.util.PathUtils.lambda$createFileIfNotExists$3(PathUtils.java:524)
cassandra[1553387]: at org.apache.cassandra.io.util.PathUtils.ifNotExists(PathUtils.java:735)
cassandra[1553387]: ... 13 common frames omitted
systemd[1]: cassandra.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
systemd[1]: cassandra.service: Failed with result 'exit-code'.
systemd[1]: cassandra.service: Consumed 7.203s CPU time, 4.1G memory peak.
I tried to install Java 11 and edit the service to use it but it didn't work. I've tried everything using normal user and super user and same result.
@sunng I think the problem come from creating the user and the group, it didn't give the necessary permissions in the group to access to those file.
@sunng I got this problem.
[0.000s][error][logging] Error opening log file '/usr/share/cassandra/logs/gc.log': Permission denied
[0.000s][error][logging] Initialization of output 'file=/usr/share/cassandra/logs/gc.log' using options 'filecount=10,filesize=10485760' failed.
Invalid -Xlog option '-Xlog:gc=info,heap*=trace,age*=debug,safepoint=info,promotion*=trace:file=/usr/share/cassandra/logs/gc.log:time,uptime,pid,tid,level:filecount=10,filesize=10485760', see error log for details.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
@sunng thanks, the problem is that perl-geoip use provides=('cassandra'). I don't know why.