JC,
I traded emails with Q and he gave me this good narrative and example
for how to use the otherBootstrapActions:
- let's say you've stored a shell script in S3, under
s3://beermuda/scripts/mySuperDuperSetup.sh, and you want to pass it a
couple of values on the commandline
- pass that S3 path to otherBootstrapActions:
createCluster(
... ,
otherBootstrapActions=list(
list(
s3file="s3://beermuda/scripts/mySuperDuperSetup.sh" ,
args=c( "firstScriptArg" , "secondScriptArg" , "andSoOn" )
)
)
)
- and, when the cluster launches, Amazon will make sure
mySuperDuperSetup.sh is run on every node.
Now, the next question is, "what goes in mySuperDuperSetup.sh?" One
answer would be, "a bunch of commands to install third-party
tools/libraries you'd want on the nodes." Say, prerequisite libraries
for packages listed in cranPackages. or even commands to install
packages that are _not_ on CRAN, such as in-house products.