-
Notifications
You must be signed in to change notification settings - Fork 39
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 -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
- login to CentOS VM as user
root
. su -l apps
vi ~/.bash_profile
- update
JAVA_HOM
E to/usr/jdk1.7.0_17
- re-login as
root
andsu -l apps
to make sure the environment variable is updated (check by runningjava -version
) - 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. tar -xvzf linux-osfiles.tgz
- upload
/home/apps/dev/app/cpp
folder from TC 3.0 VM to/home/apps
directory on CentOS 64bit VM. - upload ~/dev/arena-vm/start-farm-processor.sh to
/home/apps
directory 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: