Skip to content

HENGSHI SENSE 安装常见问题

安装相关问题

安装后服务器 hostname 是否可以修改?

安装后服务器 hostname 不可更改, 如需更改请联系技术支持做迁移操作。
特别的对于部署 doris 的机器,内网 ip 也不可更改。

磁盘空间不足

text
[2023-05-06.11:19:13.150][hs_install:68][ ERROR ]: /opt/hengshi capacity is less than 10G, abort installation! Please check the disk or use larger disk

此问题产生原因为磁盘空间不足,清理磁盘空间或增加磁盘空间后,继续进程安装升级操作。

衡石所使用的中间件服务是否可以被替换

衡石内置的模块有: metadb, engine, minio, redis 都支持客户用自有服务进行替换,以满足个性化需求:

  • 替换 metadb (重点:配置 HS_PG_IF_EXTERNAL=true 以及连接方式)
  • 替换 engine (重点:配置 HS_ENGINE_IF_EXTERNAL=true 以及连接方式)
  • 替换 minio (重点:配置 HS_MINIO_IF_EXTERNAL=true 以及连接方式)
  • 替换 redis (重点:配置 HS_REDIS_IF_EXTERNAL=true 以及连接方式)

init-os 初始化失败,用户缺失 sudo 权限

text
[2023-05-06.11:31:19.337][hengshi@cluster1][hengshi-sense-bin:599][ INFO ]: internal pg metastore 10.10.10.xxx:54320
sudo: a password is required
 INIT FAIL! : [dependent packages]

为部署用户增加 sudo 权限

shell
#使用具有 sudo 权限用户或 root 用户
echo "hengshi ALL=(ALL)       NOPASSWD: ALL" >> /etc/sudoers

init engine 失败,重新初始化操作

text
20250704:11:54:19:044695 gpinitsystem:m88:lvliang-[INFO]:-Starting the Master in admin mode
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[INFO]:-Commencing parallel build of primary segment instances
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[INFO]:-Spawning parallel processes    batch [1], please wait...
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[INFO]:------------------------------------------------
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[INFO]:-Parallel process exit status
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[INFO]:------------------------------------------------
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[INFO]:-Total processes marked as completed           = 0
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[INFO]:-Total processes marked as killed              = 0
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[INFO]:-Total processes marked as failed              = 0
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[INFO]:------------------------------------------------
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[INFO]:-Removing back out file
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[INFO]:-No errors generated from parallel processes
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[INFO]:-Restarting the Greenplum instance in production mode
  File "/home/lvliang/tt3/lib/gpdb/gpdb/bin/gpstop", line 39
    except ImportError, e:
           ^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
  File "/home/lvliang/tt3/lib/gpdb/gpdb/bin/gpstart", line 36
    except ImportError, e:
           ^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[WARN]:
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[WARN]:-Failed to start Greenplum instance; review gpstart output to
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[WARN]:- determine why gpstart failed and reinitialize cluster after resolving
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[WARN]:- issues.  Not all initialization tasks have completed so the cluster
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[WARN]:- should not be used.
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[WARN]:-gpinitsystem will now try to stop the cluster
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[WARN]:
  File "/home/lvliang/tt3/lib/gpdb/gpdb/bin/gpstop", line 39
    except ImportError, e:
           ^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[WARN]:-Non fatal error from Greenplum instance shutdown
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[WARN]:
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[WARN]:-Failed to start Greenplum instance; review gpstart output to
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[WARN]:- determine why gpstart failed and reinitialize cluster after resolving
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[WARN]:- issues.  Not all initialization tasks have completed so the cluster
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[WARN]:- should not be used.
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[WARN]:
20250704:11:54:20:044695 gpinitsystem:m88:lvliang-[FATAL]: starting new instance failed; Script Exiting!
 
 INIT FAIL! : [engine] /opt/hengshi/engine-cluster

一般沿着报错信息向上看,会有错误原因,或者包含更多错误信息的日志位置,可以将错误信息以及包含更多错误日志给技术支持人员分析原因

Ubuntu 18.04 init eninge 失败

text
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 not found

Ubuntu 18.04默认环境中可能未安装 python2.7的相关依赖库,安装相关依赖库后重新执行初始化操作

text
sudo apt install -y libpython2.7

衡石分析平台使用手册