This repository was archived by the owner on Mar 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
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.
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.
- Login as
root - run
uname -Ito 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
- login to CentOS VM as user
root. su -l appsvi ~/.bash_profile- update
JAVA_HOME to/usr/jdk1.7.0_17 - re-login as
rootandsu -l appsto make sure the environment variable is updated (check by runningjava -version) - upload
/home/apps/dev/farm-server/build/artifacts/linux-osfiles.tgzarchive from TC 3.0 VM to/home/appsdirectory on CentOS 64bit VM. tar -xvzf linux-osfiles.tgz- upload
/home/apps/dev/app/cppfolder from TC 3.0 VM to/home/appsdirectory on CentOS 64bit VM. - upload ~/dev/arena-vm/start-farm-processor.sh to
/home/appsdirectory on CentOS 64bit VM. - cd cpp/sandbox2
- make
- cp -rf /home/apps/cpp/sandbox2/GNU-i386-Linux/* /home/apps/processor/deploy/app/cpp/sandbox2/GNU-i386-Linux/
- ./start-farm-processor.sh
- tail -f processor/deploy/bin/logs/processor.log to see the processor is properly started
- you should see an output similar to this one: