Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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

    1. Edit conf/cassandra.yaml file

      Code Block
      languagebash
      themeMidnight
      authenticator: PasswordAuthenticator
      authorizer: CassandraAuthorizer
    2. Restart Cassandra
    3. Login to cqlsh with default credentials

      Code Block
      languagebash
      themeMidnight
      cqlsh -u cassandra -p cassandra
    4. Change default user create new user with the following command. Remember this username/password for music properties

      Code Block
      languagesql
      themeMidnight
      CREATE USER new_user WITH PASSWORD ‘new_password’ SUPERUSER;
    5. Change password for default user ‘Cassandra’ so that no one will be able to login

      Code Block
      languagesql
      themeMidnight
      ALTER USER cassandra WITH PASSWORD ‘SomeLongRandomStringNoonewillthinkof’;
    6. Provide the new user credentials to Music. Update music.properties file and uncomment or add the following:

      Code Block
      languagebash
      themeMidnight
      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

...

Extra Cassandra information for Authentication:

To create first user in Cassandra

  1. Edit conf/cassandra.yaml file
Code Block
languagebash
themeMidnight
authenticator: PasswordAuthenticator
authorizer: CassandraAuthorizer
  1. Restart Cassandra
  2. Login to cqlsh with default credentials
Code Block
languagebash
themeMidnight
cqlsh -u cassandra -p cassandra
  1. To change default user create new user with the following command.
Code Block
languagesql
themeMidnight
CREATE USER new_user WITH PASSWORD ‘new_password’ SUPERUSER;
  1. Change password for default user ‘Cassandra’ so that no one will be able to login
Code Block
languagesql
themeMidnight
ALTER USER cassandra WITH PASSWORD ‘SomeLongRandomStringNoonewillthinkof’;

...

:

...

Code Block
languagebash
themeMidnight
cassandra.user=<new_user>
cassandra.password=<new_password>

...


Anchor
buildmuisc
buildmuisc

...