MAPREDUCE服务 MRS-Hive服务启动失败:处理步骤1

时间:2024-08-27 10:23:53

处理步骤1

  1. 执行以下命令:

    source /opt/Bigdata/ MRS _XXX/install/dbservice/.dbservice_profile

    gsql -h DBservice浮动IP地址 -p 20051 -d hivemeta -U hive -W hive用户密码

  2. 如果不能正确进入交互界面,说明数据库初始化失败。如果报如下错误说明在DBservice所在的节点的配置文件可能丢失了hivemeta的配置。

    org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "192.168.0.146", database "HIVEMETA"。

  3. 编辑“/srv/BigData/dbdata_service/data/pg_hba.conf”,在文件最后面追加host hivemeta hive 0.0.0.0/0 sha256配置。
  4. 执行source /opt/Bigdata/MRS_XXX/install/dbservice/.dbservice_profile命令配置环境变量。
  5. 执行gs_ctl -D $GAUSSDATA reload #命令使修改后的配置生效。
support.huaweicloud.com/trouble-mrs/mrs_03_0148.html