X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b0af0440838407be80c6208b15f969bc2942008e..30b02581c938c05b804f7510a1fc8e850830b9cd:/doc/user/topics/tutorial-parallel.html.textile.liquid diff --git a/doc/user/topics/tutorial-parallel.html.textile.liquid b/doc/user/topics/tutorial-parallel.html.textile.liquid index 6dbdb8af23..021d736385 100644 --- a/doc/user/topics/tutorial-parallel.html.textile.liquid +++ b/doc/user/topics/tutorial-parallel.html.textile.liquid @@ -17,7 +17,7 @@ Next, using @nano@ or your favorite Unix text editor, create a new file called @ notextile.
~/you/crunch_scripts$ nano parallel-hash.py
-Add the following code to compute the md5 hash of each file in a +Add the following code to compute the md5 hash of each file in a collection: {% code 'parallel_hash_script_py' as python %} @@ -40,7 +40,7 @@ You should now be able to run your new script using Crunch, with "script" referr
~/you/crunch_scripts$ cat >~/the_job <<EOF
 {
  "script": "parallel-hash.py",
- "repository": "you",
+ "repository": "$USER",
  "script_version": "master",
  "script_parameters":
  {
@@ -63,13 +63,13 @@ EOF
 
+(Your shell should automatically fill in @$USER@ with your login name. The job JSON that gets saved should have @"repository"@ pointed at your personal git repository.) + Because the job ran in parallel, each instance of parallel-hash creates a separate @md5sum.txt@ as output. Arvados automatically collates theses files into a single collection, which is the output of the job:
~/you/crunch_scripts$ arv keep ls e2ccd204bca37c77c0ba59fc470cd0f7+162
-md5sum.txt
-md5sum.txt
-md5sum.txt
+./md5sum.txt
 ~/you/crunch_scripts$ arv keep get e2ccd204bca37c77c0ba59fc470cd0f7+162/md5sum.txt
 0f1d6bcf55c34bed7f92a805d2d89bbf alice.txt
 504938460ef369cd275e4ef58994cffe bob.txt