NPE in SortValidator if input path does not exist
-------------------------------------------------
Key: MAPREDUCE-939
URL: https://issues.apache.org/jira/browse/MAPREDUCE-939
Project: Hadoop Map/Reduce
Issue Type: Bug
Components: test
Affects Versions: 0.20.1
Reporter: Ramya R
Priority: Minor
If the input to SortValidator does not exist, NullPointerException is thrown.
Below is the stacktrace:
{noformat}
java.lang.NullPointerException
at
org.apache.hadoop.mapred.SortValidator$RecordStatsChecker.checkRecords(SortValidator.java:326)
at org.apache.hadoop.mapred.SortValidator.run(SortValidator.java:561)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.mapred.SortValidator.main(SortValidator.java:576)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
at org.apache.hadoop.test.AllTestDriver.main(AllTestDriver.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.