Wiki

Clone wiki

quakeanalysis / Installation

Installation



There are 3 web-servers

  • Cubing server
  • WebUI server
  • Spark Analysis Server

Clone Repository

git clone https://debjyotipaul385@bitbucket.org/debjyotipaul385/quakeanalysis.git

Preparing virtual environment for python

cd quakeanalysis
chmod +x getvenv.sh 
./getvenv.sh
cd ..

This will create a python environment for this project.

Starting WebUI server

cd webUI
sudo python -m SimpleHTTPServer
cd ..

This will launch the server at port 8000. You can access it from web browser with following address

http://localhost:8000
Now your web-server is up and running.

Starting cubing server

QuickStart

cd server
chmod +x requirements.sh 
./requirements.sh 
Copy data.sqlite from this link to server directory.

Command Line for copying from google drive (Untested)

wget --no-check-certificate 'https://drive.google.com/uc?export=download&id=0B7MJnptUCNQPQl8zLTU2VE51cjg' \
   -O data.sqlite
Credit: stackexchange
sh run.sh 

Details

Details of cubing server and its APIs are available here

Starting Spark Server

cd MagnitudeCalculator
chmod +x requirements.sh 
./requirements.sh 

To start spark webservice

pyspark server.py

You might have to configure virtual environment for python and also PYSPARK_PYTHON variable

source bootstrap/bin/activate
export PATH=$PATH:/path/to/spark/spark-1.5.0-bin-hadoop2.6/bin
export PYSPARK_PYTHON=/path/to/quakeanalysis/bootstrap/bin/python

Updated