Original Windows platform Cassandra installation and startup

Source: Internet
Author: User
Tags cassandra

A brief introduction to Cassandra

Cassandra can be translated as Cassandra, a term derived from Greek mythology, which can be found in the Baidu Encyclopedia.

Cassandra is considered a kind of nosql, but scrutiny up, it will find that its design contains the concept of the line. In addition, Cassandra focuses on the AP in Cap theory, which readers can search for and learn by themselves.

Two Cassandra Download

The author is talking about the v2.1.8 version of Cassandra downloaded from https://cassandra.apache.org/. A compressed package named apache-cassandra-2.1.8-bin.tar.gz is obtained after downloading. The author will unzip it under the path E:\Study\cassandra\apache-cassandra-2.1.8.

After downloading the Cassandra binary package and extracting it, you can run the Cassandra server. However, it is important to note that Cassandra is required to install the JDK, so if the reader wants to install and run Cassandra on the PC, install the Java JDK and set the Java_home variable in the environment variable, as the author's environment variable is set to:

Three Cassandra Run 3.1 start service side

In any OS, start the Cassandra Server in the terminal window, go to the extracted file directory, run the cassandra-f command to start the server. Such as:

The-f parameter tells Cassandra to stay in the foreground instead of running as a background process. This allows the server's logs to be output to standard output, and we can also view the information directly through the terminal.

After successful startup, the message looks like this:

The information shown indicates that the Cassandra server has started normally and the server is listening on port No. 9160.

3.2 Starting the Client

Cassandra provides a connection program for Windows, named CASSANDRA-CLI. We can run some programs at the terminal, such as:

Information to know:

1 The server's name is: Test Cluster

2 Client automatic connection is installed on the server side of the local computer, the connection address and Port are: 127.0.0.0/9160

3 After the client connects, and then creates the keyspace, the red box in the figure is displayed as: unknown. Indicates that we do not know which Keyspace is currently in, and we need to create it next.

Four PostScript

At this point, our Cassandra server and client have been created. As for how to use the database for data storage and query some of the commands, in the following article again table, thank you.

If there is any mistake, please reply!

[Original]windows platform Cassandra installation and startup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.