2013年3月8日 星期五

[hadoop][ambari] ambari 1.21 how to connect databases

130305 ambari how to connect databases

ambari 管理的hadoop cluster 的狀態都是存放在databases,透過ambari-server update db內的tables來確認狀態。

ambari 的 pssql 的 databases 為 "ambari" 預設帳號密碼為 ambari-server / bigdata

可以使用 psql -U ambari-server ambari
去連線查看當前的tables 狀態。

Yusaku Sako yusaku@hortonworks.com 透過 incubator.apache.org
3月5日 (3 天以前)

寄給 ambari-dev
Hi Su,

The "ambari" database has a schema called "ambari". This is accessible by
the user "ambari-server".

1. Connect to the "ambari" database with "ambari-server": psql -U
ambari-server ambari (the default password is "bigdata")
2. Once you are in the psql prompt, you can list all the tables with: \dt
ambari.*
3. You can query tables like this: select * from ambari.clusters;

Hope this helps.




沒有留言:

張貼留言