Open GoogleCodeExporter opened 9 years ago
I was able to figure out(well it seems like a very good match) why we
are getting these messages in hadoop (when you look at the task logs)
stderr logs
sh: module: line 1: syntax error: unexpected end of file
sh: error importing function definition for `module'
sh: module: line 1: syntax error: unexpected end of file
sh: error importing function definition for `module'
It is because we have a multi-line environment variable(function) in the
environment.
See
http://stackoverflow.com/questions/19731808/error-exporting-shell-functions-from
-within-a-java-process
"
Hadoop Streaming, however, has a badly written Environment class that
tries to reimplement System.getenv() by naively parsing the output of env.
Since it doesn't handle multi-line variables, it destroys your functions.
"
When I type env at the command line I see this
module=() { eval `/usr/bin/modulecmd bash $*`
}
Original comment by rd.alt.5...@gmail.com
on 29 Sep 2014 at 8:04
Original issue reported on code.google.com by
davehil...@gmail.com
on 14 Jul 2014 at 6:18