Maintained by tuwiendsg
This hands-on aims to show the functionality of SALSA in deployment and query sensoring resources.
The hands-on is on one machine with docker. You can do it on a virtual machine (recommendation) or directly on you laptop. If working on the laptop, Docker may leaves some images on your system after finishing, which you need to delete manually later on.
Step 1: Install a message queue for SALSA (Optional)
By default, SALSA will connect to mqtt://iot.eclipse.org to transfer the message. However it is not stable. The best way is to install rabbitmq-server on the localhost. With Ubuntu, the following command does it:
sudo apt-get install rabbitmq-server
RabbitMQ is lightweight and automatically start up after installion.
Step 2: Install Docker (Optional)
SALSA can automatically install Docker on the target system. However you can install manually to make later process faster.
curl https://get.docker.com/ | sudo sh -
SALSA can automatically pull the default docker image. However for faster deployment process later, you can pull the image manually as following. This image is ubuntu with jre environment.
sudo docker pull leduchung/ubuntu:14.04-jre8
Step 3: Installing SALSA
mkdir salsa
wget https://www.dropbox.com/s/a41x1p35f6q6395/salsa-engine.jar
wget https://www.dropbox.com/s/jiqfznsbi2lqt7w/salsa-pioneer.jar
ifconfig
...
wlan0 Link encap:Ethernet HWaddr 24:77:03:f9:b1:90
inet addr:10.0.0.1 Bcast:10.155.211.255 Mask:255.255.252.0
...
SALSA_CENTER_IP=[your IP address above]
SALSA_CENTER_PORT=8080
SALSA_CENTER_WORKING_DIR=/tmp/salsa-engine
SALSA_PIONEER_WORKING_DIR=/tmp/salsa-pioneer
BROKER=amqp://[your IP address above]
BROKER_TYPE=amqp
sudo java -jar salsa-engine.jar
Step 4: Submit the topology and wait for the deployment done
curl http://localhost:8080/salsa-engine/rest/elise/instance?name=sensorUnit