projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 3198-writable-fuse
[arvados.git]
/
doc
/
install
/
install-compute-node.html.textile.liquid
diff --git
a/doc/install/install-compute-node.html.textile.liquid
b/doc/install/install-compute-node.html.textile.liquid
index dd64cd03a0ff4eff0a9b9075a9961d516a0aa462..9a64ac3672bdfaaa13718ba2df62b15936c67083 100644
(file)
--- a/
doc/install/install-compute-node.html.textile.liquid
+++ b/
doc/install/install-compute-node.html.textile.liquid
@@
-72,8
+72,14
@@
Then execute this script to create a compute node object, and set up a cron job
<notextile>
<pre><code>
#!/bin/bash
<notextile>
<pre><code>
#!/bin/bash
+set -e
if ! test -f /root/node.json ; then
if ! test -f /root/node.json ; then
- arv node create --node "{\"hostname\": \"$(hostname)\"}" > /root/node.json
+ python - <<EOF
+import arvados, json, socket
+node = arvados.api('v1').nodes().create(body={'hostname': socket.gethostname()}).execute()
+with open('/root/node.json', 'w') as node_file:
+ json.dump(node, node_file, indent=2)
+EOF
# Make sure /dev/fuse permissions are correct (the device appears after fuse is loaded)
chmod 1660 /dev/fuse && chgrp fuse /dev/fuse
# Make sure /dev/fuse permissions are correct (the device appears after fuse is loaded)
chmod 1660 /dev/fuse && chgrp fuse /dev/fuse