문제

Ran Sqoop with options: --fields-terminated-by '\001' --optionally-enclosed-by '\003'

Ran it twice to create 2 directories. This created a QueryResult.java with following line:

private final DelimiterSet __inputDelimiters = new DelimiterSet((char) 1, (char) 10, (char) 3, (char) 0, false);

So far so good!

Used this QueryResult class to run a 'Sqoop Merge' but when it comes to the column that follows the column with new line character, it dies with the exception: java.util.NoSuchElementException

Sqoop version: Sqoop 1.4.4-mapr git commit id 16d0124c5b5f7bc68b8f67fbe77f0c91d46d64c1 Compiled by root on Wed Aug 28 17:22:49 PDT 2013

Any ideas?

도움이 되었습니까?

해결책

This is no longer an issue. Fixed it by adding --hive-drop-import-delims option. Hope this helps someone. Thanks.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top