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
  • 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 (cqlsh can be found in $CASSANDRA_HOME/bin directory)

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

      Code Block
      languagesql
      themeMidnight
      CREATE USER new<new_useruser> WITH PASSWORD ‘new‘<new_password’password>’ SUPERUSER;
    5. Change password for default user ‘Cassandra’ ‘cassandra’ so that no one will be able to login without proper authorization:

      Code Block
      languagesql
      themeMidnight
      ALTER USER cassandra WITH PASSWORD ‘SomeLongRandomStringNoonewillthinkof’‘<SomeLongRandomStringNoonewillthinkof>’;
  • Test to make sure Cassandra is running correctly by accessing it through cqlsh using the credentials created in step 4.

    Code Block
    languagebash
    themeMidnight
    ./cqlsh -u <new_user> -p <new_password>

Zookeeper Installation

...

Music Installation

  • Create a music.properties file and place it in /opt/app/music/etc/.
  • The cassandra.user & cassandra.password were created in step 4 of Cassandra installation above.
  • Here is a sample of the file:

...