- 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
- 面向STEM的mBlock智能機(jī)器人創(chuàng)新課程
- 計(jì)算機(jī)原理
- Dreamweaver 8中文版商業(yè)案例精粹
- 空間傳感器網(wǎng)絡(luò)復(fù)雜區(qū)域智能監(jiān)測(cè)技術(shù)
- 大數(shù)據(jù)技術(shù)與應(yīng)用
- RPA(機(jī)器人流程自動(dòng)化)快速入門:基于Blue Prism
- 具比例時(shí)滯遞歸神經(jīng)網(wǎng)絡(luò)的穩(wěn)定性及其仿真與應(yīng)用
- ESP8266 Home Automation Projects
- Visual FoxPro數(shù)據(jù)庫(kù)基礎(chǔ)及應(yīng)用
- Machine Learning with the Elastic Stack
- Spatial Analytics with ArcGIS
- 數(shù)字多媒體技術(shù)基礎(chǔ)
- 機(jī)床電氣控制與PLC
- Redash v5 Quick Start Guide
- 中文版Photoshop情境實(shí)訓(xùn)教程