Pivotal Greenplum Database (GPDB)
Invoking gpssh returns the message:
[gpadmin@mdw gpconfigs]$ gpssh -f hostfile Note: command history unsupported on this machine ... =>
The .gshist file is created by gpssh when it is invoked. It is used to record the previous command that was executed under the gpssh prompt. For some reasons, it's not able to read or locate the file and hence the message is printed when gpssh is invoked.
Please check the environment for the below-mentioned rpm or parameters that are needed for the gpssh to record or read the command history and ensure they are working and are available on the server that is executing the gpssh:
-- Ensure the $HOME parameter is set
-- Ensure the server that is executing the gpssh has the readline rpm installed on the server , if not please install the readline rpm.
rpm -qa readline
-- If the readline rpm is "readline-6.x" and above then ensure the libraries are mapped (soft link) like similar to below.
[root@mdw /]# cd /lib64
[root@mdw lib64]# ls -ltr | grep readline -rwxr-xr-x 1 root root 261144 Dec 2 2009 libreadline.so.5.2 -rwxr-xr-x 1 root root 269592 Feb 15 2012 libreadline.so.6.0 lrwxrwxrwx 1 root root 18 May 5 06:33 libreadline.so.6 -> libreadline.so.6.0 lrwxrwxrwx 1 root root 18 May 5 06:34 libreadline.so.5 -> libreadline.so.5.2
[root@mdw /]# cd /lib64 [root@mdw lib64]# ln -s libreadline.so.6 libreadline.so.5