ITPub博客

首页 > 数据库 > 国内数据库 > 【YashanDB知识库】kettle同步PG至崖山提示no encryption pg_hba.conf记录

【YashanDB知识库】kettle同步PG至崖山提示no encryption pg_hba.conf记录

原创 国内数据库 作者:崖山数据库系统YashanDB 时间:2024-12-16 17:47:22 0 删除 编辑

本文内容来自YashanDB官网,原文内容请见 kettle同步PG至崖山提示no encryption pg_hba.conf记录-YashanDB


【问题分类】 数据导入导出

【关键字】 数据同步,kettle,数据迁移,pg_hba.conf

【问题描述】 使用kettle同步postgresql至崖山数据库时提示以下报错信息:

信息: New Caching Service registered

2024/10/10 17:00:21 - Pan - 开始运行.

2024/10/10 17:00:21 - public.T1 - 为了转换解除补丁开始 [public.T1]

log4j:ERROR No output stream or file set for the appender named [pdi-execution-appender].

2024/10/10 17:00:21 - source.public.T1.0 - ERROR (version 8.3.0.0-371, build 8.3.0.0-371 from 2019-06-11 11.09.08 by buildguy) : An error occurred, processing will be stopped:

2024/10/10 17:00:21 - source.public.T1.0 - Error occurred while trying to connect to the database

2024/10/10 17:00:21 - source.public.T1.0 - 致命错误: 没有用于主机 "10.9.7.54", 用户 "postgres", 数据库 "dev", no encryption 的 pg_hba.conf 记录

2024/10/10 17:00:21 - source.public.T1.0 - ERROR (version 8.3.0.0-371, build 8.3.0.0-371 from 2019-06-11 11.09.08 by buildguy) : 错误初始化步骤[source.public.T1]

2024/10/10 17:00:21 - target.public.T1.0 - Connected to database [yashandb176] (commit=1000)

2024/10/10 17:00:21 - public.T1 - ERROR (version 8.3.0.0-371, build 8.3.0.0-371 from 2019-06-11 11.09.08 by buildguy) : 步骤 [source.public.T1.0] 初始化失败!

2024/10/10 17:00:21 - source.public.T1.0 - Finished reading query, closing connection.

不能准备和初始化这个转换

【问题原因分析】 pg_hba.conf 文件中没有正确配置允许从 IP 地址 连接到数据库的规则。pg_hba.conf 文件是 PostgreSQL 中用于控制客户端认证的配置文件,它定义了哪些主机 、 哪些用户以及通过何种认证方式可以连接到数据库服务器。

【解决/规避方法】 配置pg_hba.conf 文件并重启pg服务生效

$ echo "host all all 10.9.7.54/32 md5" >> pg_hba.conf

$ pg_ctl -D /home/postgres/pgdata restart

【影响范围】 所有版本

【修复版本】 -


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70028812/viewspace-3056956/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
崖山数据库系统YashanDB是深圳计算科学研究院完全自主研发设计的新型数据库系统,融入原创理论,支持单机/主备、共享集群、分布式等多种部署方式,覆盖OLTP/HTAP/OLAP交易和分析混合负载场景,为客户提供一站式的企业级融合数据管理解决方案。

注册时间:2023-04-11

  • 博文量
    722
  • 访问量
    639807