Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.5.0
-
None
-
Reviewed
Description
Looking at line 80 of org.apache.hadoop.yarn.util.Apps an index out of range exception occurs if an environment variable is encountered without a value.
java.lang.ArrayIndexOutOfBoundsException: 1 at org.apache.hadoop.yarn.util.Apps.setEnvFromInputString(Apps.java:80)
I believe this occurs because java will not return empty strings from the split method. Similar to this http://stackoverflow.com/questions/14602062/java-string-split-removed-empty-values
Attachments
Attachments
Issue Links
- is related to
-
TEZ-3537 ArrayIndexOutOfBoundsException with empty environment variables/Port YARN-3768 to Tez
- Closed
- links to