【问题标题】:How to start Greeplum on boot - linux如何在启动时启动 Greeplum - linux
【发布时间】:2021-02-28 20:32:25
【问题描述】:

尝试在系统启动时启动 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 的模块”。机器启动后,如果我运行启动命令(/opt/greenplum-db-6-6.11.2/bin/gpstart -a -l /home/gpadmin/gpAdminLogs -d /greenplum/master/gpseg-1)它正在工作美好的。我无法理解出了什么问题。我当前的设置有两个主机(主机和分段主机)。我一直保持分段节点并尝试主节点。非常感谢任何帮助。

【问题讨论】:

    标签: linux startup systemd greenplum systemctl


    【解决方案1】:

    ExecStartPre 中采购greenplum_path.sh 将不起作用,因为在ExecStartPreExecStart 之间没有保留环境。我会尝试类似的东西

    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.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-15
      • 2013-12-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-23
      • 1970-01-01
      相关资源
      最近更新 更多