https://github.com/hawkular/wildfly-cassandra
ARCHIVED - Cassandra integration with Wildfly
https://github.com/hawkular/wildfly-cassandra
Last synced: about 1 year ago
JSON representation
ARCHIVED - Cassandra integration with Wildfly
- Host: GitHub
- URL: https://github.com/hawkular/wildfly-cassandra
- Owner: hawkular
- License: apache-2.0
- Created: 2014-10-22T11:46:11.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-02-28T17:00:34.000Z (over 8 years ago)
- Last Synced: 2025-03-25T10:12:08.820Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 175 KB
- Stars: 0
- Watchers: 10
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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)
- A patched nodetool that allows full JMX urls (i.e service:jmx:http-remoting-jmx://127.0.0.1:9990)
- The module descriptor
- Required libraries to run cassandra on Wildfly
- An example configuration for standalone servers
- An example configuration for managed domains
- 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:
- Mailing List: https://lists.fedorahosted.org/mailman/listinfo/rhq-devel
- IRC: irc://freenode.org/#rhq
## License
- http://www.apache.org/licenses/LICENSE-2.0.html
## Resources
- https://docs.jboss.org/author/display/WFLY8/Documentation
- http://www.datastax.com/documentation/cassandra/2.0/cassandra/gettingStartedCassandraIntro.html