日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

hawq state 报错: the database is down, but Ambari shows all hawq services as being

發布時間:2025/3/15 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 hawq state 报错: the database is down, but Ambari shows all hawq services as being 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

此問題官方有給出解決方案:https://discuss.pivotal.io/hc/en-us/articles/221826748-Pivotal-HDB-state-indicates-the-database-is-down-but-Ambari-shows-all-Pivotal-HDB-services-as-being-up


Environment

ProductVersion
Pivotal HDB?(HAWQ)2.x

Symptom

Pivotal HDB shows as "up" in Ambari:?

However, the following issues are seen:

  • HAWQ state fails with the following:
[gpadmin@hdm1 ~]$ hawq state
Failed to connect to database, this script can only be run when the database is up.
[gpadmin@hdm1 ~]$
  • Stopping HAWQ via command line or?Ambari fails with the following:?
20160630:05:45:42:039364 hawq_stop:hdm1:gpadmin-[ERROR]:-Failed to connect to the running database, please check master status

Error Message:

The?HAWQ master log?will show errors similar to this:

[gpadmin@hdm1 pg_log]$ grep -i /data/hawq/master/pg_log/hba hawq-2016-06-30_044655.csv
2016-06-30 05:44:03.818472 PDT,"gpadmin","template1",p38928,th1711609984,"172.28.21.118","51844",2016-06-30 05:44:03 PDT,0,,,seg-10000,,,,,"FATAL","28000","no pg_hba.conf entry for host ""172.28.21.118"", user ""gpadmin"", database ""template1"", SSL off",,,,,,,0,,"auth.c",603,
2016-06-30 05:45:42.491576 PDT,"gpadmin","template1",p39401,th1711609984,"172.28.21.118","51874",2016-06-30 05:45:42 PDT,0,,,seg-10000,,,,,"FATAL","28000","no pg_hba.conf entry for host ""172.28.21.118"", user ""gpadmin"", database ""template1"", SSL off",,,,,,,0,,"auth.c",603,
[gpadmin@hdm1 pg_log]$

Cause

pg_hba.conf is set up incorrectly, so gpadmin does not have access to template1 from the HAWQ master host.


Resolution

Review the pg_hba.conf and the Pivotal HDB?Allowing connections to HAWQ?documentation to allow gpadmin access to database "template1" from the HAWQ master.

個人解決方法:

1、查看 /data/hawq/master/pg_hba.conf 文件被人修改過,添加了有兩條重復記錄,注釋掉以后,重啟mater成功。

2、通過ambari重啟所有服務,部分segment 執行stop命令失敗,手動執行:

hawq stop segment -M immediate

? ? ? ? 成功,執行:

? ? ? ? hawq start segment 成功。






總結

以上是生活随笔為你收集整理的hawq state 报错: the database is down, but Ambari shows all hawq services as being的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。