3 navsection: installguide
4 title: Install the Crunch dispatcher
10 The dispatcher normally runs on the same host/VM as the API server.
12 h4. Perl SDK dependencies
14 * @apt-get install libjson-perl libwww-perl libio-socket-ssl-perl libipc-system-simple-perl@
16 h4. Python SDK dependencies
18 On controller and all compute nodes:
20 * @apt-get install python-pip@
21 * @pip install --upgrade google-api-python-client@
23 h4. Likely crunch job dependencies
27 * @pip install --upgrade pyvcf@
31 * @apt-get install redis-server@
35 Crunch scripts must be in git repositories in @/var/cache/git/*/.git@ (or whatever is configured in @services/api/config/environments/production.rb@).
39 @services/api/script/import_commits.rb production@ must run periodically. Example @/var/service/arvados_import_commits/run@ script for daemontools or runit:
46 cd /path/to/arvados/services/api
47 setuidgid www-data env RAILS_ENV=production /usr/local/rvm/bin/rvm 2.0.0 do bundle exec ./script/import_commits.rb 2>&1
51 Once you have imported some commits, you should be able to create a new job:
54 read -rd "\000" newjob <<EOF; arv job create --job "$newjob"
55 {"script_parameters":{"input":"f815ec01d5d2f11cb12874ab2ed50daa"},
56 "script_version":"master",
61 Without getting this error:
64 ArgumentError: Specified script_version does not resolve to a commit
69 * @services/api/script/crunch-dispatch.rb@ must be running.
70 * @crunch-dispatch.rb@ needs @services/crunch/crunch-job@ in its @PATH@.
71 * @crunch-job@ needs @sdk/perl/lib@ and @warehouse-apps/libwarehouse-perl/lib@ in its @PERLLIB@
72 * @crunch-job@ needs @ARVADOS_API_HOST@ (and, if necessary in a development environment, @ARVADOS_API_HOST_INSECURE@)
74 Example @/var/service/arvados_crunch_dispatch/run@ script:
79 export PATH="$PATH":/path/to/arvados/services/crunch
80 export PERLLIB=/path/to/arvados/sdk/perl/lib:/path/to/warehouse-apps/libwarehouse-perl/lib
81 export ARVADOS_API_HOST=xyzzy.arvadosapi.com
83 ## Only if your SSL cert is unverifiable:
84 # export ARVADOS_API_HOST_INSECURE=yes
86 cd /path/to/arvados/services/api
87 RAILS_ENV=production /usr/local/rvm/bin/rvm 2.0.0 do bundle exec ./script/crunch-dispatch.rb 2>&1