Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Utilizing Cloudbreak's CLI

avatar
New Member

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
New Member

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

Kenneth Graves