Cassandra specifying the database path

Source: Internet
Author: User
Tags cassandra

Reference https://docs.datastax.com/en/cassandra/2.1/cassandra/configuration/configCassandra_yaml_r.html

We are talking about the way tarball installation, that is, to download the source to the specified path, assuming that it is placed under/home/user/cassandra

There are bin,data,conf and other folders under this path.

By default, both SST and log are stored in the data directory.

Data in the data directory is the SST storage directory, which is classified according to the database name.

Configuration file under Conf, named Cassandra.yaml

How to configure

Data_file_directories:
-/home/leveldb/cassandra/cassandra/data

Be careful not to use the TAP key.

If the specified directory does not exist, the service program creates one itself, so the directory should have permission to modify the service program.

Cassandra specifying the database path

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.