Cassandra Preparation Cassandra.yaml

Source: Internet
Author: User
Tags cassandra

First, set the user name and password

Modifying the Cassandra.yaml configuration file

Put the default

Authenticator:allowallauthenticator

Change into

Authenticator:passwordauthenticator

If you need to log in and view the Modify permissions, you need to modify

Authorizer:allowallauthorizer

For

Authorizer:cassandraauthorizer

Start Cassandra

CQL connection, Cassandra is the default account and password

./cqlsh-u cassandra-p Cassandra IP Port

Create user

CREATE USER myusername with PASSWORD ' MyPassword ' SUPERUSER;

There are two kinds of users here, one is superuser (super User), one is Nosuperuser (normal user)

Second, set up the connection IP:

202.173. 9.28

Third, set up the user name, password, after the IP login method

Cqlsh Service ip-u User name-202.173. 9.28 -u knet-p abc123

Cassandra Preparation Cassandra.yaml

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.