- Learning Apache Cassandra(Second Edition)
- Sandeep Yarabarla
- 158字
- 2021-07-03 00:19:26
Installing the binary tarball
You can use the binary tarball to install Cassandra on any Linux-based platform including Mac OS X and platforms without package support or if you do not want a root installation:
- Download the Apache Cassandra 3.0.9 binary tarball from the following:
http://www.apache.org/dyn/closer.lua/cassandra/3.0.9/apache-cassandra-3.0.9-bin.tar.gz.
- Use the following command to untar:
$ tar -xvzf apache-cassandra-3.0.9-bin.tar.gz
- To configure Cassandra, go to the $INSTALL_LOCATION/conf directory and make the relevant changes. You can do this once you get an idea of Cassandra internals later in the book. INSTALL_LOCATION in this case will be $CURRENT_DIRECTORY/apache-cassandra-3.0.9/.
- Start Cassandra:
$ cd apache-cassandra-3.0.9/
$ bin/cassandra # Use -f to start Cassandra in the foreground
- Verify that Cassandra is running:
$ bin/nodetool status
You might want to add CASSANDRA_HOME=$INSTALL_LOCATION and PATH=$PATH:$INSTALL_LOCATION/bin in the .bashrc or .bash_profile files so every time you open a new terminal, you can simply launch cassandra, nodetool, or cqlsh by entering the command on terminal without changing directory every time.
推薦閱讀
- Google Cloud Platform Cookbook
- 機(jī)器學(xué)習(xí)及應(yīng)用(在線實(shí)驗(yàn)+在線自測)
- 人工免疫算法改進(jìn)及其應(yīng)用
- Visual Basic從初學(xué)到精通
- Learn CloudFormation
- 網(wǎng)絡(luò)布線與小型局域網(wǎng)搭建
- 網(wǎng)絡(luò)安全管理實(shí)踐
- SAP Business Intelligence Quick Start Guide
- 在實(shí)戰(zhàn)中成長:Windows Forms開發(fā)之路
- Working with Linux:Quick Hacks for the Command Line
- 網(wǎng)絡(luò)服務(wù)器搭建與管理
- 網(wǎng)絡(luò)脆弱性掃描產(chǎn)品原理及應(yīng)用
- 穿越計(jì)算機(jī)的迷霧
- 計(jì)算機(jī)辦公應(yīng)用培訓(xùn)教程
- ARM嵌入式開發(fā)實(shí)例