-
Notifications
You must be signed in to change notification settings - Fork 2
How to set up dcc data and dcc portal on cumulus
Kevin Hartmann edited this page Jun 6, 2019
·
1 revision
- Set up the server on cumulus using the web api at https:///cumulus.oicr.on.ca/
a. Create a cumulus server with running Debian 9.
b. Give it the "microservice" security policy (ie. allow ports 8080, 8443, etc.)
c. Give it a floating IP address, and put the hostname & IP address into your /etc/hosts file
d. eg. `echo 10.30.134.150 test-hdfs >> /etc/hosts``
e. Create a key for server, copy the private key into a file eg. ~/ssh/hdfs
- Set a variable hostname with the name of the host
hostname=test-hdfs
- Set variable keyfile with the location of the private key file in step 0.
keyfile=~/ ssh/test-hdfs
- Log in using ssh:
ssh -i ${keyfile} debian@${hostname}
- Install mongodb:
sudo apt install mongodb
, Y - Install Java
sudo apt install openjdk-8-jre
, Y exit
- Download & build portal server locally, copy tarball to cumulus
git clone [email protected]:icgc-dcc/dcc-portal
cd dcc-portal
mvn clean package
cd dcc-portal-server
scp -i ${keyfile} target/*.tar.gz debian@${hostname}:.
- Download & build download server, copy it to cumulus
git clone [email protected]:icgc-dcc/dcc-download
cd dcc-download
mvn clean package
cd dcc-download-server
scp -i ${keyfile} target/*.tar.gz debian@${hostname}:.
- Log into the server:
ssh -i ${keyfile} debian@${hostname}
- Untar files
for t in *.tar.gz
do tar xf $t && rm $t
done
- Make symlinks
ln -s dcc-download-server* download
ln -s dcc-portal-server* portal'
- Start the services
export HADOOP_USER_NAME=hdfs
cd download
bin/dcc-download-server start
cd
cd portal
bin/dcc-portal-server start
- Go to the web site in the browser (& accept the self-signed certificate) eg.
firefox $hostname:8080/releases