如何在boot-linux上启动Greeplum

如何在boot-linux上启动Greeplum,linux,startup,systemd,greenplum,systemctl,Linux,Startup,Systemd,Greenplum,Systemctl,试图在系统启动时启动Greenplum。请在下面查找systemd服务文件内容 [Unit] Description=Greenplum daemon [Service] EnvironmentFile=/etc/environment EnvironmentFile=/etc/default/greenplum User=gpadmin Group=gpadmin Type=simple ExecStartPre=/bin/bash -c "source /opt/greenplum

试图在系统启动时启动Greenplum。请在下面查找systemd服务文件内容

[Unit]
Description=Greenplum daemon
[Service]
EnvironmentFile=/etc/environment
EnvironmentFile=/etc/default/greenplum
User=gpadmin
Group=gpadmin
Type=simple
ExecStartPre=/bin/bash -c "source /opt/greenplum-db-6-6.11.2/greenplum_path.sh"
#ExecStartPre=/opt/greenplum-db-6-6.11.2/greenplum_path.sh
ExecStart=/opt/greenplum-db-6-6.11.2/bin/gpstart -a -l /home/gpadmin/gpAdminLogs -d /greenplum/master/gpseg-1
Restart=on-failure
RestartSec=5s
PrivateTmp=true
[Install]
WantedBy=multi-user.target

所有必需的环境变量都已加载,且必需的路径已获取,但仍无法启动服务。获取“ImportError:没有名为gppylib.mainUtils的模块”。机器启动后,如果我运行start命令(/opt/greenplum-db-6-6.11.2/bin/gpstart-a-l/home/gpadmin/gpAdminLogs-d/greenplum/master/gpseg-1),它工作正常。我不明白出了什么问题。我当前的设置有两台主机(主机和段主机)。我一直保持分段节点并在主节点上进行尝试。非常感谢您的帮助。

ExecStartPre
中查找
greenplum\u path.sh
将不起作用,因为在
ExecStartPre
ExecStart
之间没有保存环境。我想试试这样的东西

ExecStart=/bin/bash-c“source/opt/greenplum-db-6-6.11.2/greenplum_path.sh;gpstart-a-l/home/gpadmin/gpAdminLogs-d/greenplum/master/gpseg-1