| 1 | DataStax Java Driver for Apache Cassandra |
| 2 | ========================================= |
| 3 | |
| 4 | A Java client driver for Apache Cassandra. This driver works exclusively with |
| 5 | the Cassandra Query Language version 3 (CQL3) and Cassandra's binary protocol. |
| 6 | |
| 7 | - JIRA: https://datastax-oss.atlassian.net/browse/JAVA |
| 8 | - MAILING LIST: https://groups.google.com/a/lists.datastax.com/forum/#!forum/java-driver-user |
| 9 | - IRC: #datastax-drivers on `irc.freenode.net <http://freenode.net>`_ |
| 10 | - DOCS: http://www.datastax.com/documentation/developer/java-driver/1.0/webhelp/index.html |
| 11 | - API: http://www.datastax.com/drivers/java/1.0 |
| 12 | |
| 13 | |
| 14 | The driver architecture is based on layers. At the bottom lies the driver core. |
| 15 | This core handles everything related to the connections to a Cassandra |
| 16 | cluster (for example, connection pool, discovering new nodes, etc.) and exposes a simple, |
| 17 | relatively low-level API on top of which higher level layer can be built. |
| 18 | |
| 19 | The driver contains the following modules: |
| 20 | - driver-core: the core layer. |
| 21 | - driver-examples: example applications using the other modules which are |
| 22 | only meant for demonstration purposes. |
| 23 | |
| 24 | More modules including a simple object mapper will come shortly. |
| 25 | |
| 26 | Please refer to the README of each module for more information. |
| 27 | |
| 28 | |
| 29 | Maven |
| 30 | ----- |
| 31 | |
| 32 | The last release of the driver is available on Maven Central. You can install |
| 33 | it in your application using the following Maven dependency:: |
| 34 | |
| 35 | <dependency> |
| 36 | <groupId>com.datastax.cassandra</groupId> |
| 37 | <artifactId>cassandra-driver-core</artifactId> |
| 38 | <version>1.0.6</version> |
| 39 | </dependency> |
| 40 | |
| 41 | **DSE users** should use the following Maven dependency (*note the version is set to 1.0.5-dse*):: |
| 42 | |
| 43 | <dependency> |
| 44 | <groupId>com.datastax.cassandra</groupId> |
| 45 | <artifactId>cassandra-driver-core</artifactId> |
| 46 | <version>1.0.5-dse</version> |
| 47 | </dependency> |
| 48 | |
| 49 | **Cassandra 2.0.x users** should consider the following Maven dependency:: |
| 50 | |
| 51 | <dependency> |
| 52 | <groupId>com.datastax.cassandra</groupId> |
| 53 | <artifactId>cassandra-driver-core</artifactId> |
| 54 | <version>2.0.0</version> |
| 55 | </dependency> |
| 56 | |
| 57 | |
| 58 | Troubleshooting |
| 59 | ~~~~~~~~~~~~~~~ |
| 60 | |
| 61 | If you are having issues connecting to the cluster (seeing ``NoHostAvailableConnection`` exceptions) please check the |
| 62 | `connection requirements <https://github.com/datastax/java-driver/wiki/Connection-requirements>`_. |
| 63 | |
| 64 | License |
| 65 | ------- |
| 66 | Copyright 2013, DataStax |
| 67 | |
| 68 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 69 | you may not use this file except in compliance with the License. |
| 70 | You may obtain a copy of the License at |
| 71 | |
| 72 | http://www.apache.org/licenses/LICENSE-2.0 |
| 73 | |
| 74 | Unless required by applicable law or agreed to in writing, software |
| 75 | distributed under the License is distributed on an "AS IS" BASIS, |
| 76 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 77 | See the License for the specific language governing permissions and |
| 78 | limitations under the License. |