How To Build Cassandra

Current Trunk Version

Toolchain requirements:

Tool

Version

Java SDK

1.6 (preferably the latest)

ANT

At least version 1.8

To build the latest version of Cassandra from Git:

git clone http://git-wip-us.apache.org/repos/asf/cassandra.git cassandra
cd cassandra
# if directly connected to the internet
ant
# if connected via a proxy
ant -autoproxy

To update cloned repository with recent commits:

git pull

To build the specific release of Cassandra from the cloned Git repository:

# find a tag for the release you need
git tag

# checkout source files for the release
git checkout _tag_for_the_release_

# for example, if you need to checkout 0.7.9 release
git checkout cassandra-0.7.9

# if you need to checkout the latest files again
git checkout trunk

# if directly connected to the internet
ant
# if connected via a proxy
ant -autoproxy

Older versions

Not currently documented. Please feel free to add documentation.

Troubleshooting

If the above instructions don't work for you:

  1. Have you checked that your version of ANT meets the minimum required version?
  2. Have you checked that you are actually using the correct version of Java?
  3. Do you have an internet connection? The build has to download Maven ANT Tasks (or Ivy for older builds) and the download all the required build dependencies. If you don't have an internet connection, or if ANT cannot determine your proxy configuration then the build will fail.

HowToBuild (last edited 2012-02-13 04:20:00 by MakiWatanabe)