Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Datastax Cassandra without root

I am trying to install and run the Datastax cassandra community edition on Redhat Linux but I don't have root privileges. I extracted the tar in my home directory but I'm unable to do ./cassandra

I am doing this on a HPC cluster and thought I'd install Cassandra in my home directory and save the data in a scratch space we've been provided (home directory doesn't have enough space to hold entire data)

I would appreciate any help! Thanks!

like image 200
huhahihi Avatar asked Aug 06 '14 19:08

huhahihi


People also ask

Is DataStax and Cassandra same?

It is a NoSQL database written in Java that provides unique utilities that can't be matched by the other NoSQL databases. On the other hand, DataStax is basically a database platform that is based on Apache Cassandra. It has been designed to meet the availability and performance demands of mobile, web, and IoT apps.

How do I enable Cassandra authentication?

To enable authentication: Update all Edge components that connect to Cassandra with the Cassandra username and password. On all Cassandra nodes, enable authentication. Set the Cassandra username and password on any one node.


1 Answers

From the installation docs for DataStax community edition, the only other step you need is to create the data and log directories:

$ sudo mkdir /var/lib/cassandra
$ sudo mkdir /var/log/cassandra
$ sudo chown -R  $USER: $GROUP /var/lib/cassandra
$ sudo chown -R  $USER: $GROUP /var/log/cassandra

If you are using a different location, that's fine. Just make sure to create the dirs and assign owners (like above) and also set the appropriate values in cassandra.yaml (data_file_directories, commitlog_directories, saved_caches_directory) and log4j-server.properties.

A more detailed log of the results you're seeing would confirm whether this is the problem.

like image 93
BrianC Avatar answered Sep 20 '22 10:09

BrianC