March 3, 2016 | By the+gnu+linux+evangelist | Filed in: Tutorial.
Apache Cassandra Debian Stretch 9 Installation Guide
You are Welcome, this Tutorial shows you Step-by-Step How to Install and Getting-Started with the Latest Apache Cassandra 3.x in Debian Stretch 9 GNU/Linux Desktop/Server.
And here is Described a Cassandra Debian 9 System-Wide Setup, for a Local one Put stuff into Home, omit permissions and adapt commands consequently.
Finally, Pre-Requisite to Cassandra 3.x Database Installation is an Oracle Java JDK 8+ Setup on System!
Apache Cassandra Overview:
Proven: Cassandra is in use at eBay, CERN, GitHub, Netflix and over 1500 more companies.
Fault Tolerant: Data is automatically replicated to multiple nodes for fault-tolerance.
Performant: Cassandra consistently outperforms popular NoSQL alternatives in benchmarks and real applications.
Decentralized: there are no single points of failure. There are no network bottlenecks. Every node in the custer is identical.
Durable: Cassandra is recommended for applications that can’t afford to lose data, even when an whole data center goes down.
You’re in Control: Choose between synchronous or asynchronous replication for each update.
Elastic: Read and write throughput both increase linearly as new machines are added, with no downtime or interruption to applications.
Professionally Supported: Cassandra support contracts and services are available from third parties.
Open a Shell session
(Press “Enter” to Execute Commands)
Download Latest Apache Cassandra Release:
Extract Cassandra into /tmp
Possibly Double-Click on Archive from the File Manager:
Or from Shell:
tar xvzf apache-cassandra*.bin.tar.gz -C /tmp/
LogIn as SuperUser.
If Got “User is Not in Sudoers file” then see: How to Enable sudo
This just to make the Commands shorter…
Relocate Cassandra Directory
mv /tmp/apache-cassandra* /var/lib/cassandra
Make Needed Directories.
mkdir -p /var/log/cassandra/log
Creating cassandra Group and Adding Users.
usermod -a -G cassandra [yourUser]
usermod -a -G cassandra root
Setting Ownership over Directories.
chown -R root:cassandra /var/lib/cassandra/
chown -R root:cassandra /var/log/cassandra/
Set Permissions over Directories.
chmod 775 /var/lib/cassandra/data/
chmod 775 /var/lib/cassandra/saved_caches/
chmod 770 /var/lib/cassandra/commitlog/
chmod 770 /var/log/cassandra/log/
Edit Cassandra Configuration File
Then Search and Comment Out:
(Ctrl+w to Search on nano)
#cluster_name: 'Test Cluster'
Since no Cluster is stille in work…
Set Cassandra Log4j Directory
Required Oracle-Sun Official Java JDK 8 for Linux Debian
Oracle JDK 8 Installation for Linux Debian
Exit from SuperUser Session.
Start Cassandra Instance
How to Solve Cassandra 3 Linux Installation Issues
Cassandra 3 Troubleshootings
Check Connection to Cassandra Instance with nodetool
./bin/nodetool --host 127.0.0.1 ring
Then Thanks to the Apache Software Foundation You are Able to Getting-Started with NoSQL Database Apache Cassandra on Linux Debian.
Tags: Apache Cassandra, Cassandra, cassandra cluster, cassandra database Linux Debian, cassandra db, cassandra development, cassandra development Linux Debian, cassandra linux, cassandra Linux Debian, cassandra nosql, cassandra tutorial, gnu, gnu/linux, gnu/linux tutorial, Guide, install apache cassandra Linux Debian, Linux, Linux Debian, linux Debian 9 Stretch, Linux Tutorial, NoSQL Database, nosql database tutorial, nosql tutorial