Pivotal Knowledge Base

Follow

When Invoked, gpssh prints "Note: command history unsupported on this machine ..."

Environment

Pivotal Greenplum Database (GPDB)

Symptom

Invoking gpssh returns the message:

[gpadmin@mdw gpconfigs]$ gpssh -f hostfile
Note: command history unsupported on this machine ...
=>

Cause

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.

Resolution

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

echo $HOME

-- 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

OR

[root@mdw /]# cd /lib64
[root@mdw lib64]# ln -s libreadline.so.6 libreadline.so.5

Comments

Powered by Zendesk