...
- Download Apache Cassandra 3.0, install into /opt/app/music and follow these instructions http://cassandra.apache.org/doc/latest/getting_started/installing.html till and including StepBy the end of this you should have Cassandra working
Create a user in Cassandra
Edit conf/cassandra.yaml file
Code Block language bash theme Midnight authenticator: PasswordAuthenticator authorizer: CassandraAuthorizer
- Restart Cassandra
Login to cqlsh with default credentials
Code Block language bash theme Midnight cqlsh -u cassandra -p cassandra
Change default user create new user with the following command. Remember this username/password for music properties
Code Block language sql theme Midnight CREATE USER new_user WITH PASSWORD ‘new_password’ SUPERUSER;
Change password for default user ‘Cassandra’ so that no one will be able to login
Code Block language sql theme Midnight ALTER USER cassandra WITH PASSWORD ‘SomeLongRandomStringNoonewillthinkof’;
Provide the new user credentials to Music. Update music.properties file and uncomment or add the following:
Code Block language bash theme Midnight cassandra.user=<new_user> cassandra.password=<new_password>
To access keyspace through cqlsh, login with credentials that are passed to MUSIC while creating the keyspace.
...
Zookeeper Installation
- Download Apache Zookeeper 3.4, install into /opt/app/music and follow these instructions https://zookeeper.apache.org/doc/r3.4.11/zookeeperStarted.html pertaining to the standalone operation. By the end of this you should have Zookeeper working.
...
Extra Cassandra information for Authentication:
To create first user in Cassandra
- Edit conf/cassandra.yaml file
Code Block | ||||
---|---|---|---|---|
| ||||
authenticator: PasswordAuthenticator
authorizer: CassandraAuthorizer |
- Restart Cassandra
- Login to cqlsh with default credentials
Code Block | ||||
---|---|---|---|---|
| ||||
cqlsh -u cassandra -p cassandra |
- To change default user create new user with the following command.
Code Block | ||||
---|---|---|---|---|
| ||||
CREATE USER new_user WITH PASSWORD ‘new_password’ SUPERUSER; |
- Change password for default user ‘Cassandra’ so that no one will be able to login
Code Block | ||||
---|---|---|---|---|
| ||||
ALTER USER cassandra WITH PASSWORD ‘SomeLongRandomStringNoonewillthinkof’; |
...
:
...
Code Block | ||||
---|---|---|---|---|
| ||||
cassandra.user=<new_user>
cassandra.password=<new_password> |
...
Anchor | ||||
---|---|---|---|---|
|
...