Skip to content
This repository

Cassandra Java Client

Merge pull request #489 from opuneet/issue382

adding createKeyspaceIfNotExists()
latest commit b9ab127126
opuneet opuneet authored
Octocat-spinner-32 astyanax-cassandra adding createKeyspaceIfNotExists() February 24, 2014
Octocat-spinner-32 astyanax-contrib Adding in eureka based host supplier - issue 394 September 03, 2013
Octocat-spinner-32 astyanax-core adding createKeyspaceIfNotExists() February 24, 2014
Octocat-spinner-32 astyanax-entity-mapper Fixing code indentation February 11, 2014
Octocat-spinner-32 astyanax-examples add a project for Astyanax API code examples March 29, 2013
Octocat-spinner-32 astyanax-queue Modify TimePartitionedShardReaderPolicy builder to accept time units May 07, 2013
Octocat-spinner-32 astyanax-recipes Merge branch 'nanotime-lock' of int… February 12, 2014
Octocat-spinner-32 astyanax-thrift adding unit test for issue 382 fix February 24, 2014
Octocat-spinner-32 codequality Update codequality/checkstyle.xml March 22, 2013
Octocat-spinner-32 gradle Upgrading to io.netty-3.6.6.Final. Also fixing some unit tests January 16, 2014
Octocat-spinner-32 .gitignore Removing merge line that slipped in. April 25, 2013
Octocat-spinner-32 CHANGES.txt Added LICENSE July 22, 2011
Octocat-spinner-32 LICENSE.txt Added LICENSE July 22, 2011
Octocat-spinner-32 NOTICE.txt Added LICENSE July 22, 2011
Octocat-spinner-32 README.txt Updated hector link in README.txt to match Readme.markdown July 31, 2012
Octocat-spinner-32 Readme.markdown Update Readme.markdown March 07, 2013
Octocat-spinner-32 build.gradle de-merging the pull request January 17, 2014
Octocat-spinner-32 [Gradle Release Plugin] - new version commit: '1.56.49-SNAPSHOT'. January 20, 2014
Octocat-spinner-32 gradlew Upgrading to Gradle 1.4 March 22, 2013
Octocat-spinner-32 gradlew.bat Upgrade to Gradle 1.1. August 17, 2012
Octocat-spinner-32 index.html Put something in index.html March 31, 2013
Octocat-spinner-32 settings.gradle Adding in eureka based host supplier - issue 394 September 03, 2013


Astyanax is a high level Java client for Apache Cassandra. Apache Cassandra is a highly available column oriented database.

Astyanax is currently in use at Netflix. Issues generally are fixed as quickly as possible and releases done frequently.


Astyanax jars are published to Maven Central. As of astyanax 1.56.27 the project has been split into multiple sub project, each of which needs to be pulled in separately.

Required artifacts

GroupID/Org ArtifactID/Name astyanax-core astyanax-thrift astyanax-cassandra

Optional artifacts

GroupID/Org ArtifactID/Name astyanax-queue astyanax-entity-mapper astyanax-recipes


A quick overview can be found at the Netflix Tech Blog. Some features provided by this client:

  • High level, simple object oriented interface to Cassandra.
  • Fail-over behavior on the client side.
  • Connection pool abstraction. Implementation of a round robin connection pool.
  • Monitoring abstraction to get event notification from the connection pool.
  • Complete encapsulation of the underlying Thrift API and structs.
  • Automatic retry of downed hosts.
  • Automatic discovery of additional hosts in the cluster.
  • Suspension of hosts for a short period of time after several timeouts.
  • Annotations to simplify use of composite columns.


Detailed documentation of Astyanax's features and usage can be found on the wiki and the getting started guide.

Ancient History

Astyanax was the son of Hector who was Cassandra's brother in greek mythology.

Modern History

This work was initially inspired by Hector.

Something went wrong with that request. Please try again.