Skip to content

hawkular/wildfly-cassandra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cassandra Subsystem

Prerequisites

Wildfly 8.1.0

Get and install Wildfly 8.1.0: http://download.jboss.org/wildfly/8.1.0.Final/wildfly-8.1.0.Final.zip

It's currently been tested against WF 8.1.0 and the default server configuration (standalone-cassdandra.xml) is configured for WF 8. But apart from that there should be no reason to not use it on WF 9.

Cassandra Trunk (> 31.10.2014)

Checkout and build cassandra trunk from the apache repo. This will put it to your local maven repo:

git clone http://git-wip-us.apache.org/repos/asf/cassandra.git cassandra-trunk

cd cassandra-trunk; ant mvn-install

(For further details on how to build cassandra please see http://wiki.apache.org/cassandra/HowToContribute)

Build & Install

Build the top level project:

mvn clean install

This will also create a wildfly-cassandra-overlay.zip, that can be installed on Wildfly:

unzip target/wildfly-cassandra-overlay.zip -d $WILDFLY_HOME

This will add an additional module that contains the cassandra extension and subsystem:

modules/system/layers/base/org/wildfly/extension/cassandra/main/

Package Contents

The following contents will be installed when you unpack the wildfly-cassandra-overlay.zip:

 bin/nodetool (1)
 modules/system/layers/base/org/wildfly/extension/cassandra/main/module.xml (2)
 modules/system/layers/base/org/wildfly/extension/cassandra/main/*.jar (3)
 standalone/configuration/standalone-cassandra.xml (4)
 domain/configuration/cassandra-domain.xml (5)
 domain/configuration/cassandra-host.xml (6)
  1. A patched nodetool that allows full JMX urls (i.e service:jmx:http-remoting-jmx://127.0.0.1:9990)
  2. The module descriptor
  3. Required libraries to run cassandra on Wildfly
  4. An example configuration for standalone servers
  5. An example configuration for managed domains
  6. An example host configuration (seed nodes)

Server Configuration Profiles

The wildfly-cassandra-overlay.zip installs server profiles for both standalone and domain mode that can be used to start a pre-configured Wildfly instance:

Standalone Mode

./bin/standalone.sh -c standalone-cassandra.xml -b 127.0.0.1 -Dcassandra.boot_without_jna=true

(yes, the jna switch matters)

Domain Mode

./bin/domain.sh --domain-config=cassandra-domain.xml --host-config=cassandra-host.xml -b 127.0.0.1

Cassandra Configuration

The service configuration can be accessed like any other wildfly resource:

`[standalone@localhost:9990 /] /subsystem=cassandra/cluster=WildflyCluster:read-resource
 {
     "outcome" => "success",
     "result" => {
         "authenticator" => "AllowAllAuthenticator",
         "authorizer" => "AllowAllAuthorizer",
         "broadcast-address" => expression "${jboss.default.multicast.address:230.0.0.4}",
         "client-encryption-enabled" => false,
         "commitlog-sync" => "periodic",
         "commitlog-sync-period-in-ms" => 10000,
         "debug" => false,
         "endpoint-snitch" => "SimpleSnitch",
         "hinted-handoff-enabled" => true,
         "internode-authenticator" => "org.apache.cassandra.auth.AllowAllInternodeAuthenticator",
         "listen-address" => expression "${jboss.bind.address:127.0.0.1}",
         "native-transport-port" => 9042,
         "num-tokens" => 256,
         "partitioner" => "org.apache.cassandra.dht.Murmur3Partitioner",
         "request-scheduler" => "org.apache.cassandra.scheduler.NoScheduler",
         "rpc-port" => 9160,
         "seed-provider-class-name" => "org.apache.cassandra.locator.SimpleSeedProvider",
         "seed-provider-seeds" => expression "${jboss.bind.address:127.0.0.1}",
         "server-encryption-enabled" => false,
         "start-native-transport" => true,
         "start-rpc" => true
     }
 }`

Issues

If you discover any problems or see room for improvement, feel free to file an issue and we'll discuss it: https://github.com/rhq-project/wildfly-cassandra/issues

Get In touch

The best way to reach out and discuss the cassandra subsystem is currently the RHQ mailing list and/or the Chat Room:

License

Resources

About

ARCHIVED - Cassandra integration with Wildfly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published