Opened 13 years ago

Closed 13 years ago

#30506 closed defect (fixed)

cassandra @0.8.0 cassandra.in.sh is incorrect and jars required to run are not installed

Reported by: jonathan+macports@… Owned by: singingwolfboy@…
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: haspatch Cc:
Port: cassandra

Description

Installing the cassandra port (0.8.0_0) and running it says this:

$ cassandra -f
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/cassandra/thrift/CassandraDaemon
Caused by: java.lang.ClassNotFoundException: org.apache.cassandra.thrift.CassandraDaemon

Searching around it appears that the CASSANDRA_HOME path is built incorrectly in /opt/local/share/java/cassandra/cassandra.in.sh and that the cassandra_bin variable is built with a nonexistent variable name (cassandra_home), it seems the Portfile patches cassandra.in.sh incorrectly.

After fixing this I get:

$ cassandra -f 
INFO 22:52:14,805 Logging initialized
INFO 22:52:14,819 Heap size: 1052770304/1052770304
INFO 22:52:14,821 JNA not found. Native methods will be disabled.
INFO 22:52:14,830 Loading settings from file:/opt/local/share/java/cassandra/conf/cassandra.yaml
INFO 22:52:14,949 DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
ERROR 22:52:15,025 Exception encountered during startup.
java.lang.NoClassDefFoundError: org/apache/cassandra/thrift/UnavailableException

It appears that the apache-cassandra-thrift jar file is not installed along with apache-cassandra after building Cassandra.

Attachments (2)

Portfile (7.4 KB) - added by jonathan+macports@… 13 years ago.
Modify cassandra.in.sh correctly and copy apache-cassandra-thrift jar
Portfile-cassandra.diff (1.1 KB) - added by jonathan+macports@… 13 years ago.
A diff is probably better than the whole Portfile

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by jonathan+macports@…

Attachment: Portfile added

Modify cassandra.in.sh correctly and copy apache-cassandra-thrift jar

Changed 13 years ago by jonathan+macports@…

Attachment: Portfile-cassandra.diff added

A diff is probably better than the whole Portfile

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Keywords: haspatch added
Owner: changed from macports-tickets@… to singingwolfboy@…
Port: cassandra added

In the future, please fill in the Port field and Cc the maintainer(s).

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Committed in r92798.

Note: See TracTickets for help on using tickets.