SQOOP-851 Sqoop2: NullPointerException in Mapreduce Submission engine initialization
Review Request #9076 - Created Jan. 23, 2013 and submitted
Problem is that method File.list() in java might return null in addition to empty array. I've add simple check that will throw more informative exception in case that configuration path is not valid.
Unit tests seems to be passing and I've tested simple import on real cluster.
Posted (Jan. 30, 2013, 11:43 p.m.)
Looking at the Java Doc of File, list returns null when the File is not a directory. Can you be even more specific in the error message? Because your message can also be interpreted as "(Hadoop conf dir is valid,) but no conf files were found", which is not entirely true. How about saying something like "'configDirectory' is not a directory"?
Review request changed
Updated (July 22, 2013, 2:28 p.m.)
- changed from pending to submitted