- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to check the cluster related details in database of cloudbreak?
- Labels:
-
Hortonworks Cloudbreak
Created 09-30-2017 06:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ex : cluster name, state of the cluster etc
Created 10-01-2017 08:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 09-30-2017 06:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created 10-01-2017 08:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
