- Learning Apache Cassandra(Second Edition)
- Sandeep Yarabarla
- 195字
- 2021-07-03 00:19:26
Installing on Mac OS X
You'll need to set up your environment so that Cassandra knows where to find the latest version of Java. To do this, set up your JAVA_HOME environment variable to the install location, and your PATH to include the executable in your new Java installation, as follows:
$ export JAVA_HOME=" /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home"
$ export PATH="$JAVA_HOME/bin":$PATH
You should put these two lines at the bottom of your .bashrc or .bash_profile file to ensure that things still work when you open a new terminal.
The installation instructions given earlier assume that you're using the latest version of Mac OS X (at the time of writing this, 10.11.6 El Capitan). If you're running a different version of OS X, installing Java might require different steps. Check out https://www.java.com/en/download/faq/java_mac.xml for detailed installation information.
Once you've got the right version of Java, you're ready to install Cassandra. It's very easy to install Cassandra using Homebrew; simply type the following:
$ brew install cassandra
$ pip install cassandra-driver cql
$ cassandra
Here's what we just did:
- Installed Cassandra using the Homebrew package manager
- Installed the CQL shell and its dependency, the Python Cassandra driver
- Started the Cassandra server
- 課課通計(jì)算機(jī)原理
- Cloud Analytics with Microsoft Azure
- Hands-On Cloud Solutions with Azure
- PIC單片機(jī)C語言非常入門與視頻演練
- 電腦上網(wǎng)直通車
- RPA:流程自動(dòng)化引領(lǐng)數(shù)字勞動(dòng)力革命
- 基于ARM 32位高速嵌入式微控制器
- 網(wǎng)絡(luò)安全管理實(shí)踐
- TensorFlow Reinforcement Learning Quick Start Guide
- 激光選區(qū)熔化3D打印技術(shù)
- 手機(jī)游戲程序開發(fā)
- 從零開始學(xué)SQL Server
- 精通LabVIEW程序設(shè)計(jì)
- Hands-On Dashboard Development with QlikView
- 一步步寫嵌入式操作系統(tǒng)