X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/956093639196f92f3ad4b9e0795bcc7e30520e0d..35336cd73e444534cb2eda20e3730464cc4e6553:/doc/install/install-crunch-dispatch.html.textile.liquid diff --git a/doc/install/install-crunch-dispatch.html.textile.liquid b/doc/install/install-crunch-dispatch.html.textile.liquid index 893a8aad9a..9b0e9b82a1 100644 --- a/doc/install/install-crunch-dispatch.html.textile.liquid +++ b/doc/install/install-crunch-dispatch.html.textile.liquid @@ -5,7 +5,7 @@ title: Install the Crunch dispatcher ... -h1. Crunch setup + The dispatcher normally runs on the same host/VM as the API server. @@ -13,12 +13,20 @@ h4. Perl SDK dependencies * @apt-get install libjson-perl libwww-perl libio-socket-ssl-perl libipc-system-simple-perl@ +Add this to @/etc/apt/sources.list@ + +@deb http://git.oxf.freelogy.org/apt wheezy main contrib@ + +Then + +@apt-get install libwarehouse-perl@ + h4. Python SDK dependencies On controller and all compute nodes: * @apt-get install python-pip@ -* @pip install --upgrade google-api-python-client@ +* @pip install --upgrade virtualenv arvados-python-client@ h4. Likely crunch job dependencies @@ -54,7 +62,7 @@ set -e while sleep 60 do cd /path/to/arvados/services/api - setuidgid www-data env RAILS_ENV=production /usr/local/rvm/bin/rvm 2.0.0 do bundle exec ./script/import_commits.rb 2>&1 + setuidgid www-data env RAILS_ENV=production /usr/local/rvm/bin/rvm-exec 2.0.0 bundle exec ./script/import_commits.rb 2>&1 done @@ -89,7 +97,6 @@ set -e export PATH="$PATH":/path/to/arvados/services/crunch export PERLLIB=/path/to/arvados/sdk/perl/lib:/path/to/warehouse-apps/libwarehouse-perl/lib export ARVADOS_API_HOST={{ site.arvados_api_host }} -export PYTHONPATH=/path/to/arvados/src/sdk/python export CRUNCH_DISPATCH_LOCKFILE=/var/lock/crunch-dispatch fuser -TERM -k $CRUNCH_DISPATCH_LOCKFILE || true @@ -98,5 +105,6 @@ fuser -TERM -k $CRUNCH_DISPATCH_LOCKFILE || true # export ARVADOS_API_HOST_INSECURE=yes cd /path/to/arvados/services/api -RAILS_ENV=production /usr/local/rvm/bin/rvm 2.0.0 do bundle exec ./script/crunch-dispatch.rb 2>&1 +export RAILS_ENV=production +exec /usr/local/rvm/bin/rvm-exec 2.0.0 bundle exec ./script/crunch-dispatch.rb 2>&1