Pivotal Knowledge Base

Follow

Reading External Table in Hadoop on Solaris "Error 'sh: source: not found'"

Environment

 Product  Version
 Hadoop  All
 OS  All Supported OS

Symptom

Error "sh: source: not found" when reading an external table in Hadoop on Solaris is seen:

ERROR:  external table testid command ended with error. sh: source: not found  (seg1 slice1 goldfinger10:20000 pid=20113)
DETAIL:
         Exception in thread "main" java.lang.NoClassDefFoundError: 1
Command: gphdfs://goldfinger:9000//user/gp2/testdir/test.dat

Cause

On Solaris, "SH" is not linked to "bash."

Resolution

Create a soft link of "SH" to "bash" on Solaris.

For example:

-bash-3.00$ ls -altr /bin/sh
lrwxrwxrwx   1 root     root     9 Apr  8 14:56 /bin/sh -> /bin/bash
-bash-3.00$ ls -altr /usr/bin/sh
lrwxrwxrwx   1 root     root     9 Apr  8 14:56 /usr/bin/sh -> /bin/bash

Comments

Powered by Zendesk