It seems the Analytics package is independent from CanvasLMS, and it is heavily recommended to use Cassandra with it (they don't offer support without it).
According to the analytics repository, you need to do the following (but please back up your installation before proceeding):
First, you should install Cassandra and configure CanvasLMS to use it:
Next, prepare the environment by ensuring Git is installed, loading the CanvasLMS environment and updating YARN:
sudo apt-get install -y git
# Update yarn
sudo npm install -g email@example.com
Install the CanvasLMS Analytics package:
git clone https://github.com/instructure/analytics gems/plugins/analytics
# move the gemfile lock file for the bundle update command to work
mv Gemfile.lock Gemfile.lock.old
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake canvas:compile_assets
sudo /opt/bitnami/ctlscript.sh restart
Let us know if it worked.