Commit b6f0fc2
gpcheckperf - Update a Python 3 reference of "python" to "python3"
In gpcheckperf, a remaining "python" reference exists. This commit
renames it to "python3" and allows it to run when the symbolic link
/usr/bin/python pointing to /usr/bin/python3 does not exist.
Tl;dr - An attempt was made to update all Greenplum utilities to
reference 'python3'. A reference was left unchanged in gpcheckperf.
Python 3 installations by default do not create the symbolic link
/usr/bin/python --> /usr/bin/python3. This has been observed in Python
3 installation3 on Rockylinux 8 & 9 and Ubuntu 20.04 & 22.04.
In the case of gpcheckperf, when invoked, the output below reveals the
"Error" a user receives when /usr/bin/python does not exist:
```
gpadmin@cdw:~$ /usr/local/gp7/bin/gpcheckperf -h cdw -d /data -r d -S 1 -v
--------------------
SETUP 2023-03-12T17:26:27.967030
--------------------
[Info] verify python interpreter exists
[Info] /usr/local/gp7/bin/gpssh -h cdw 'python -c print'
--------------------
TEARDOWN
--------------------
[Info] /usr/local/gp7/bin/gpssh -h cdw 'rm -rf /data/gpcheckperf_$USER'
[Error] unable to find python interpreter on some hosts
verify PATH variables on the hosts
gpadmin@cdw:~$
```1 parent c72ce69 commit b6f0fc2
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
350 | 350 | | |
351 | | - | |
352 | | - | |
| 351 | + | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
0 commit comments