Pivotal Knowledge Base

Follow

gpssh when invoked prints "Note: command history unsupported on this machine ..."

Problem

Invoking gpssh returns the below message

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

Cause

.gshist file is created by gpssh when its invoked, its used to record the previous command that was executed under the gpssh prompt, for some reason its not able to read or locate the file and hence the message is printed when gpssh is invoked.

Solution

Please check the environment for the below rpm / parameters that is needed for gpssh to record / read the command history and ensure they are working / 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