Package Details: cassandra 5.0.3-4

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: 58
Popularity: 0.59
First Submitted: 2010-09-11 10:45 (UTC)
Last Updated: 2025-02-26 18:42 (UTC)

Dependencies (3)

Required by (1)

Sources (6)

Latest Comments

1 2 3 4 5 6 .. 12 Next › Last »

medaminezghal commented on 2025-02-28 10:36 (UTC)

@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.

medaminezghal commented on 2025-02-28 09:58 (UTC) (edited on 2025-02-28 10:14 (UTC) by medaminezghal)

@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.

sunng commented on 2025-02-26 18:42 (UTC)

@medaminezghal I have updated PKGBUILD to require java 17. And you need to use archlinux-java to specify the default java version to 17

medaminezghal commented on 2025-02-26 08:00 (UTC) (edited on 2025-02-26 08:07 (UTC) by medaminezghal)

@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?

sunng commented on 2025-02-26 00:45 (UTC)

@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 ?

medaminezghal commented on 2025-02-25 12:12 (UTC) (edited on 2025-02-25 12:13 (UTC) by medaminezghal)

@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.

medaminezghal commented on 2025-02-25 06:55 (UTC)

@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.

medaminezghal commented on 2025-02-25 06:53 (UTC)

@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.

medaminezghal commented on 2025-02-25 06:41 (UTC)

@sunng thanks, the problem is that perl-geoip use provides=('cassandra'). I don't know why.

sunng commented on 2025-02-25 06:35 (UTC)

@medaminezghal done. I had similar issue this morning. Didn't know that perl-geoip changed this. Is it a bug?