Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Sqoop >> mail # dev >> Review Request: SQOOP-851 Sqoop2: NullPointerException in Mapreduce Submission engine initialization


Copy link to this message
-
Review Request: SQOOP-851 Sqoop2: NullPointerException in Mapreduce Submission engine initialization

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/9076/
-----------------------------------------------------------

Review request for Sqoop.
Description
-------

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.
This addresses bug SQOOP-851.
    https://issues.apache.org/jira/browse/SQOOP-851
Diffs
-----

  submission/mapreduce/src/main/java/org/apache/sqoop/submission/mapreduce/MapreduceSubmissionEngine.java 1a144d0

Diff: https://reviews.apache.org/r/9076/diff/
Testing
-------

Unit tests seems to be passing and I've tested simple import on real cluster.
Thanks,

Jarek Cecho

+
Cheolsoo Park 2013-01-30, 23:43
+
Jarek Cecho 2013-01-31, 16:59
+
Jarek Cecho 2013-01-31, 17:00
+
Cheolsoo Park 2013-01-31, 17:16