Skip to content

How to Setup Farm Processor in Separate VM

skyhit edited this page Feb 3, 2015 · 2 revisions

It assumes you have root access to the VM, and the VM is CentOS 64bit VM.

Update Hosts file.

First, please get the ip address where the sqs service started, for development, it is the internal ip address of the TC 3.0 VM.

  1. Login as root
  2. run uname -I to get the ip address.

You can also find the in the /etc/hosts file of TC 3.0 VM

Second, edit the /etc/hosts file in CentOS 64bit VM, by adding a line like

<<ip address>> sqs.topcoder.com

Setup Farm Processor

  1. login to CentOS VM as user root.
  2. su -l apps
  3. vi ~/.bash_profile
  4. update JAVA_HOME to /usr/jdk1.7.0_17
  5. re-login as root and su -l apps to make sure the environment variable is updated (check by running java -version)
  6. upload /home/apps/dev/farm-server/build/artifacts/linux-osfiles.tgz archive from TC 3.0 VM to /home/apps directory on CentOS 64bit VM.
  7. tar -xvzf linux-osfiles.tgz
  8. upload /home/apps/dev/app/cpp folder from TC 3.0 VM to /home/apps directory on CentOS 64bit VM.
  9. upload ~/dev/arena-vm/start-farm-processor.sh to /home/apps directory on CentOS 64bit VM.
  10. cd cpp/sandbox2
  11. make
  12. cp -rf /home/apps/cpp/sandbox2/GNU-i386-Linux/* /home/apps/processor/deploy/app/cpp/sandbox2/GNU-i386-Linux/
  13. ./start-farm-processor.sh
  14. tail -f processor/deploy/bin/logs/processor.log to see the processor is properly started
  15. you should see an output similar to this one: