8eb247a9f54895bc5b783da44183ce9f78b13799
[integration/test.git] / csit / suites / tsdr / Cassandra / scripts / cassandra-startup.sh
1 #!/bin/bash
2
3 # Installation of Cassandra
4 cat > ${WORKSPACE}/cassandrastartup.sh <<EOF
5 cd /tmp/cassandra
6 echo "Start the Cassandra Server"
7 export JAVA_HOME=/usr
8 sudo /tmp/cassandra/apache-cassandra-2.1.16/bin/cassandra
9 ls -l /tmp/cassandra/apache-cassandra-2.1.16/bin/cassandra
10
11 EOF
12 echo "Copy the Cassanra startup script to ${ODL_SYSTEM_IP}"
13 scp ${WORKSPACE}/cassandrastartup.sh ${ODL_SYSTEM_IP}:/tmp
14 ssh ${ODL_SYSTEM_IP} 'bash /tmp/cassandrastartup.sh'
15 ssh ${ODL_SYSTEM_IP} 'ps -ef | grep cassandra'
16 # vim: ts=4 sw=4 sts=4 et ft=sh :