Support Questions

Find answers, ask questions, and share your expertise

Utilizing Cloudbreak's CLI

avatar
Contributor

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

1 ACCEPTED SOLUTION

avatar
Super Collaborator

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

View solution in original post

2 REPLIES 2

avatar
Super Collaborator

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

avatar
Contributor

@khorvath Thanks! Works! Much appreciated for the guidance.

Kenneth Graves