Created 09-28-2016 03:31 PM
Hi all, I'm trying to understand how to properly use cloudbreak's CLI. My goal is to non-interactively start a hadoop cluster through a cron job. The documentation mentions cbd util cloudbreak-shell-quiet for non interactive shell access, but everytime I run it, it just dumps me into a interactive shell.
I want to do something like this:
cbd util cloudbreak-shell-quiet 'stack start --id 64'
What's the right way to do this?
Kenneth GRaves
Created 09-28-2016 03:40 PM
You can do such things like this: cbd util cloudbreak-shell-quiet <<< "credential delete --id 12". You can send multiple lines as well as the cluster creation consists of multiple commands:
cbd util cloudbreak-shell-quiet <<EOF
stack list
stack list
more commands...
EOF
Created 09-28-2016 03:40 PM
You can do such things like this: cbd util cloudbreak-shell-quiet <<< "credential delete --id 12". You can send multiple lines as well as the cluster creation consists of multiple commands:
cbd util cloudbreak-shell-quiet <<EOF
stack list
stack list
more commands...
EOF
Created 09-28-2016 04:01 PM
@khorvath Thanks! Works! Much appreciated for the guidance.
Kenneth Graves