DataStax Developer Blog

Announcing RPMs for Cassandra

By Jonathan Ellis -  July 27, 2010 | 8 Comments

Apache Cassandra has long had support for debian packaging in its tree, but users of RPM-based distributions such as Red Hat Enterprise Linux or Fedora have had to roll their own packages or use a binary tarball. Riptano wants Cassandra to be easy for everyone to use and manage, so we’re pleased to announce contributing RPM builds of Apache Cassandra to the community.

To get started with these packges, follow these simple steps:

  1. Choose your operating system and architecture at http://rpm.riptano.com/ and download the correct riptano-release RPM, which will install the Riptano repository. If you are unsure of which OS you have, you can look in /etc/redhat-release, and uname -m will tell you the machine’s architecture. Both RHEL and Fedora are supported.
  2. Install the package by running (as root) rpm -ivh riptano-release*.rpm
  3. Once the repository is installed, installing Cassandra is as simple as running ‘yum install cassandra’. After the Cassandra installation has completed, you can edit /usr/share/cassandra/cassandra.in.sh to adjust JVM options (for instance, to give Cassandra more memory) and the main configuration will be in /etc/cassandra/storage-conf.xml. For a more detailed explanation of storage-conf.xml tuning, refer to StorageConfiguration on the wiki.
  4. Now that Cassandra is installed and configured, you can start it by running /etc/init.d/cassandra start. If you’d like Cassandra to automatically start on boot, run chkconfig cassandra on.

We hope that these packages will make life easier for those on RPM-based disributions and that you will enjoy using them.



Comments

  1. Frank LoVecchio says:

    If you’re running on Amazon EC2, the Amazon sponsored AMI uses Fedora Core 8 – the RPM’s still have missing dependencies. FYI!

  2. Jonathan Ellis says:

    We will provide 0.7 RPMs starting with the release candidate.

  3. Rob says:

    Frank you can yum upgrade to a supported release. Definitely will be issues along the way.

  4. zznate says:

    RC1 RPMs are now available. This is *not* an “upgrade” from the 0.6 RPMs. See below for details.

    Notes:
    - if you have 0.6.x RPMs installed, do not even attempt this on a production cluster until you fully understand the ramifications
    - the name for the 0.7.x series will be “cassandra07″ to avoid conflicts with upgrade/update from 0.6.x
    - the RPM itself conflicts with the 0.6 package so you must uninstall the 0.6 RPM first (it will leave your data and existing configurations intact)
    - you must load/convert your schema to yaml. See NEWS.txt in the release (http://goo.gl/cCabD) for details

  5. Rob says:

    Frank you can yum upgrade to a supported release. Which I have done on EC2

  6. Anonymous says:

    riptano-release-5-1.fc14.noarch.rpm defaults to fc 12…. Try this:

    File: /etc/yum.repos.d/riptano.repo

    [riptano]
    name=Riptano Repo for Fedora $releasever – $basearch
    baseurl=http://rpm.riptano.com/Fedora/$releasever
    failovermethod=priority
    enabled=1
    gpgcheck=0

  7. Atif says:

    Any plans to have RPMs for 0.7 version?

  8. zznate says:

    Thanks for pointing this out – I’ll push out the update shortly.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>