Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Apache Cassandra Essentials

You're reading from   Apache Cassandra Essentials Create your own massively scalable Cassandra database with highly responsive database queries

Arrow left icon
Product type Paperback
Published in Nov 2015
Publisher Packt
ISBN-13 9781783989102
Length 172 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Nitin Padalia Nitin Padalia
Author Profile Icon Nitin Padalia
Nitin Padalia
Arrow right icon
View More author details
Toc

The installation layout

The tarball installation layout is different from RPM or Debian packages. Let's see how they differ.

The directory layout in tarball installations

The following table shows the list of directories and their description:

Directory

Description

bin

This directory contains the startup scripts to launch the Cassandra server, the cqlsh prompt, and utility tools such as nodetool.

conf

This directory is the home of configuration files, including cassandra.yaml.

lib

This directory is Cassandra's Java dependency folder.

pylib

This directory contains Python libraries for cqlsh.

tools

Stress testing tools like cassandra-stress and other tools for example, sstable2json: which could be used to convert SSTables to JSON for debugging purposes. An SSTable or Sorted String Table is an immutable data file in disk, created for each Column Family. There could be zero or more SSTable per Column Family in every node of Cassandra cluster.

data

The Cassandra data directory will be created as soon as you start populating your Cassandra server. Its location is configured using the data_file_directories in the cassandra.yaml option.

logs

This is the default log directory. In older versions, it was /var/log/Cassandra.

The directory layout in package-based installation

The following table describes the installation layout if you use RPM or Debian packages:

Directory

Description

/var/lib/cassandra

This is the data directory.

/var/log/cassandra/

This is the log directory.

/var/run/Cassandra

This is the runtime file location, for example, the PID file.

/usr/share/Cassandra

This is the home of the include file cassandra-in.sh, which is used to set environment variables, such as CASSANDRA_HOME, CLASSPATH, and so on for Cassandra.

/usr/share/cassandra/lib

This is Cassandra's Java dependency folder; JAR files are placed here.

/usr/bin

This is the home of tools and utilities such as cqlsh, nodetool, and cassandra-stress.

/etc/cassandra

This is the home of the configuration.

/etc/init.d/

This contains the Cassandra startup scripts.

/etc/security/limits.d/

This is the file defining Cassandra user limits.

You have been reading a chapter from
Apache Cassandra Essentials
Published in: Nov 2015
Publisher: Packt
ISBN-13: 9781783989102
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image