GreenPlum問題一則

1、問題描述python

初始化 master standby 時(包括 "gpinitsystem -s " 和 " gpinitstandby -s ")時,屏幕標準輸出報錯 standby 節點啓、停失敗,而在debug模式下報錯:ssh

[DEBUG]:-get pids cmdStr='ssh -o 'StrictHostKeyChecking no' master_s ". /home/gpadmin/greenplum/greenplum_path.sh; python -c 'from gppylib.commands import unix; print unix.getDescendentProcesses(10571)'"'  had result: cmd had rc=1 completed=True halted=False
  stdout=''
  stderr='Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/gpadmin/greenplum/lib/python/gppylib/commands/unix.py", line 968, in getDescendentProcesses
    for p in psutil.Process(pid).children(recursive=True):
AttributeError: 'Process' object has no attribute 'children'

2、解決debug

經過 pip 或 easy_install 命令升級 psutil 模塊unix

3、其餘code

我初次安裝時用的psutil,是經過rpmsearch下載的python-psutil包安裝的,該版本爲1.2.1。ip

相關文章
相關標籤/搜索