michaelklishin / cassandra-chef-cookbook

Chef cookbook for Apache Cassandra, DataStax Enterprise (DSE) and DataStax agent
Apache License 2.0
163 stars 228 forks source link

Add support for '-Dcassandra.boot_without_jna=true' for low-memory C*. #179

Closed zznate closed 9 years ago

zznate commented 9 years ago

This patch supports running versions >= 2.1.0 withouth JNA installed in order to support running in low-memory environments like Vagrant containers, embedded systems and the like.

The underlying isssue is that JNA attempts to Malloc ~ 1024mb at minimum on startup. For those of us who like to launch multi-DC clusters using this recipe from a Vagrantfile, that is a deal killer.

See https://issues.apache.org/jira/browse/CASSANDRA-6575 and https://github.com/pcmanus/ccm/issues/97 for more info.

This patch modifies the cookcook by:

Fixes issue #178