#30506: cassandra @0.8.0 cassandra.in.sh is incorrect and jars required to run are not installed -------------------------------------------+-------------------------------- Reporter: jonathan+macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: -------------------------------------------+-------------------------------- 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. -- Ticket URL: <https://trac.macports.org/ticket/30506> MacPorts <http://www.macports.org/> Ports system for Mac OS