First time seeing this issue.
Running:
l locale -a
l which whoami
The result for this command would be as below:
ns4.xxx% locale -a
C
POSIX
iso_8859_1
ja
ja_JP.PCK
ja_JP.UTF-8
ja_JP.eucJP
ns4.xxx%
ns4.xxx% which whoami
no whoami in /usr/bin /bin
This was due to inadequate libraries on the Solaris OS.
Some additional info
domain.namep# sh -x ./Splunk_UF_Install_123.sh
couldn't set locale correctly
SCRIPT_VERSION=2.2.1