Support Questions

Find answers, ask questions, and share your expertise

How to check the cluster related details in database of cloudbreak?

avatar
Expert Contributor

Ex : cluster name, state of the cluster etc

1 ACCEPTED SOLUTION

avatar
Cloudera Employee

@Tamil Selvan K

If you want to access the db and fetch the details

This can be done by executing the following commands (Postgres db is the default) :

docker exec -it cbreak_commondb_1 su postgres -c 'psql'

postgres=# \l

postgres=# \c cbdb

You are now connected to database "cbdb" as user "postgres”

cbdb=# select id, name, stack_id, status from cluster; // Queries the cluster id, name, and the status of the clusters

View solution in original post

2 REPLIES 2

avatar
Super Guru
@Tamil Selvan K

Cloudbreak is used to provision, configure and elastically grow clusters in cloud. You would use Ambari to get cluster details you are looking for, which includes cluster name, configuration values and so on. And if you need to get these values without using the interface, you can use Ambari API. So, what you are looking for is available through Ambari and not cloudbreak.

avatar
Cloudera Employee

@Tamil Selvan K

If you want to access the db and fetch the details

This can be done by executing the following commands (Postgres db is the default) :

docker exec -it cbreak_commondb_1 su postgres -c 'psql'

postgres=# \l

postgres=# \c cbdb

You are now connected to database "cbdb" as user "postgres”

cbdb=# select id, name, stack_id, status from cluster; // Queries the cluster id, name, and the status of the clusters