Currently the hadoop wrapper script assumes its the only place that uses JAVA_LIBRARY_PATH and initializes it to a blank line.
This prevents anyone from setting this outside of the hadoop wrapper (say hadoop-config.sh) for their own native libraries.
The fix is pretty simple. Don't initialize it to '' and append the native libs like normal.
- is related to
HADOOP-7825 Hadoop wrapper script not picking up native libs correctly
- relates to
HADOOP-12467 Respect user-defined JAVA_LIBRARY_PATH in Windows Hadoop scripts