Hi @arcmalik5358,
Here are more detailed instructions for the steps @davidg indicated in the link.
In the cassandra server, you will need to open the ports to the canvas server,
then connect to it and create the keyspaces:
# cqlsh -u cassandra
CREATE KEYSPACE page_views WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
CREATE KEYSPACE page_views_test WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
CREATE KEYSPACE auditors WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
CREATE KEYSPACE auditors_test WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
Latter, in the canvas server:
$ sudo su -
# cd /opt/bitnami/apps/canvaslms/htdocs/config
You need to create a file for the cassandra connection like the following one. Replace 127.0.0.1 with the IP / hostname of the cassandra server.
# vi cassandra.yml
development:
page_views:
servers:
- 127.0.0.1:9160
keyspace: page_views
auditors:
servers:
- 127.0.0.1:9160
keyspace: auditors
test:
page_views:
servers:
- 127.0.0.1:9160
keyspace: page_views_test
auditors:
servers:
- 127.0.0.1:9160
keyspace: auditors_test
The you need to install the plugin. What I did was:
# cd /opt/bitnami/apps/canvaslms/htdocs
# git clone https://github.com/instructure/analytics gems/plugins/analytics
# mv Gemfile.lock Gemfile.lock.old
# mv .bundle/ .bundle_bak
# bundle update
# RAILS_ENV=production bundle exec rake db:migrate
# RAILS_ENV=production bundle exec rake canvas:compile_assets
Restart the services:
# /opt/bitnami/ctlscript.sh restart
I hope this helps